@import url("./variables.css");
@import url("./base.css");
@import url("./components.css");

body{
    background:#F6F9FF;
}

.experts-header{
    position:sticky;
    top:0;
    z-index:20;
    border-bottom:1px solid var(--border);
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(16px);
}

.experts-nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:76px;
    gap:24px;
}

.experts-nav .logo{
    display:flex;
    align-items:center;
    gap:12px;
    flex:0 0 auto;
}

.experts-nav .logo-mark{
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    overflow:hidden;
    border-radius:12px;
}

.experts-nav .logo-mark img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.experts-nav .logo-info h2{
    color:var(--text);
    font-size:16px;
    line-height:1.1;
}

.experts-nav .logo-info span{
    color:var(--text-light);
    font-size:11px;
}

.experts-nav nav{
    display:flex;
    align-items:center;
    gap:24px;
}

.experts-nav nav a{
    color:var(--text);
    font-size:14px;
    font-weight:700;
}

.experts-session-actions{
    display:flex;
    align-items:center;
    gap:10px;
}

.experts-session-chip,
.experts-logout,
.experts-login{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-height:38px;
    padding:0 13px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
}

.experts-session-chip{
    background:#EFF6FF;
    color:var(--primary);
}

.experts-login{
    background:var(--primary);
    color:#FFFFFF;
}

.experts-logout{
    border:1px solid var(--border);
    background:#FFFFFF;
    color:var(--text-secondary);
}

.experts-logout:hover{
    border-color:rgba(239,68,68,.35);
    background:#FEF2F2;
    color:#B91C1C;
}

.experts-hero{
    padding:70px 0 44px;
    background:linear-gradient(135deg,#F8FBFF 0%,#EEF5FF 100%);
}

.experts-hero-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(280px,360px);
    gap:28px;
    align-items:center;
}

.experts-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border-radius:999px;
    background:#DBEAFE;
    color:var(--primary);
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
}

.experts-hero h1{
    max-width:720px;
    margin:18px 0 12px;
    color:var(--text);
    font-size:48px;
    line-height:1.08;
}

.experts-hero p{
    max-width:760px;
    color:var(--text-secondary);
    font-size:16px;
    line-height:1.8;
}

.experts-search{
    display:flex;
    align-items:center;
    gap:12px;
    width:min(680px,100%);
    margin-top:26px;
    padding:15px 18px;
    border:1px solid var(--border);
    border-radius:999px;
    background:#FFFFFF;
    box-shadow:var(--shadow-sm);
}

.experts-search i{
    color:var(--primary);
    font-size:18px;
}

.experts-search input{
    flex:1;
    min-width:0;
    background:transparent;
    color:var(--text);
    font-size:14px;
}

.experts-summary{
    display:grid;
    gap:12px;
}

.experts-summary div{
    padding:20px;
    border:1px solid var(--border);
    border-radius:8px;
    background:#FFFFFF;
    box-shadow:var(--shadow-sm);
}

.experts-summary strong{
    display:block;
    color:var(--text);
    font-size:28px;
}

.experts-summary span{
    color:var(--text-secondary);
    font-size:13px;
}

.experts-section{
    padding:46px 0 70px;
}

.experts-section-head{
    display:flex;
    justify-content:space-between;
    gap:20px;
    align-items:end;
    margin-bottom:22px;
}

.experts-section-head span{
    color:var(--primary);
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
}

.experts-section-head h2{
    margin:8px 0 6px;
    color:var(--text);
    font-size:30px;
}

.experts-section-head p{
    color:var(--text-secondary);
    font-size:14px;
}

.experts-filters{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:8px;
}

.experts-filters button{
    padding:9px 12px;
    border:1px solid var(--border);
    border-radius:999px;
    background:#FFFFFF;
    color:var(--text-secondary);
    font-size:12px;
    font-weight:800;
}

.experts-filters button.active{
    border-color:var(--primary);
    background:var(--primary);
    color:#FFFFFF;
}

.experts-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:18px;
}

.expert-card{
    display:flex;
    flex-direction:column;
    min-height:100%;
    padding:20px;
    border:1px solid var(--border);
    border-radius:8px;
    background:#FFFFFF;
    box-shadow:var(--shadow-sm);
}

.expert-card-head{
    display:flex;
    align-items:center;
    gap:14px;
}

.expert-avatar{
    display:grid;
    place-items:center;
    width:58px;
    height:58px;
    flex:0 0 auto;
    border-radius:18px;
    background:#EFF6FF;
    color:var(--primary);
    font-size:20px;
    font-weight:900;
}

.expert-card h3{
    color:var(--text);
    font-size:18px;
    margin-bottom:3px;
}

.expert-card small{
    color:var(--text-secondary);
    font-size:12px;
    font-weight:700;
}

.expert-card p{
    margin:16px 0;
    color:var(--text-secondary);
    font-size:13px;
    line-height:1.7;
}

.expert-meta{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:8px;
    margin-bottom:14px;
}

.expert-meta div{
    padding:10px;
    border-radius:8px;
    background:#F8FAFC;
}

.expert-meta strong{
    display:block;
    color:var(--text);
    font-size:13px;
}

.expert-meta span{
    color:var(--text-light);
    font-size:11px;
}

.expert-tags{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin-bottom:18px;
}

.expert-tags span{
    padding:6px 9px;
    border-radius:999px;
    background:#EEF5FF;
    color:var(--primary);
    font-size:11px;
    font-weight:800;
}

.expert-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:9px;
    margin-top:auto;
}

.expert-actions button{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:11px 12px;
    border-radius:999px;
    font-size:13px;
    font-weight:900;
}

.expert-actions button:first-child{
    background:var(--primary);
    color:#FFFFFF;
}

.expert-actions button:not(:first-child){
    border:1px solid var(--border);
    background:#FFFFFF;
    color:var(--text);
}

.experts-loading,
.experts-empty{
    grid-column:1 / -1;
    padding:26px;
    border:1px solid var(--border);
    border-radius:8px;
    background:#FFFFFF;
    color:var(--text-secondary);
    text-align:center;
}

.expert-modal{
    position:fixed;
    inset:0;
    z-index:60;
    display:grid;
    place-items:center;
    padding:20px;
    background:rgba(7,19,41,.48);
}

.expert-modal[hidden]{
    display:none;
}

.expert-modal-card{
    position:relative;
    width:min(560px,100%);
    padding:26px;
    border-radius:8px;
    background:#FFFFFF;
    box-shadow:var(--shadow-lg);
}

.expert-modal-close{
    position:absolute;
    top:14px;
    right:14px;
    display:grid;
    place-items:center;
    width:34px;
    height:34px;
    border-radius:999px;
    background:#F1F5F9;
    color:var(--text);
}

.expert-modal-card > span{
    color:var(--primary);
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
}

.expert-modal-card h2{
    margin:8px 36px 6px 0;
    color:var(--text);
    font-size:24px;
}

.expert-modal-card p{
    color:var(--text-secondary);
    font-size:13px;
    line-height:1.7;
}

.expert-modal-card form{
    display:grid;
    gap:12px;
    margin-top:18px;
}

.expert-modal-card label{
    display:grid;
    gap:7px;
    color:var(--text);
    font-size:12px;
    font-weight:800;
}

.expert-modal-card input,
.expert-modal-card textarea{
    width:100%;
    padding:12px 13px;
    border:1px solid var(--border);
    border-radius:8px;
    background:#F8FAFC;
    color:var(--text);
    font:inherit;
    font-size:13px;
}

.expert-toast{
    position:fixed;
    right:20px;
    bottom:20px;
    z-index:70;
    max-width:340px;
    padding:14px 16px;
    border:1px solid rgba(37,99,235,.2);
    border-radius:8px;
    background:#FFFFFF;
    color:var(--text);
    box-shadow:var(--shadow-lg);
    font-size:13px;
    font-weight:800;
}

.expert-toast[hidden]{
    display:none;
}

@media(max-width:900px){
    .experts-hero-grid,
    .experts-section-head{
        grid-template-columns:1fr;
        display:grid;
    }

    .experts-section-head{
        align-items:start;
    }

    .experts-filters{
        justify-content:flex-start;
    }

    .experts-nav{
        align-items:flex-start;
        flex-direction:column;
        padding:16px 0;
    }

    .experts-nav nav{
        flex-wrap:wrap;
        gap:14px;
    }

    .experts-session-actions{
        width:100%;
        justify-content:space-between;
        flex-wrap:wrap;
    }

    .experts-hero h1{
        font-size:36px;
    }
}

@media(max-width:520px){
    .expert-meta{
        grid-template-columns:1fr;
    }
}
