/*
Theme Name: Nalexa Birru Initiative
Theme URI: https://nalexabirru.agilkaryagroup.com
Description: Child theme for the Nalexa Birru Global Children's Literacy & Art Initiative
Author: Nalexa Birru Nusantara Foundation
Template: twentytwentyfive
Version: 1.0.0
*/

/* ==================== RESET & BASE ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --coral: #D4836B;
    --coral-light: #E8A690;
    --coral-dark: #B8654E;
    --navy: #1B2A4A;
    --navy-light: #2D4470;
    --cream: #FDF8F4;
    --cream-dark: #F5EDE6;
    --gold: #C9A84C;
    --gold-light: #E0C66E;
    --white: #FFFFFF;
    --gray-100: #F7F7F7;
    --gray-200: #E8E8E8;
    --gray-300: #D1D1D1;
    --gray-500: #888888;
    --gray-700: #555555;
    --shadow-sm: 0 1px 3px rgba(27,42,74,0.08);
    --shadow-md: 0 4px 12px rgba(27,42,74,0.1);
    --shadow-lg: 0 8px 30px rgba(27,42,74,0.12);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html.admin-bar { scroll-padding-top: 112px; }

body.nalexa-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--navy);
    background: var(--cream);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

.nalexa-page h1, .nalexa-page h2, .nalexa-page h3, .nalexa-page h4 { line-height: 1.3; font-weight: 700; }
.nalexa-page h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.nalexa-page h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.nalexa-page h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

.nalexa-page a,
.nalexa-page a:visited { color: var(--coral); text-decoration: none; transition: color var(--transition); }
.nalexa-page a:hover { color: var(--coral-dark); }

/* Override Twenty Twenty-Five link styles globally */
.nalexa-page .hero a,
.nalexa-page .hero a:visited,
.nalexa-page .speaker-info-box a,
.nalexa-page .speaker-info-box a:visited,
.nalexa-page .nalexa-footer a,
.nalexa-page .nalexa-footer a:visited {
    text-decoration: none !important;
}

.nalexa-page .nav-logo,
.nalexa-page .nav-logo:visited {
    color: var(--navy) !important;
    text-decoration: none !important;
}

.nalexa-page .footer-links a,
.nalexa-page .footer-links a:visited {
    color: rgba(255,255,255,0.6) !important;
}
.nalexa-page .footer-links a:hover {
    color: #FFFFFF !important;
}
.nalexa-page img { max-width: 100%; display: block; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.nalexa-page section { padding: 80px 0; }

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 12px;
}

.section-title { margin-bottom: 20px; }

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-700);
    max-width: 680px;
    line-height: 1.8;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .section-subtitle { margin: 0 auto; }

/* ==================== BUTTONS ==================== */
.nalexa-page .btn,
.nalexa-page a.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none !important;
}

.nalexa-page .btn-primary,
.nalexa-page a.btn-primary,
.nalexa-page a.btn-primary:visited {
    background: var(--coral) !important;
    color: #FFFFFF !important;
    border-color: var(--coral) !important;
}
.nalexa-page .btn-primary:hover,
.nalexa-page a.btn-primary:hover {
    background: var(--coral-dark) !important;
    border-color: var(--coral-dark) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,131,107,0.35);
}

.nalexa-page .btn-outline,
.nalexa-page a.btn-outline,
.nalexa-page a.btn-outline:visited {
    background: transparent !important;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
}
.nalexa-page .btn-outline:hover,
.nalexa-page a.btn-outline:hover {
    background: #FFFFFF !important;
    color: var(--navy) !important;
    transform: translateY(-2px);
}

.nalexa-page .btn-gold,
.nalexa-page a.btn-gold,
.nalexa-page a.btn-gold:visited {
    background: var(--gold) !important;
    color: var(--navy) !important;
    border-color: var(--gold) !important;
}
.nalexa-page .btn-gold:hover,
.nalexa-page a.btn-gold:hover {
    background: var(--gold-light) !important;
    border-color: var(--gold-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253,248,244,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(27,42,74,0.06);
    transition: box-shadow var(--transition);
}

.navbar.scrolled { box-shadow: var(--shadow-md); }

/* Account for WordPress admin bar */
.admin-bar .navbar { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar .navbar { top: 46px; }
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
}
.nav-logo span { color: var(--coral); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nalexa-page .nav-links a {
    color: var(--navy) !important;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}
.nalexa-page .nav-links a:visited {
    color: var(--navy) !important;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral);
    transition: width var(--transition);
}

.nalexa-page .nav-links a:hover { color: var(--coral) !important; }
.nalexa-page .nav-links a:hover::after { width: 100%; }

.nav-links a.btn::after { display: none; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 900px) {
    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--cream);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        border-bottom: 1px solid var(--gray-200);
        transform: translateY(-120%);
        transition: transform 0.35s ease;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open { transform: translateY(0); }
    .nav-links li { width: 100%; }

    .nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--gray-200);
    }
    .nav-links a::after { display: none; }

    .admin-bar .nav-links { top: 118px; }
}

@media (max-width: 782px) {
    .admin-bar .nav-links { top: 118px; }
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #3A5A8A 100%);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(212,131,107,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(201,168,76,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--coral-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-edition-badge {
    background: rgba(201,168,76,0.15);
    border-color: rgba(201,168,76,0.4);
    color: var(--gold);
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 8px;
}
.hero h1 .highlight { color: var(--coral-light); }

.hero-program {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 24px;
}

.hero-description {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-decoration {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    height: 380px;
    opacity: 0.08;
    z-index: 0;
}
.hero-decoration svg { width: 100%; height: 100%; }

@media (max-width: 768px) {
    .hero { min-height: auto; padding: 140px 0 80px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { text-align: center; justify-content: center; }
    .hero-decoration { display: none; }
}

/* ==================== ABOUT ==================== */
.about { background: var(--white); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    color: var(--gray-700);
    margin-bottom: 20px;
}

.principle-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.principle-card {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: transform var(--transition), box-shadow var(--transition);
}
.principle-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}
.principle-card h4 { font-size: 1rem; margin-bottom: 6px; color: var(--navy); }
.principle-card p { font-size: 0.9rem; color: var(--gray-700); line-height: 1.6; }

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ==================== OPEN CALL ==================== */
.open-call { background: var(--cream); }

.call-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}
.call-intro p { color: var(--gray-700); font-size: 1.05rem; line-height: 1.8; }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.info-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.info-card-icon.coral { background: rgba(212,131,107,0.12); color: var(--coral); }
.info-card-icon.navy { background: rgba(27,42,74,0.08); color: var(--navy); }
.info-card-icon.gold { background: rgba(201,168,76,0.12); color: var(--gold); }

.info-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.info-card ul { list-style: none; padding: 0; }

.info-card li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: var(--gray-700);
    font-size: 0.95rem;
}
.info-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--coral-light);
}

/* Timeline */
.timeline-section {
    background: var(--navy);
    border-radius: var(--radius-lg);
    padding: 48px;
    margin-bottom: 50px;
    color: var(--white);
}
.timeline-section h3 { text-align: center; margin-bottom: 36px; color: var(--white); }

.timeline {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.timeline-item {
    text-align: center;
    flex: 1;
    min-width: 180px;
    max-width: 260px;
    position: relative;
    padding: 0 20px;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 0;
    width: 50%;
    height: 2px;
    background: rgba(255,255,255,0.2);
}
.timeline-item:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 50%;
    height: 2px;
    background: rgba(255,255,255,0.2);
}

.timeline-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--coral);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-weight: 700;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
    color: var(--white);
}

.timeline-label { font-size: 0.85rem; font-weight: 600; color: var(--coral-light); margin-bottom: 6px; }
.timeline-detail { font-size: 0.9rem; color: rgba(255,255,255,0.7); }

/* Selection criteria */
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.criteria-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.criteria-item h4 { font-size: 0.95rem; margin-bottom: 8px; }
.criteria-item p { font-size: 0.85rem; color: var(--gray-700); }

/* ==================== TALKS ==================== */
.talks { background: var(--white); }

.talks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.talks-card {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 36px;
}
.talks-card h3 { margin-bottom: 20px; }
.talks-card ul { list-style: none; }

.talks-card li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: var(--gray-700);
}
.talks-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--coral);
}

@media (max-width: 768px) {
    .talks-grid { grid-template-columns: 1fr; }
}

/* ==================== SPEAKERS ==================== */
.speakers { background: var(--cream); }

.speakers-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}
.speakers-intro p { color: var(--gray-700); font-size: 1.05rem; }

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.speaker-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.speaker-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.speaker-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(212,131,107,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.4rem;
}
.speaker-card h4 { font-size: 1rem; margin-bottom: 8px; }
.speaker-card p { font-size: 0.9rem; color: var(--gray-700); }

.speaker-info-box {
    background: var(--navy);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-top: 40px;
    color: var(--white);
}
.speaker-info-box h3 { margin-bottom: 20px; color: var(--white); }
.speaker-info-box ul { list-style: none; }

.speaker-info-box li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: rgba(255,255,255,0.8);
}
.speaker-info-box li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}

@media (max-width: 768px) {
    .speakers-grid { grid-template-columns: 1fr; }
}

/* ==================== PUBLICATION ==================== */
.publication { background: var(--white); }

.pub-card {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: var(--radius-lg);
    padding: 60px;
    color: var(--white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.pub-card h3 { color: var(--white); margin-bottom: 16px; font-size: 1.6rem; }
.pub-card p { color: rgba(255,255,255,0.8); line-height: 1.8; }

.pub-formats { display: flex; flex-direction: column; gap: 16px; }

.pub-format {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.pub-format-icon { font-size: 1.5rem; }
.pub-format h4 { font-size: 0.95rem; color: var(--white); margin-bottom: 2px; }
.pub-format p { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

@media (max-width: 768px) {
    .pub-card { grid-template-columns: 1fr; padding: 36px; }
}

/* ==================== PARTNERS ==================== */
.partners { background: var(--cream); }

.partners-intro {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
}
.partners-intro p { color: var(--gray-700); font-size: 1.05rem; }

.partner-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.partner-type {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.partner-type-icon { font-size: 2rem; margin-bottom: 16px; }
.partner-type h4 { margin-bottom: 8px; }
.partner-type p { font-size: 0.9rem; color: var(--gray-700); }

/* ==================== CONTACT ==================== */
.contact { background: var(--white); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info h3 { margin-bottom: 20px; }
.contact-info p { color: var(--gray-700); margin-bottom: 24px; }

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.contact-detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212,131,107,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.contact-detail span { color: var(--gray-700); font-size: 0.95rem; }

.contact-form-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 40px;
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ==================== FORMS (shared) ==================== */
.form-section {
    background: var(--cream);
}

.form-wrapper {
    max-width: 760px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
}

.form-section-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--coral);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 36px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--cream-dark);
}
.form-section-heading:first-of-type { margin-top: 0; }

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}
.form-group label .required { color: var(--coral); }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--navy);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(212,131,107,0.15);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}

.form-group .error-msg {
    display: none;
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 4px;
}

.form-group input.invalid ~ .error-msg,
.form-group select.invalid ~ .error-msg,
.form-group textarea.invalid ~ .error-msg {
    display: block;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .form-group-row { grid-template-columns: 1fr; }
    .form-wrapper { padding: 28px 20px; }
}

.form-radio-group,
.form-check-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.form-radio-group label,
.form-check-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    cursor: pointer;
    padding: 8px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    font-size: 0.9rem;
}

.form-radio-group label:hover,
.form-check-group label:hover {
    border-color: var(--coral-light);
}

.form-radio-group input:checked + span,
.form-check-group input:checked + span {
    color: var(--coral);
    font-weight: 500;
}

.form-radio-group label:has(input:checked),
.form-check-group label:has(input:checked) {
    border-color: var(--coral);
    background: rgba(212,131,107,0.05);
}

.file-upload {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--gray-100);
}
.file-upload:hover {
    border-color: var(--coral);
    background: rgba(212,131,107,0.03);
}
.file-upload input[type="file"] { display: none; }
.file-upload-icon { font-size: 2rem; margin-bottom: 8px; }
.file-upload p { font-size: 0.9rem; color: var(--gray-500); }

.file-upload .file-name {
    font-size: 0.85rem;
    color: var(--coral);
    font-weight: 600;
    margin-top: 8px;
}

.consent-box {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}
.consent-box p { font-size: 0.9rem; color: var(--gray-700); margin-bottom: 12px; line-height: 1.6; }

.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.consent-check input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--coral);
    flex-shrink: 0;
}
.consent-check span { font-size: 0.9rem; font-weight: 600; color: var(--navy); }

.form-submit-btn { margin-top: 32px; text-align: center; }
.form-submit-btn .btn { min-width: 220px; }

.form-success {
    display: none;
    text-align: center;
    padding: 48px 24px;
}
.form-success.show { display: block; }

.form-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(212,131,107,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}
.form-success h3 { margin-bottom: 12px; color: var(--navy); }
.form-success p { color: var(--gray-700); }

.form-status {
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-top: 16px;
    font-size: 0.9rem;
    display: none;
}
.form-status.error {
    display: block;
    background: rgba(231,76,60,0.08);
    color: #c0392b;
    border: 1px solid rgba(231,76,60,0.2);
}
.form-status.loading {
    display: block;
    color: var(--gray-700);
}

/* ==================== BLOG ==================== */
.blog-section { background: var(--cream); padding-top: 100px; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--cream-dark);
}

.blog-card-body { padding: 24px; }
.blog-card-date { font-size: 0.8rem; color: var(--gray-500); margin-bottom: 8px; }
.blog-card-body h3 { font-size: 1.15rem; margin-bottom: 10px; }
.blog-card-body h3 a { color: var(--navy); }
.blog-card-body h3 a:hover { color: var(--coral); }
.blog-card-body p { font-size: 0.9rem; color: var(--gray-700); line-height: 1.6; }

.blog-card-footer {
    padding: 0 24px 24px;
}
.blog-card-footer a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--coral);
}

.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.pagination-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination-nav a,
.pagination-nav span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition);
}
.pagination-nav a {
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--gray-200);
}
.pagination-nav a:hover {
    background: var(--coral);
    color: var(--white);
    border-color: var(--coral);
}
.pagination-nav span.current {
    background: var(--coral);
    color: var(--white);
}

/* ==================== GALLERY ==================== */
.gallery-section { background: var(--cream); padding-top: 100px; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-item {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-item-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    background: var(--cream-dark);
}

.gallery-item-info { padding: 20px; }
.gallery-item-info h4 { font-size: 1rem; margin-bottom: 6px; }

.gallery-item-meta {
    font-size: 0.8rem;
    color: var(--gray-500);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.gallery-item-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 50px;
    background: rgba(212,131,107,0.1);
    color: var(--coral);
    margin-top: 8px;
}

.gallery-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

/* Gallery admin add button */
.gallery-admin-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.gallery-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--coral);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.gallery-add-btn:hover {
    background: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,131,107,0.35);
}

/* Gallery modal */
.gallery-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(27,42,74,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.gallery-modal-overlay.open { display: flex; }

.gallery-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.gallery-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition);
}
.gallery-modal-close:hover { background: var(--gray-100); }

.gallery-modal h3 { margin-bottom: 24px; }

/* Gallery carousel badge */
.gallery-item-image-wrap {
    position: relative;
}

.gallery-carousel-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(27,42,74,0.75);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
}

/* Lightbox for viewing gallery items */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(27,42,74,0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.lightbox-overlay.open { display: flex; }

.lightbox-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.lightbox-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    background: var(--navy);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.lightbox-info { padding: 28px; }
.lightbox-info h3 { margin-bottom: 8px; }
.lightbox-info .gallery-item-meta { margin-bottom: 12px; }
.lightbox-info p { color: var(--gray-700); font-size: 0.95rem; line-height: 1.7; }

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    color: var(--navy);
}

/* Lightbox carousel controls */
.lightbox-carousel {
    position: relative;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    color: var(--navy);
    transition: all var(--transition);
    z-index: 2;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(27,42,74,0.75);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2;
}

/* ==================== BRAND CONTAINER ==================== */
.brand-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo-img {
    display: block;
}

.brand-logo-nav {
    max-height: 40px;
    width: auto;
}

.brand-logo-footer {
    max-height: 32px;
    width: auto;
}

.brand-image-mode {
    display: flex;
    align-items: center;
}

.brand-edit-btn {
    display: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--gray-300);
    background: var(--white);
    font-size: 0.85rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    color: var(--gray-700);
    flex-shrink: 0;
}

.brand-container:hover .brand-edit-btn {
    display: flex;
}

.brand-edit-btn:hover {
    border-color: var(--coral);
    color: var(--coral);
    background: rgba(212,131,107,0.08);
}

@media (max-width: 900px) {
    .brand-edit-btn {
        display: flex;
    }
    .lightbox-prev,
    .lightbox-next {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

/* ==================== SINGLE POST ==================== */
.single-post-section {
    background: var(--cream);
    padding-top: 100px;
    padding-bottom: 80px;
}

.single-post-wrapper {
    max-width: 760px;
    margin: 0 auto;
}

.single-post-meta {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.single-post-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 32px;
}

.single-post-featured {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 36px;
    max-height: 480px;
    object-fit: cover;
}

.single-post-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--gray-700);
}

.single-post-content p { margin-bottom: 20px; }
.single-post-content h2 { margin: 36px 0 16px; font-size: 1.5rem; color: var(--navy); }
.single-post-content h3 { margin: 28px 0 12px; font-size: 1.2rem; color: var(--navy); }
.single-post-content img { border-radius: var(--radius-md); margin: 20px 0; }
.single-post-content a { color: var(--coral); text-decoration: underline; }
.single-post-content blockquote {
    border-left: 4px solid var(--coral);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--white);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--navy);
}

.single-post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}
.single-post-nav a { font-weight: 600; }

/* ==================== FOOTER ==================== */
.nalexa-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: 48px 0 32px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}
.footer-logo span { color: var(--coral-light); }

.footer-text { font-size: 0.85rem; text-align: center; }

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

@media (max-width: 600px) {
    .footer-content { flex-direction: column; text-align: center; }
}

/* ==================== ANIMATIONS ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }

/* Honeypot field - hidden from users */
.hnpt { position: absolute; left: -9999px; }

/* ==================== DARK MODE ==================== */
body.nalexa-page.dark-mode {
    --navy: #E8E0D8;
    --navy-light: #C8C0B8;
    --cream: #1A1A2E;
    --cream-dark: #16213E;
    --white: #0F3460;
    --coral: #E94560;
    --coral-light: #FF6B6B;
    --coral-dark: #C73E54;
    --gold: #FFD700;
    --gold-light: #FFE44D;
    --gray-100: #1E2A4A;
    --gray-200: #2A3A5C;
    --gray-300: #3A4A6C;
    --gray-500: #8899AA;
    --gray-700: #AABBCC;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
    color: #E8E0D8;
    background: #1A1A2E;
}

body.dark-mode .navbar {
    background: rgba(26,26,46,0.95);
    border-bottom-color: rgba(255,255,255,0.06);
}

body.dark-mode .nav-logo,
body.dark-mode .nav-logo:visited {
    color: #E8E0D8 !important;
}

body.dark-mode .nav-links a,
body.dark-mode .nav-links a:visited {
    color: #E8E0D8 !important;
}

body.dark-mode .nav-links a:hover {
    color: var(--coral) !important;
}

body.dark-mode .hamburger span {
    background: #E8E0D8;
}

body.dark-mode .nalexa-footer {
    background: #0D0D1A;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #0D0D1A 0%, #1A1A2E 50%, #16213E 100%);
}

/* Sections that use navy background must stay dark in dark mode */
body.dark-mode .speaker-info-box {
    background: #0D0D1A;
    color: rgba(255,255,255,0.9);
}
body.dark-mode .speaker-info-box h3 { color: #fff; }
body.dark-mode .speaker-info-box li { color: rgba(255,255,255,0.75); }
body.dark-mode .speaker-info-box li::before { background: #FFD700; }

body.dark-mode .timeline-section {
    background: #0D0D1A;
    color: #fff;
}
body.dark-mode .timeline-section h3 { color: #fff; }
body.dark-mode .timeline-detail { color: rgba(255,255,255,0.7); }
body.dark-mode .timeline-label { color: #FF6B6B; }
body.dark-mode .timeline-dot { background: #E94560; color: #fff; }
body.dark-mode .timeline-item:not(:last-child)::after,
body.dark-mode .timeline-item:not(:first-child)::before {
    background: rgba(255,255,255,0.2);
}

body.dark-mode .pub-card {
    background: linear-gradient(135deg, #0D0D1A 0%, #141428 100%);
    color: #fff;
}
body.dark-mode .pub-card h3 { color: #fff; }
body.dark-mode .pub-card p { color: rgba(255,255,255,0.8); }
body.dark-mode .pub-format {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
}
body.dark-mode .pub-format h4 { color: #fff; }
body.dark-mode .pub-format p { color: rgba(255,255,255,0.6); }

body.dark-mode .nalexa-footer {
    color: rgba(255,255,255,0.7);
}
body.dark-mode .footer-logo { color: #fff; }
body.dark-mode .footer-logo span { color: #FF6B6B; }
body.dark-mode .footer-text { color: rgba(255,255,255,0.5); }

/* Form sections in dark mode */
body.dark-mode .form-wrapper {
    background: #16213E;
}
body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background: #1A1A2E;
    color: #E8E0D8;
    border-color: #2A3A5C;
}
body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus,
body.dark-mode .form-group textarea:focus {
    border-color: #E94560;
    box-shadow: 0 0 0 3px rgba(233,69,96,0.15);
}
body.dark-mode .form-group label { color: #E8E0D8; }
body.dark-mode .consent-box { background: #1A1A2E; }
body.dark-mode .consent-box p { color: rgba(255,255,255,0.7); }
body.dark-mode .consent-check span { color: #E8E0D8; }
body.dark-mode .form-section-heading {
    color: #E94560;
    border-bottom-color: #2A3A5C;
}
body.dark-mode .contact-form-card { background: #16213E; }
body.dark-mode .file-upload {
    background: #1A1A2E;
    border-color: #3A4A6C;
}
body.dark-mode .file-upload:hover { border-color: #E94560; }

/* Cards in dark mode */
body.dark-mode .principle-card {
    background: #16213E;
    border-left-color: #E94560;
}
body.dark-mode .principle-card h4 { color: #E8E0D8; }

body.dark-mode .info-card {
    background: #16213E;
}
body.dark-mode .criteria-item {
    background: #16213E;
    border-top-color: #FFD700;
}
body.dark-mode .talks-card { background: #16213E; }
body.dark-mode .speaker-card { background: #16213E; }
body.dark-mode .partner-type {
    background: #16213E;
    border-bottom-color: #FFD700;
}

/* Buttons in dark mode */
body.dark-mode .btn-gold,
body.dark-mode a.btn-gold,
body.dark-mode a.btn-gold:visited {
    background: #FFD700 !important;
    color: #0D0D1A !important;
    border-color: #FFD700 !important;
}

body.dark-mode .form-radio-group label,
body.dark-mode .form-check-group label {
    border-color: #2A3A5C;
    color: #AABBCC;
}
body.dark-mode .form-radio-group label:hover,
body.dark-mode .form-check-group label:hover {
    border-color: #FF6B6B;
}

/* Blog & gallery cards in dark mode */
body.dark-mode .blog-card { background: #16213E; }
body.dark-mode .blog-card-body h3 a { color: #E8E0D8; }
body.dark-mode .blog-card-body h3 a:hover { color: #E94560; }
body.dark-mode .gallery-item { background: #16213E; }
body.dark-mode .gallery-carousel-badge {
    background: rgba(255,255,255,0.2);
}
body.dark-mode .lightbox-prev,
body.dark-mode .lightbox-next {
    background: rgba(30,42,74,0.85);
    color: #E8E0D8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
body.dark-mode .lightbox-prev:hover,
body.dark-mode .lightbox-next:hover {
    background: rgba(30,42,74,1);
}
body.dark-mode .lightbox-counter {
    background: rgba(0,0,0,0.6);
}
body.dark-mode .brand-edit-btn {
    background: #16213E;
    border-color: #3A4A6C;
    color: #8899AA;
}
body.dark-mode .brand-edit-btn:hover {
    border-color: #E94560;
    color: #E94560;
    background: rgba(233,69,96,0.1);
}
body.dark-mode .leaderboard { background: #16213E; }
body.dark-mode .leaderboard h3 { border-bottom-color: #2A3A5C; }
body.dark-mode .leaderboard-tabs { border-bottom-color: #2A3A5C; }
body.dark-mode .leaderboard-tab { color: #8899AA; }
body.dark-mode .leaderboard-tab:hover { color: #E94560; }
body.dark-mode .leaderboard-tab.active { color: #E94560; border-bottom-color: #E94560; }
body.dark-mode .leaderboard-item { border-bottom-color: #1A1A2E; }
body.dark-mode .leaderboard-title a { color: #E8E0D8 !important; }
body.dark-mode .leaderboard-title a:hover { color: #E94560 !important; }
body.dark-mode .leaderboard-rank { background: #1A1A2E; color: #8899AA; }

/* Single post dark mode */
body.dark-mode .single-post-content a { color: #E94560; }
body.dark-mode .single-post-content blockquote {
    background: #16213E;
    border-left-color: #E94560;
    color: #E8E0D8;
}

@media (max-width: 900px) {
    body.dark-mode .nav-links {
        background: #1A1A2E;
        border-bottom-color: rgba(255,255,255,0.1);
    }
    body.dark-mode .nav-links a {
        border-bottom-color: rgba(255,255,255,0.06);
    }
}

/* Dark mode toggle button */
.dark-toggle {
    background: none;
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition);
    margin-right: 8px;
    flex-shrink: 0;
    color: var(--navy);
}

body.dark-mode .dark-toggle {
    border-color: rgba(255,255,255,0.2);
    color: #FFD700;
}

.dark-toggle:hover {
    border-color: var(--coral);
    transform: scale(1.1);
}

/* ==================== ADMIN INLINE EDITING ==================== */
.nalexa-editable {
    position: relative;
    transition: outline 0.2s ease, background 0.2s ease;
    outline: 2px dashed transparent;
    border-radius: 4px;
    padding: 1px 4px;
    margin: -1px -4px;
}

.nalexa-editable:hover {
    outline-color: rgba(201,168,76,0.4);
    background: rgba(201,168,76,0.05);
}

.nalexa-editable:focus {
    outline: 2px solid var(--gold) !important;
    background: rgba(201,168,76,0.08);
}

.nalexa-editable.dirty {
    outline-color: var(--gold);
}

.nalexa-editable-saved {
    animation: nalexaSaveFlash 0.6s ease;
}

@keyframes nalexaSaveFlash {
    0% { background: rgba(46,204,113,0.3); }
    100% { background: transparent; }
}

/* Admin toolbar */
.nalexa-admin-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1B2A4A;
    border-top: 3px solid var(--gold);
    padding: 12px 24px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.admin-toolbar-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-toolbar-label {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-right: 8px;
}

.admin-toolbar-btn {
    padding: 8px 20px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}

.admin-toolbar-btn.save {
    background: #27ae60;
    color: #fff;
}
.admin-toolbar-btn.save:hover:not(:disabled) {
    background: #2ecc71;
    transform: translateY(-1px);
}
.admin-toolbar-btn.save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.admin-toolbar-btn.cancel {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.2);
}
.admin-toolbar-btn.cancel:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

.admin-toolbar-separator {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.15);
    margin: 0 8px;
}

.admin-toolbar-reset {
    position: relative;
}

.admin-toolbar-btn.reset {
    background: #e74c3c;
    color: #fff;
}
.admin-toolbar-btn.reset:hover {
    background: #c0392b;
}

.admin-reset-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    margin-bottom: 8px;
    overflow: hidden;
}

.admin-reset-dropdown.open { display: block; }

.reset-option {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    text-align: left;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    color: #333;
    transition: background 0.15s;
}

.reset-option:hover {
    background: #f0f0f0;
}

/* Pad bottom of pages for admin toolbar */
body.nalexa-page.has-admin-toolbar .nalexa-footer {
    padding-bottom: 80px;
}

/* ==================== VOTE BUTTONS ==================== */
.vote-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--gray-700);
}

.vote-btn:hover {
    border-color: var(--coral);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.vote-btn .vote-icon { font-size: 1rem; }
.vote-btn .vote-count {
    font-weight: 700;
    min-width: 16px;
    text-align: center;
}

.vote-btn.active[data-vote-type="helpful"] {
    background: rgba(233,69,96,0.12);
    border-color: var(--coral);
    color: var(--coral);
}

.vote-btn.active[data-vote-type="inspiring"] {
    background: rgba(255,215,0,0.12);
    border-color: var(--gold);
    color: #B8960F;
}

body.dark-mode .vote-btn.active[data-vote-type="inspiring"] {
    color: var(--gold);
}

.vote-btn.active[data-vote-type="creative"] {
    background: rgba(142,68,173,0.12);
    border-color: #8e44ad;
    color: #8e44ad;
}

/* Vote buttons on cards */
.blog-card .vote-buttons,
.gallery-item .vote-buttons {
    padding: 0 20px 16px;
}

.blog-card .vote-buttons { padding: 0 24px 20px; }

/* ==================== LEADERBOARD ==================== */
.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.leaderboard {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

.admin-bar .leaderboard { top: 132px; }

.leaderboard h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--cream-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.leaderboard-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--gray-200);
}

.leaderboard-tab {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: all var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    text-align: center;
}

.leaderboard-tab:hover {
    color: var(--coral);
}

.leaderboard-tab.active {
    color: var(--coral);
    border-bottom-color: var(--coral);
}

.leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.15s;
}

.leaderboard-item:last-child { border-bottom: none; }

.leaderboard-item:hover {
    background: rgba(212,131,107,0.04);
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: var(--radius-sm);
}

.leaderboard-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    background: var(--gray-100);
    color: var(--gray-700);
}

.leaderboard-item:nth-child(1) .leaderboard-rank {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
}
.leaderboard-item:nth-child(2) .leaderboard-rank {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: #fff;
}
.leaderboard-item:nth-child(3) .leaderboard-rank {
    background: linear-gradient(135deg, #CD7F32, #A0522D);
    color: #fff;
}

.leaderboard-title {
    flex: 1;
    min-width: 0;
}

.leaderboard-title a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--navy) !important;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.leaderboard-title a:hover { color: var(--coral) !important; }

.leaderboard-votes {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--coral);
    background: rgba(212,131,107,0.1);
    padding: 3px 10px;
    border-radius: 50px;
    flex-shrink: 0;
}

.leaderboard-empty {
    text-align: center;
    padding: 20px;
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* Reset button in single post context */
.leaderboard .reset-post-btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 8px;
    border: 1px solid #e74c3c;
    background: transparent;
    color: #e74c3c;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition);
}
.leaderboard .reset-post-btn:hover {
    background: #e74c3c;
    color: #fff;
}

@media (max-width: 900px) {
    .single-post-layout {
        grid-template-columns: 1fr;
    }
    .leaderboard {
        position: static;
    }
}

/* Leaderboard settings button */
.admin-toolbar-btn.lb-settings {
    background: #3498db;
    color: #fff;
}
.admin-toolbar-btn.lb-settings:hover {
    background: #2980b9;
}

/* Admin modal overlays */
.nalexa-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.nalexa-modal-overlay.open { display: flex; }

.nalexa-modal {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.nalexa-modal h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #1B2A4A;
}

.nalexa-modal-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.nalexa-modal-field {
    margin-bottom: 14px;
}
.nalexa-modal-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.nalexa-modal-field input,
.nalexa-modal-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #333;
    background: #fff;
    transition: border-color 0.2s;
}
.nalexa-modal-field input:focus,
.nalexa-modal-field select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

.nalexa-modal-error {
    display: block;
    font-size: 0.8rem;
    color: #e74c3c;
    margin-top: 4px;
    min-height: 18px;
}

.nalexa-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}
.nalexa-modal-actions .admin-toolbar-btn.cancel {
    color: #666;
    border-color: #ddd;
}
.nalexa-modal-actions .admin-toolbar-btn.cancel:hover {
    color: #333;
    border-color: #bbb;
}

/* Leaderboard export button */
.leaderboard-export-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 8px;
    border: 1px solid #3498db;
    background: transparent;
    color: #3498db;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition);
}
.leaderboard-export-btn:hover {
    background: #3498db;
    color: #fff;
}

.leaderboard-period {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-100);
}

/* Admin toolbar mobile */
@media (max-width: 600px) {
    .admin-toolbar-inner {
        justify-content: center;
    }
    .admin-toolbar-label { display: none; }
    .admin-toolbar-separator { display: none; }
}
