/* ---------- Profile Polish ---------- */

/* ============================================================
   Profile Polish — STYLES
   Keep page/component styles in logical sections below.
   ============================================================ */

/* =========================================================
   APEMART.LK — PROFILE PAGE POLISH
   Matches the rounded, full-width surface used by the
   recently polished account pages. Functionality untouched.
========================================================= */

.profile-section{
    width:100%;
    max-width:1280px !important;
    margin:0 auto;
    padding:18px 24px 48px;
    box-sizing:border-box;
}

.profile-breadcrumb{
    display:flex;
    align-items:center;
    gap:9px;
    min-height:28px;
    margin:0 4px 14px;
    color:#7a818b;
    font-size:13px;
    font-weight:600;
}

.profile-breadcrumb a{
    color:#6f7782;
    text-decoration:none;
    transition:color .2s ease;
}

.profile-breadcrumb a:hover{color:#ff6b00}
.profile-breadcrumb .current{color:#ff6b00}

.profile-cover{
    width:100% !important;
    max-width:none !important;
    height:230px;
    margin:0;
    border-radius:22px;
    background-size:cover;
    background-position:center;
    box-shadow:0 8px 26px rgba(15,23,42,.08);
}

.profile-card{
    width:calc(100% - 44px) !important;
    max-width:none !important;
    margin:-92px auto 28px;
    position:relative;
    z-index:2;
    background:radial-gradient(circle at 8% 0%,rgba(255,107,0,.075),transparent 30%),radial-gradient(circle at 92% 18%,rgba(52,199,89,.06),transparent 26%),linear-gradient(180deg,#f8fafc 0%,#f3f6fa 100%);
    border:1px solid rgba(15,23,42,.06);
    border-radius:22px;
    box-shadow:0 12px 34px rgba(15,23,42,.10);
    padding:58px 42px 30px;
    text-align:center;
}

.profile-card .profile-image-box{
    margin-top:-112px !important;
}

.profile-card .profile-image-box img#profileImage,
.profile-card .profile-image-box img{
    width:138px;
    height:138px;
    min-width:138px;
    min-height:138px;
    max-width:138px;
    max-height:138px;
    border:5px solid #fff;
    box-shadow:0 8px 26px rgba(15,23,42,.18);
}

.profile-card .profile-info h1#profileName{
    margin:14px 0 12px;
    font-size:31px;
    line-height:1.2;
    font-weight:800;
    color:#171a1f;
}

.profile-card .profile-info p{
    margin:7px 0;
    color:#68717d;
    font-size:14px;
    line-height:1.45;
}

.profile-buttons{
    margin-top:22px;
    gap:10px;
}

.profile-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:10px 18px;
    border-radius:10px;
    font-size:13px;
    box-shadow:0 3px 10px rgba(15,23,42,.08);
}

.profile-stats{
    width:calc(100% - 44px);
    max-width:none;
    margin:0 auto 20px;
    gap:16px;
}

.stat-card{
    min-height:94px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:18px 16px;
    border:1px solid rgba(15,23,42,.06);
    border-radius:16px;
    box-shadow:0 6px 18px rgba(15,23,42,.07);
}

.stat-card h2{
    margin:0 0 5px;
    font-size:15px;
    font-weight:700;
    color:#59616d;
}

.stat-card span{
    min-width:auto;
    min-height:auto;
    font-size:26px;
    line-height:1;
    color:#ff6b00;
}

.profile-shortcuts{
    width:calc(100% - 44px);
    max-width:none;
    margin:0 auto;
    gap:12px;
}

.profile-shortcuts a{
    padding:14px 16px;
    min-height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(15,23,42,.06);
    border-radius:13px;
    box-shadow:0 5px 15px rgba(15,23,42,.06);
    font-size:13px;
}

.profile-shortcuts a:hover{
    background:#fff7f0;
    color:#ff6b00;
    border-color:#ffd8bc;
    transform:translateY(-1px);
}

/* Keep dark mode consistent with the rest of the account pages. */
body.dark-mode .profile-breadcrumb a,
html[data-theme="dark"] .profile-breadcrumb a{color:#aeb6c2}
body.dark-mode .profile-breadcrumb .current,
html[data-theme="dark"] .profile-breadcrumb .current{color:#ff8a3d}
body.dark-mode .profile-card,
body.dark-mode .stat-card,
body.dark-mode .profile-shortcuts a,
html[data-theme="dark"] .profile-card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .profile-shortcuts a{
    background:radial-gradient(circle at 8% 0%,rgba(255,107,0,.09),transparent 32%),radial-gradient(circle at 92% 18%,rgba(52,199,89,.035),transparent 28%),#111827;
    border-color:#2d3748;
    color:#f3f4f6;
}
body.dark-mode .profile-card .profile-info h1#profileName,
html[data-theme="dark"] .profile-card .profile-info h1#profileName{color:#f3f4f6}
body.dark-mode .profile-card .profile-info p,
html[data-theme="dark"] .profile-card .profile-info p,
body.dark-mode .stat-card h2,
html[data-theme="dark"] .stat-card h2{color:#aeb6c2}

@media(max-width:768px){
    .profile-section{padding:14px 14px 34px}
    .profile-breadcrumb{margin:0 2px 12px;font-size:12px}
    .profile-cover{height:190px;border-radius:18px}
    .profile-card{
        width:calc(100% - 20px) !important;
        margin:-70px auto 20px;
        padding:44px 18px 24px;
        border-radius:18px;
    }
    .profile-card .profile-image-box{margin-top:-88px !important}
    .profile-card .profile-image-box img#profileImage,
    .profile-card .profile-image-box img{
        width:116px;height:116px;min-width:116px;min-height:116px;
        max-width:116px;max-height:116px;
    }
    .profile-card .profile-info h1#profileName{font-size:25px}
    .profile-card .profile-info p{font-size:13px}
    .profile-stats,.profile-shortcuts{width:calc(100% - 20px)}
    .profile-stats{grid-template-columns:1fr;gap:10px}
    .profile-shortcuts{grid-template-columns:1fr;gap:10px}
}

@media(min-width:769px) and (max-width:1050px){
    .profile-card{width:calc(100% - 32px) !important}
    .profile-stats,.profile-shortcuts{width:calc(100% - 32px)}
}

/* =====================================
   PROFILE TYPOGRAPHY REFINEMENT
===================================== */
.stat-card h2{
    font-size:16px;
    font-weight:750;
    letter-spacing:.01em;
}

.profile-shortcuts a{
    font-size:15px;
    font-weight:700;
    line-height:1.35;
}

@media(max-width:768px){
    .stat-card h2{font-size:15px}
    .profile-shortcuts a{font-size:14.5px}
}

/* =========================================================
   PROFILE QUICK ACCESS — PROFESSIONAL ACCOUNT CARDS
========================================================= */
.profile-shortcuts-section{
    width:calc(100% - 44px);
    max-width:none;
    margin:26px auto 0;
}

.profile-shortcuts-heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin:0 2px 13px;
}

.profile-shortcuts-kicker{
    display:block;
    margin-bottom:3px;
    color:#f0782a;
    font-size:10px;
    line-height:1.2;
    font-weight:850;
    letter-spacing:.13em;
}

.profile-shortcuts-heading h2{
    margin:0;
    color:#20252d;
    font-size:21px;
    line-height:1.25;
    font-weight:800;
}

.profile-shortcuts-heading-icon{
    border:0;
    padding:0;
    cursor:pointer;
    appearance:none;
    -webkit-appearance:none;
    width:40px;
    height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    background:#fff1e7;
    color:#ef6d22;
    font-size:15px;
    box-shadow:0 4px 12px rgba(15,23,42,.05);
    transition:transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.profile-shortcuts-section .profile-shortcuts{
    width:100%;
    margin:0;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.profile-shortcuts-section .profile-shortcut-item{
    min-width:0;
    min-height:70px;
    box-sizing:border-box;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:13px;
    padding:13px 15px;
    text-align:left;
    text-decoration:none;
    color:#252a32;
    background:linear-gradient(180deg,#ffffff 0%,#fbfcfd 100%);
    border:1px solid #e9edf1;
    border-radius:16px;
    box-shadow:0 5px 16px rgba(15,23,42,.055);
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease;
}

.profile-shortcuts-section .profile-shortcut-item:hover{
    transform:translateY(-2px);
    color:#252a32;
    background:#fff;
    border-color:#ffd4b8;
    box-shadow:0 10px 24px rgba(15,23,42,.09);
}

.shortcut-icon{
    width:40px;
    height:40px;
    flex:0 0 40px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    background:#fff1e7;
    color:#ed6d22;
    font-size:14px;
}

.shortcut-copy{
    min-width:0;
    flex:1 1 auto;
    display:flex;
    flex-direction:column;
    gap:3px;
}

.shortcut-copy strong{
    display:block;
    color:#303640;
    font-size:14px;
    line-height:1.25;
    font-weight:750;
}

.shortcut-copy small{
    display:block;
    color:#8a929d;
    font-size:11px;
    line-height:1.3;
    font-weight:500;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.shortcut-arrow{
    flex:0 0 auto;
    color:#a4acb6;
    font-size:11px;
    transition:transform .18s ease,color .18s ease;
}

.profile-shortcuts-section .profile-shortcut-item:hover .shortcut-arrow{
    color:#ef6d22;
    transform:translateX(2px);
}

.profile-shortcuts-heading-icon:hover{
    transform:translateY(-1px);
    background:#ffe7d5;
    box-shadow:0 7px 16px rgba(15,23,42,.08);
}

.profile-shortcuts-heading-icon:active{
    transform:translateY(0) scale(.96);
}

.profile-shortcuts-heading-icon:focus-visible{
    outline:3px solid rgba(239,109,34,.22);
    outline-offset:3px;
}

/* Quick Access list view, activated by the grid button. */
.profile-shortcuts-section .profile-shortcuts.quick-access-list{
    grid-template-columns:1fr;
}

.profile-shortcuts-section .profile-shortcuts.quick-access-list .profile-shortcut-item{
    min-height:64px;
    padding:11px 15px;
}

.profile-shortcuts-section .profile-shortcuts.quick-access-list .shortcut-icon{
    width:38px;
    height:38px;
    flex-basis:38px;
}

.profile-shortcuts-section .profile-shortcuts.quick-access-list .shortcut-copy{
    flex-direction:row;
    align-items:baseline;
    gap:10px;
}

.profile-shortcuts-section .profile-shortcuts.quick-access-list .shortcut-copy small{
    flex:1;
}

html[data-theme="dark"] .profile-shortcuts-heading-icon:hover,
body.dark-mode .profile-shortcuts-heading-icon:hover{
    background:rgba(255,107,0,.22);
}

/* Dark mode */
body.dark-mode .profile-shortcuts-heading h2,
html[data-theme="dark"] .profile-shortcuts-heading h2{color:#f3f4f6}
body.dark-mode .profile-shortcuts-heading-icon,
html[data-theme="dark"] .profile-shortcuts-heading-icon,
body.dark-mode .shortcut-icon,
html[data-theme="dark"] .shortcut-icon{background:rgba(255,107,0,.13);color:#ff9a61}
body.dark-mode .profile-shortcuts-section .profile-shortcut-item,
html[data-theme="dark"] .profile-shortcuts-section .profile-shortcut-item{
    background:#18202d;
    border-color:#2d3748;
    color:#f3f4f6;
}
body.dark-mode .profile-shortcuts-section .profile-shortcut-item:hover,
html[data-theme="dark"] .profile-shortcuts-section .profile-shortcut-item:hover{background:#202938;border-color:#465264}
body.dark-mode .shortcut-copy strong,
html[data-theme="dark"] .shortcut-copy strong{color:#f1f4f8}
body.dark-mode .shortcut-copy small,
html[data-theme="dark"] .shortcut-copy small{color:#9ca7b5}
body.dark-mode .shortcut-arrow,
html[data-theme="dark"] .shortcut-arrow{color:#8490a0}

@media(max-width:768px){
    .profile-shortcuts-section{width:calc(100% - 20px);margin-top:22px}
    .profile-shortcuts-heading{margin-bottom:11px}
    .profile-shortcuts-heading h2{font-size:19px}
    .profile-shortcuts-heading-icon{width:36px;height:36px;border-radius:11px}
    .profile-shortcuts-section .profile-shortcuts{grid-template-columns:1fr;gap:9px}
    .profile-shortcuts-section .profile-shortcut-item{min-height:64px;padding:11px 12px;border-radius:14px}
    .shortcut-icon{width:36px;height:36px;flex-basis:36px;border-radius:10px}
    .shortcut-copy strong{font-size:13.5px}
    .shortcut-copy small{font-size:10.5px}
}
