.legacy-navbar-hidden{display:none!important;}
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

body{
    background:#f4f7fb;
    color:#1e293b;
}

/* NAVBAR */

.navbar{
    width:100%;
    height:80px;
    background:#232F3E;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 8%;
    position:sticky;
    top:0;
    z-index:1000;
}

.logo{
    color:#FEBD69;
    font-size:1.8rem;
    font-weight:bold;
}

.nav-links{
    display:flex;
    gap:30px;
    list-style:none;
}

.nav-links a{
    color:white;
    text-decoration:none;
    transition:0.3s;
}

.nav-links a:hover, .nav-links a.active{
    color:#FEBD69;
}

/* PAGE */

.editors-page{
    padding:50px 8%;
    max-width: 1200px;
    margin: auto;
}

/* TOP */

.page-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:40px;
}

.page-top h1{
    font-size:2.5rem;
    color:#232F3E;
    margin-bottom:10px;
}

.page-top p{
    color:#64748b;
}

/* SEARCH */

.search-box{
    width:320px;
    background:white;
    padding:14px 18px;
    border-radius:14px;
    display:flex;
    align-items:center;
    gap:12px;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
}

.search-box i{
    color:#94a3b8;
}

.search-box input{
    width:100%;
    border:none;
    outline:none;
    font-size:1rem;
}

/* GRID */

.editors-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(320px,1fr));
    gap:25px;
}

/* CARD */

.editor-card{
    background:white;
    padding:28px;
    border-radius:24px;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
    transition:0.3s;
    position: relative; /* Added relative positioning for save button */
}

.save-editor-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #64748b;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.save-editor-btn:hover {
    transform: scale(1.1);
    background: #ffffff;
    color: #ef4444;
    border-color: #fca5a5;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.save-editor-btn.saved {
    color: #ef4444;
    background: #fef2f2;
    border-color: #fca5a5;
}

.editor-card:hover{
    transform:translateY(-5px);
}

/* TOP */

.editor-top{
    display:flex;
    align-items:center;
    gap:18px;
    margin-bottom:25px;
}

.editor-top img{
    width:75px;
    height:75px;
    border-radius:50%;
    object-fit:cover;
}

.editor-top h2{
    color:#232F3E;
    margin-bottom:8px;
}

.editor-top p{
    color:#64748b;
}

/* STATS */

.editor-stats{
    display:flex;
    justify-content:space-between;
    margin-bottom:25px;
}

.editor-stats span{
    color:#475569;
    display:flex;
    align-items:center;
    gap:8px;
}

/* SKILLS */

.skills{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-bottom:28px;
}

.skills span{
    background:#e0f2fe;
    color:#0284c7;
    padding:10px 16px;
    border-radius:50px;
    font-size:0.9rem;
    font-weight:600;
}

/* BUTTONS */

.editor-buttons{
    display:flex;
    gap:15px;
}

.profile-btn,
.hire-btn{
    flex:1;
    padding:14px;
    border:none;
    border-radius:14px;
    font-size:1rem;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.profile-btn{
    background:#232F3E;
    color:white;
}

.profile-btn:hover{
    background:#FEBD69;
    color: #232F3E;
}

.hire-btn{
    background:#e0f2fe;
    color:#0284c7;
}

.hire-btn:hover{
    background:#bae6fd;
}

.back-btn{
    position:fixed;
    top:25px;
    left:25px;
    width:50px;
    height:50px;
    border:none;
    border-radius:14px;
    background:#232F3E;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    font-size:1rem;
    z-index:1000;
    transition:0.3s;
    box-shadow:0 5px 15px rgba(0,0,0,0.15);
}

.back-btn:hover{
    background:#FEBD69;
    color:#232F3E;
    transform:translateY(-2px);
}

/* RESPONSIVE */

@media(max-width:768px){
    .navbar{
        padding:0 5%;
    }

    .editors-page{
        padding:40px 5%;
    }

    .page-top{
        flex-direction:column;
        align-items:flex-start;
        gap:20px;
    }

    .search-box{
        width:100%;
    }
}

/* Final editors-page fixes: remove old duplicate navbar and keep real profile cards visible */
body > header.navbar,
body > header.legacy-navbar-hidden,
body > div:has(> .professional-back-btn),
.professional-back-btn {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
}

.editors-page {
    padding-top: 38px !important;
}

.editor-loading-card,
.editor-empty-state {
    padding: 54px 28px;
    text-align: center;
    color: #475569;
    background: rgba(255,255,255,.96);
    border-radius: 24px;
    border: 1px solid rgba(148,163,184,.25);
    box-shadow: 0 18px 50px rgba(15,23,42,.08);
}

.editor-empty-state i {
    display: block;
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 14px;
}

.editor-empty-state h2 {
    color: #0f172a;
    margin-bottom: 8px;
}

.editor-about {
    color: #64748b;
    line-height: 1.6;
    min-height: 48px;
    margin: -10px 0 20px;
}

.editor-stats i.fa-star { color: #f59e0b; }
.editor-stats i.fa-circle-check { color: #16a34a; }
.editor-stats i.fa-indian-rupee-sign { color: #0ea5e9; }

.editor-card .avatar-initial,
.editor-card .avatar-initial img,
.editor-card .editor-top img {
    width: 74px !important;
    height: 74px !important;
    border-radius: 50% !important;
    flex: 0 0 74px;
}

body.dark-theme .editor-card,
body.dark-theme .editor-empty-state,
body.dark-theme .editor-loading-card {
    background: rgba(15,23,42,.92) !important;
    border-color: rgba(148,163,184,.22) !important;
    color: #e5e7eb !important;
}

body.dark-theme .editor-top h2,
body.dark-theme .editor-empty-state h2 {
    color: #fff !important;
}

body.dark-theme .editor-about,
body.dark-theme .editor-top p,
body.dark-theme .editor-stats span {
    color: #cbd5e1 !important;
}


/* Admin-selected editor priority badge */
.editor-card.featured-editor-card-public {
    border: 1px solid rgba(255, 184, 77, 0.55);
    box-shadow: 0 12px 34px rgba(255, 184, 77, 0.16), 0 5px 20px rgba(0,0,0,0.08);
}

.public-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 184, 77, 0.14);
    color: #9a5a00;
    font-weight: 900;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.dark-theme .public-featured-badge {
    background: rgba(255, 184, 77, 0.18);
    color: #ffcf7a;
}
