/* Bharat Divas 24 Core Frontend Styles */
:root {
    --bd24-navy: #071A4B;
    --bd24-navy-light: #102B70;
    --bd24-red: #E51E2A;
    --bd24-red-dark: #b91c1c;
    --bd24-gold: #FF9933;
    --bd24-green: #138808;
    --bd24-bg: #F4F6FA;
    --bd24-card: #FFFFFF;
    --bd24-text: #202938;
    --bd24-muted: #64748B;
    --bd24-line: #E2E8F0;
    --bd24-shadow: 0 10px 30px rgba(7, 26, 75, 0.08);
}

* { box-sizing: border-box; }

/* Language Switcher */
.bd24-lang-switcher {
    position: relative;
    display: inline-block;
}

.bd24-lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid var(--bd24-line);
    color: var(--bd24-navy);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.bd24-lang-btn:hover {
    background: #e2e8f0;
}

.bd24-lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 360px;
    max-height: 440px;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(7,26,75,0.22);
    border: 1px solid var(--bd24-line);
    z-index: 999999;
    padding: 12px;
}

.bd24-lang-switcher.open .bd24-lang-dropdown {
    display: block;
}

.bd24-lang-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--bd24-muted);
    letter-spacing: 0.8px;
    padding: 4px 6px 10px;
    border-bottom: 1px solid var(--bd24-line);
}

.bd24-lang-close-btn {
    background: transparent;
    border: none;
    font-size: 16px;
    color: var(--bd24-muted);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.bd24-lang-close-btn:hover {
    color: var(--bd24-red);
}

@media (max-width: 820px) {
    .bd24-lang-dropdown {
        position: fixed !important;
        top: 54px !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: 380px !important;
        margin: 0 auto !important;
        max-height: calc(85vh - 60px) !important;
        box-shadow: 0 16px 48px rgba(7, 26, 75, 0.3) !important;
        border-radius: 14px !important;
    }
    body.admin-bar .bd24-lang-dropdown {
        top: 98px !important;
    }
}

.bd24-lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding-top: 10px;
}

.bd24-lang-item {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--bd24-text);
    transition: background 0.15s;
}

.bd24-lang-item:hover, .bd24-lang-item.active {
    background: #f1f5f9;
    color: var(--bd24-red);
}

.bd24-lang-item strong {
    font-size: 14px;
}

.bd24-lang-item small {
    font-size: 11px;
    color: var(--bd24-muted);
}

/* Advertisement Units */
.bd24-ad-unit {
    margin: 20px auto;
    text-align: center;
    position: relative;
}

.bd24-ad-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--bd24-muted);
    letter-spacing: 0.6px;
    margin-bottom: 5px;
    font-weight: 700;
}

.bd24-ad-link img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.bd24-ad-slot-box {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

.ad-slot-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--bd24-navy);
}

.ad-slot-action a {
    color: var(--bd24-red);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    display: inline-block;
    margin-top: 6px;
}

/* Reporter Portal Layout */
.bd24-portal-wrap {
    background: var(--bd24-bg);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--bd24-text);
}

.bd24-portal-nav {
    background: var(--bd24-navy);
    color: #fff;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--bd24-red);
}

.bd24-portal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.bd24-portal-brand img {
    height: 38px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.bd24-portal-grid {
    max-width: 1400px;
    margin: 24px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
}

.bd24-portal-sidebar {
    background: var(--bd24-card);
    border-radius: 12px;
    border: 1px solid var(--bd24-line);
    padding: 20px;
    box-shadow: var(--bd24-shadow);
}

.bd24-rep-card-mini {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bd24-line);
    margin-bottom: 16px;
}

.bd24-rep-avatar-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, var(--bd24-navy), var(--bd24-navy-light));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 900;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(7, 26, 75, 0.2);
    outline: 2px solid var(--bd24-gold);
}

.bd24-rep-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    margin: 0 auto 10px;
    object-fit: cover;
    border: 3px solid var(--bd24-red);
    background: #e2e8f0;
}

.bd24-portal-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bd24-portal-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.15s;
    margin-bottom: 4px;
}

.bd24-portal-menu li a:hover, .bd24-portal-menu li.active a {
    background: #fff1f2;
    color: var(--bd24-red);
}

.bd24-portal-content {
    background: var(--bd24-card);
    border-radius: 12px;
    border: 1px solid var(--bd24-line);
    padding: 28px;
    box-shadow: var(--bd24-shadow);
}

/* Form Controls & Responsive Grid System */
.bd24-form-row {
    display: grid;
    gap: 18px;
    margin-bottom: 6px;
}

.bd24-form-row.bd24-col-2 {
    grid-template-columns: 1fr 1fr;
}

.bd24-form-row.bd24-col-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.bd24-form-card {
    background: #ffffff;
    padding: 36px;
    border-radius: 14px;
    border: 1px solid var(--bd24-line);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.bd24-recruitment-hero {
    background: linear-gradient(135deg, #071A4B, #102B70);
    color: #fff;
    padding: 36px 30px;
    border-radius: 14px;
    margin-bottom: 25px;
    border-bottom: 4px solid var(--bd24-red);
    text-align: center;
    box-shadow: 0 10px 30px rgba(7,26,75,0.12);
}

.bd24-hero-badge {
    display: inline-block;
    background: var(--bd24-gold);
    color: var(--bd24-navy);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bd24-hero-title {
    color: #fff;
    font-size: 26px;
    margin: 12px 0 8px;
    font-weight: 900;
    line-height: 1.3;
}

.bd24-hero-subtitle {
    color: #cbd5e1;
    font-size: 14px;
    margin: 0 auto;
    max-width: 650px;
    line-height: 1.5;
}

.bd24-hero-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.bd24-form-section-title {
    color: var(--bd24-navy);
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
    margin: 28px 0 18px;
    font-size: 17px;
    font-weight: 800;
}

.bd24-form-section-title:first-child {
    margin-top: 0;
}

.bd24-declaration-box {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin: 25px 0;
}

.bd24-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.6;
    cursor: pointer;
    color: var(--bd24-text);
}

.bd24-form-help {
    display: block;
    color: var(--bd24-muted);
    font-size: 11px;
    margin-top: 4px;
}

.bd24-btn-submit {
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bd24-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 30, 42, 0.4);
}

.bd24-form-group {
    margin-bottom: 18px;
}

.bd24-form-group label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: var(--bd24-navy);
    margin-bottom: 6px;
}

.bd24-input, .bd24-select, .bd24-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--bd24-line);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.bd24-input:focus, .bd24-select:focus, .bd24-textarea:focus {
    border-color: var(--bd24-navy);
}

.bd24-btn-primary {
    background: linear-gradient(135deg, var(--bd24-red), var(--bd24-red-dark));
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(229,30,42,0.3);
}

@media (max-width: 768px) {
    .bd24-portal-wrap {
        padding: 16px 10px !important;
    }

    .bd24-form-card {
        padding: 20px 14px !important;
        border-radius: 10px !important;
    }

    .bd24-recruitment-hero {
        padding: 22px 14px !important;
        border-radius: 10px !important;
        margin-bottom: 16px !important;
    }

    .bd24-hero-title {
        font-size: 19px !important;
    }

    .bd24-hero-subtitle {
        font-size: 13px !important;
    }

    .bd24-hero-actions {
        flex-direction: column !important;
        width: 100% !important;
    }

    .bd24-hero-actions .bd24-btn {
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 10px 14px !important;
    }

    /* ALL FORM ROWS STACK VERTICALLY ON MOBILE */
    .bd24-form-row.bd24-col-2,
    .bd24-form-row.bd24-col-3,
    div[style*="grid-template-columns:1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns:1fr 1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .bd24-form-group {
        margin-bottom: 14px !important;
    }

    .bd24-form-group label {
        font-size: 13px !important;
        margin-bottom: 5px !important;
    }

    .bd24-input, .bd24-select, .bd24-textarea {
        font-size: 16px !important; /* Prevents auto-zoom in iOS Safari */
        padding: 10px 12px !important;
        border-radius: 8px !important;
    }

    .bd24-form-section-title {
        font-size: 15px !important;
        margin: 22px 0 14px !important;
    }

    .bd24-btn-submit {
        width: 100% !important;
        padding: 13px 20px !important;
        font-size: 15px !important;
    }

    .bd24-status-form {
        flex-direction: column !important;
    }

    .bd24-status-form button {
        width: 100% !important;
    }
}

/* Dashboard Stats Grid */
.bd24-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.bd24-stat-card {
    background: #ffffff;
    border: 1px solid var(--bd24-line);
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(7, 26, 75, 0.04);
    border-left: 4px solid var(--bd24-navy);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bd24-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(7, 26, 75, 0.08);
}

.bd24-stat-card.green {
    border-left-color: var(--bd24-green);
    background: #f0fdf4;
}

.bd24-stat-card.red {
    border-left-color: var(--bd24-red);
    background: #fef2f2;
}

.bd24-stat-card.gold {
    border-left-color: var(--bd24-gold);
    background: #fffbeb;
}

.bd24-stat-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--bd24-muted);
    margin-bottom: 8px;
}

.bd24-stat-card.green .bd24-stat-label { color: #15803d; }
.bd24-stat-card.red .bd24-stat-label { color: #b91c1c; }
.bd24-stat-card.gold .bd24-stat-label { color: #b45309; }

.bd24-stat-value {
    font-size: 26px;
    font-weight: 900;
    color: var(--bd24-navy);
    line-height: 1.1;
}

.bd24-stat-card.green .bd24-stat-value { color: #166534; }
.bd24-stat-card.red .bd24-stat-value { color: #991b1b; }
.bd24-stat-card.gold .bd24-stat-value { color: #92400e; }

/* Responsive */
@media (max-width: 900px) {
    .bd24-portal-grid {
        grid-template-columns: 1fr;
    }
    .bd24-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 540px) {
    .bd24-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Reporter Profile Card */
.bd24-reporter-profile-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--bd24-line);
    box-shadow: 0 4px 20px rgba(7, 26, 75, 0.06);
    overflow: hidden;
    margin-bottom: 24px;
}

.bd24-profile-cover {
    background: linear-gradient(135deg, var(--bd24-navy) 0%, var(--bd24-navy-light) 60%, var(--bd24-red) 100%);
    height: 110px;
    position: relative;
    padding: 14px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.bd24-cover-badge {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 12px;
    border-radius: 20px;
}

.bd24-profile-header-body {
    padding: 0 24px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin-top: -45px;
    position: relative;
    z-index: 2;
}

.bd24-profile-avatar-large {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bd24-navy), var(--bd24-navy-light));
    color: #ffffff;
    border: 4px solid #ffffff;
    box-shadow: 0 6px 16px rgba(7, 26, 75, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 900;
    flex-shrink: 0;
    outline: 2px solid var(--bd24-gold);
}

.bd24-profile-title-area {
    flex: 1;
    padding-top: 50px;
}

.bd24-profile-name {
    font-size: 24px;
    font-weight: 900;
    color: var(--bd24-navy);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bd24-profile-designation {
    font-size: 13px;
    color: var(--bd24-muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.bd24-profile-code-badge {
    display: inline-block;
    font-size: 12px;
    color: var(--bd24-navy);
    font-weight: 700;
}

.bd24-profile-code-badge code {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--bd24-red);
    font-weight: 800;
}

.bd24-profile-bio {
    padding: 16px 24px;
    margin: 16px 24px 0;
    background: #f8fafc;
    border-left: 4px solid var(--bd24-red);
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
}

.bd24-profile-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 18px 24px;
    border-top: 1px solid var(--bd24-line);
    margin-top: 18px;
    background: #fafbfc;
    align-items: center;
}

.bd24-profile-stat-item {
    display: flex;
    flex-direction: column;
}

.bd24-profile-stat-item b {
    font-size: 18px;
    font-weight: 900;
    color: var(--bd24-navy);
    line-height: 1.2;
}

.bd24-profile-stat-item span {
    font-size: 11px;
    font-weight: 700;
    color: var(--bd24-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bd24-feed-section-header {
    background: #ffffff;
    border: 1px solid var(--bd24-line);
    border-radius: 10px;
    padding: 12px 18px;
    margin-bottom: 16px;
    border-left: 4px solid var(--bd24-red);
}

.bd24-feed-section-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--bd24-navy);
}

@media (max-width: 680px) {
    .bd24-profile-header-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .bd24-profile-title-area {
        padding-top: 10px;
    }
    .bd24-profile-name {
        justify-content: center;
    }
    .bd24-profile-stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        text-align: center;
    }
}

