/* ==========================================================================
   INDIAN SPORTS TROPHY DESIGN EXPLORER STYLES
   ========================================================================== */

.itd-page-body {
    background-color: var(--bg-dark-deep, #090D16);
    color: var(--text-light, #F8FAFC);
    font-family: var(--font-body, 'Outfit', sans-serif);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.light-theme.itd-page-body {
    background-color: #F8FAFC;
    color: #0F172A;
}

.itd-main {
    padding-top: var(--navbar-height, 80px);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.section-heading {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--saffron, #FF9933) 0%, var(--gold, #FFB01F) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── HERO ─────────────────────────────────────────────────────── */
.itd-hero {
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 153, 51, 0.18), transparent 60%),
                radial-gradient(ellipse at 50% 100%, rgba(19, 136, 8, 0.1), transparent 60%);
    padding: 4rem 1.5rem 3rem;
    text-align: center;
}

.itd-hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.itd-hero-kicker {
    display: inline-block;
    background: rgba(255, 153, 51, 0.15);
    color: var(--saffron, #FF9933);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.itd-hero-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    font-weight: 700;
    margin: 0 0 1rem;
    line-height: 1.1;
}

.itd-hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary, #94a3b8);
    max-width: 640px;
    margin: 0 auto 1.5rem;
}

.itd-hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.itd-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg-dark-card, rgba(30, 41, 59, 0.65));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary, #94a3b8);
}

.itd-badge strong {
    color: var(--text-light, #F8FAFC);
}

.light-theme .itd-badge {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    color: #475569;
}

.light-theme .itd-badge strong {
    color: #0F172A;
}

/* ── TABS ─────────────────────────────────────────────────────── */
.itd-tab-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(9, 13, 22, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 153, 51, 0.18);
    padding: 0.75rem 1rem;
}

.light-theme .itd-tab-nav {
    background: rgba(248, 250, 252, 0.92);
    border-bottom-color: rgba(255, 153, 51, 0.18);
}

.tab-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    background: transparent;
    color: var(--text-secondary, #94a3b8);
    border: 1px solid transparent;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: inherit;
}

.tab-btn:hover {
    color: var(--saffron, #FF9933);
    background: rgba(255, 153, 51, 0.08);
}

.tab-btn.active {
    background: var(--saffron, #FF9933);
    color: #1a0a1f;
}

.tab-btn:focus-visible {
    outline: 2px solid var(--saffron, #FF9933);
    outline-offset: 2px;
}

/* ── SECTIONS ─────────────────────────────────────────────────── */
.itd-section {
    display: none;
    animation: itd-fade 0.4s ease;
}

.itd-section.active {
    display: block;
}

@keyframes itd-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── CONTENT BLOCKS ───────────────────────────────────────────── */
.content-block {
    max-width: 800px;
    margin: 0 auto;
}

.content-block p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-secondary, #94a3b8);
}

.light-theme .content-block p {
    color: #475569;
}

.content-block strong {
    color: var(--text-light, #F8FAFC);
}

.light-theme .content-block strong {
    color: #0F172A;
}

.itd-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.itd-list li {
    padding: 0.75rem 0 0.75rem 1.5rem;
    position: relative;
    line-height: 1.6;
    color: var(--text-secondary, #94a3b8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.light-theme .itd-list li {
    color: #475569;
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.itd-list li::before {
    content: '🏆';
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

.itd-list strong {
    color: var(--text-light, #F8FAFC);
}

.light-theme .itd-list strong {
    color: #0F172A;
}

.tab-intro {
    color: var(--text-secondary, #94a3b8);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ── GLASS CARD ───────────────────────────────────────────────── */
.glass-card {
    background: var(--bg-dark-card, rgba(30, 41, 59, 0.65));
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 1.75rem;
    transition: all 0.4s ease;
}

.light-theme .glass-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
}

/* ── CARD GRID ────────────────────────────────────────────────── */
.itd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.itd-card {
    text-align: left;
}

.itd-card h3 {
    color: var(--saffron, #FF9933);
    font-size: 1.2rem;
    margin: 0 0 0.4rem;
}

.itd-card-tag {
    display: inline-block;
    color: var(--gold, #FFB01F);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.itd-card p {
    line-height: 1.75;
    color: var(--text-secondary, #94a3b8);
    margin: 0;
}

.light-theme .itd-card p {
    color: #475569;
}

/* ── TIMELINE ─────────────────────────────────────────────────── */
.itd-timeline {
    list-style: none;
    padding: 0;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.itd-timeline::before {
    content: '';
    position: absolute;
    left: 70px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--saffron, #FF9933) 0%, var(--green, #138808) 100%);
    border-radius: 2px;
}

.itd-timeline li {
    position: relative;
    padding-left: 100px;
    margin-bottom: 1.5rem;
    min-height: 40px;
}

.itd-timeline li .year {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    text-align: right;
    font-family: var(--font-mono, monospace);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--saffron, #FF9933);
}

.itd-timeline li::after {
    content: '';
    position: absolute;
    left: 64px;
    top: 4px;
    width: 14px;
    height: 14px;
    background: var(--saffron, #FF9933);
    border: 3px solid var(--bg-dark-deep, #090D16);
    border-radius: 50%;
    z-index: 1;
}

.light-theme .itd-timeline li::after {
    border-color: #F8FAFC;
}

.itd-timeline li h3 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
    color: var(--text-light, #F8FAFC);
}

.light-theme .itd-timeline li h3 {
    color: #0F172A;
}

.itd-timeline li p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-secondary, #94a3b8);
}

.light-theme .itd-timeline li p {
    color: #475569;
}

/* ── DIAGRAM ──────────────────────────────────────────────────── */
.itd-section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.itd-eyebrow {
    display: inline-block;
    background: rgba(255, 153, 51, 0.15);
    color: var(--saffron, #FF9933);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.itd-diagram {
    position: relative;
    max-width: 520px;
    margin: 0 auto 1.5rem;
    padding: 0 1.25rem;
}

.itd-trophy-svg {
    display: block;
    width: 100%;
    height: auto;
}

.itd-marker {
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--saffron, #FF9933);
    background: rgba(9, 13, 22, 0.85);
    color: var(--saffron, #FF9933);
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background 0.25s ease;
    transform: translate(-50%, -50%);
}

.light-theme .itd-marker {
    background: rgba(255, 255, 255, 0.92);
}

.itd-marker:hover,
.itd-marker:focus-visible {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--saffron, #FF9933);
    color: #1a0a1f;
    outline: none;
}

.itd-marker.active {
    background: var(--saffron, #FF9933);
    color: #1a0a1f;
}

.itd-marker-1 { top: 6%;   left: 50%; }
.itd-marker-2 { top: 30%;  left: 24%; }
.itd-marker-3 { top: 33%;  left: 60%; }
.itd-marker-4 { top: 40%;  right: 8%; }
.itd-marker-5 { top: 49%;  left: 50%; }
.itd-marker-6 { top: 63%;  left: 50%; }
.itd-marker-7 { top: 77%;  left: 50%; }
.itd-marker-8 { top: 92%;  left: 50%; }

/* ── PART PANEL ───────────────────────────────────────────────── */
.itd-part-panel {
    max-width: 640px;
    margin: 0 auto 2rem;
    border-left: 4px solid var(--saffron, #FF9933);
}

.itd-part-panel h3 {
    color: var(--saffron, #FF9933);
    font-size: 1.25rem;
    margin: 0 0 0.35rem;
}

.itd-part-example {
    color: var(--gold, #FFB01F);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
}

.itd-part-panel p {
    line-height: 1.75;
    color: var(--text-secondary, #94a3b8);
    margin: 0;
}

.light-theme .itd-part-panel p {
    color: #475569;
}

/* ── LEGEND ───────────────────────────────────────────────────── */
.itd-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 14px;
}

.itd-legend-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: var(--bg-dark-card, rgba(30, 41, 59, 0.65));
    color: var(--text-light, #F8FAFC);
    text-align: left;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.light-theme .itd-legend-btn {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    color: #0F172A;
}

.itd-legend-btn:hover {
    border-color: var(--saffron, #FF9933);
    transform: translateY(-2px);
}

.itd-legend-btn:focus-visible {
    outline: 2px solid var(--saffron, #FF9933);
    outline-offset: 2px;
}

.itd-legend-num {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--saffron, #FF9933);
    color: var(--saffron, #FF9933);
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.itd-legend-text {
    flex: 1;
    line-height: 1.5;
}

.itd-legend-text strong {
    display: block;
    color: var(--saffron, #FF9933);
}

.light-theme .itd-legend-text strong {
    color: #b45309;
}

.itd-legend-arrow {
    color: var(--saffron, #FF9933);
    font-size: 1.1rem;
}

/* ── REFERENCES ───────────────────────────────────────────────── */
.references-list {
    counter-reset: ref;
    max-width: 800px;
    margin: 0 auto;
}

.references-list .reference-item {
    counter-increment: ref;
    padding: 1rem 1.5rem 1rem 3rem;
    margin-bottom: 0.75rem;
    background: var(--bg-dark-card, rgba(30, 41, 59, 0.65));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    position: relative;
    line-height: 1.6;
    color: var(--text-secondary, #94a3b8);
}

.light-theme .references-list .reference-item {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
    color: #475569;
}

.references-list .reference-item::before {
    content: counter(ref) ".";
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--saffron, #FF9933);
    font-weight: 700;
}

.references-list .reference-item a {
    color: var(--saffron, #FF9933);
    text-decoration: none;
    word-break: break-word;
}

.references-list .reference-item a:hover {
    text-decoration: underline;
}

.references-list .reference-item strong {
    color: var(--text-light, #F8FAFC);
}

.light-theme .references-list .reference-item strong {
    color: #0F172A;
}

/* ── FOOTER ───────────────────────────────────────────────────── */
.itd-footer {
    text-align: center;
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(255, 153, 51, 0.18);
    color: var(--text-secondary, #94a3b8);
    font-size: 0.85rem;
}

.itd-footer a {
    color: var(--saffron, #FF9933);
    text-decoration: none;
}

.itd-footer a:hover {
    text-decoration: underline;
}

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .itd-hero {
        padding: 3rem 1rem 2rem;
    }
    .section-container {
        padding: 2rem 1rem;
    }
    .itd-hero-badges {
        flex-direction: column;
        align-items: center;
    }
    .tab-container {
        gap: 0.2rem;
    }
    .tab-btn {
        padding: 0.45rem 0.7rem;
        font-size: 0.78rem;
    }
    .itd-timeline::before {
        left: 4px;
    }
    .itd-timeline li {
        padding-left: 28px;
    }
    .itd-timeline li .year {
        position: static;
        display: block;
        text-align: left;
        margin-bottom: 0.25rem;
    }
    .itd-timeline li::after {
        left: -8px;
    }
    .itd-diagram {
        max-width: 420px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .itd-section { animation: none; }
    .itd-marker { transition: none; }
}
