/* ====================================================================
   DISCIPLINE LIST — Futuristic grouped sections
   Same design language as results + eventlist pages
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
    --dl-green:      #0bbf6a;
    --dl-green-glow: rgba(11, 191, 106, 0.38);
    --dl-gold:       #d6b35a;
    --dl-pink:       #e05c8a;
    --dl-pink-glow:  rgba(224, 92, 138, 0.3);
    --dl-border:     rgba(255, 255, 255, 0.09);
    --dl-text:       #e8f5ee;
    --dl-muted:      #7ba890;
    --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
}

/* ══════════════════════════════════════
   PAGE HEADING
   ══════════════════════════════════════ */
.dl-eyebrow {
    display: block;
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--dl-muted);
    margin-bottom: 0.4rem;
}

.dl-event-title {
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800;
    color: var(--dl-text);
    margin: 0;
    line-height: 1.1;
}

/* ══════════════════════════════════════
   GENDER TAB SWITCHER
   ══════════════════════════════════════ */
.dl-tabs {
    display: flex;
    gap: 6px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--dl-border);
    border-radius: 16px;
    margin-bottom: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dl-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--dl-muted);
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
    -webkit-tap-highlight-color: transparent;
}

.dl-tab i { font-size: 1rem; }

.dl-tab:hover { color: var(--dl-text); background: rgba(255,255,255,0.06); }

.dl-tab-count {
    font-family: 'Orbitron', monospace;
    font-size: 0.62rem;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    letter-spacing: 0.04em;
    transition: background 0.22s ease;
}

/* Active states */
.dl-tab.active-male {
    background: rgba(11, 191, 106, 0.13);
    border-color: rgba(11, 191, 106, 0.28);
    color: var(--dl-green);
    box-shadow: 0 0 20px rgba(11,191,106,0.08);
}
.dl-tab.active-male .dl-tab-count {
    background: rgba(11,191,106,0.2);
    color: var(--dl-green);
}

.dl-tab.active-female {
    background: rgba(224, 92, 138, 0.13);
    border-color: rgba(224, 92, 138, 0.28);
    color: var(--dl-pink);
    box-shadow: 0 0 20px rgba(224,92,138,0.08);
}
.dl-tab.active-female .dl-tab-count {
    background: rgba(224,92,138,0.2);
    color: var(--dl-pink);
}

/* ══════════════════════════════════════
   SECTION (Male / Female)
   ══════════════════════════════════════ */
.dl-section {
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: dlSectionIn 0.5s var(--ease-out) forwards;
}

.dl-section:nth-child(1) { animation-delay: 0.10s; }
.dl-section:nth-child(2) { animation-delay: 0.22s; }

@keyframes dlSectionIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Section header bar */
.dl-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--dl-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
}

/* Green left glow stripe */
.dl-section-header::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    border-radius: 3px 0 0 3px;
}

.dl-section-header.male {
    background: linear-gradient(135deg, rgba(11,191,106,0.09) 0%, rgba(255,255,255,0.03) 100%);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 24px rgba(11,191,106,0.05);
}
.dl-section-header.male::before { background: var(--dl-green); box-shadow: 0 0 12px var(--dl-green-glow); }

.dl-section-header.female {
    background: linear-gradient(135deg, rgba(224,92,138,0.09) 0%, rgba(255,255,255,0.03) 100%);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 24px rgba(224,92,138,0.05);
}
.dl-section-header.female::before { background: var(--dl-pink); box-shadow: 0 0 12px var(--dl-pink-glow); }

/* Gender icon circle */
.dl-gender-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.dl-gender-icon.male   { background: rgba(11,191,106,0.14);  border: 1px solid rgba(11,191,106,0.25);  color: var(--dl-green); }
.dl-gender-icon.female { background: rgba(224,92,138,0.14);  border: 1px solid rgba(224,92,138,0.25);  color: var(--dl-pink);  }

.dl-section-meta { flex: 1; }

.dl-section-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dl-muted);
    margin-bottom: 2px;
}

.dl-section-title {
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dl-text);
    margin: 0;
    line-height: 1.2;
}

.dl-section-count {
    font-family: 'Orbitron', monospace;
    font-size: 0.65rem;
    color: var(--dl-muted);
    letter-spacing: 0.06em;
    white-space: nowrap;
}

/* ══════════════════════════════════════
   DISCIPLINE ITEM CARDS
   ══════════════════════════════════════ */
.dl-items {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding-left: 0.5rem;
}

.dl-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    transition: background 0.2s ease, border-color 0.2s ease,
                transform 0.22s var(--ease-out), box-shadow 0.22s ease;
    /* staggered entrance */
    opacity: 0;
    animation: dlItemIn 0.4s var(--ease-out) forwards;
}

@keyframes dlItemIn {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Stagger items */
.dl-item:nth-child(1)  { animation-delay: 0.15s; }
.dl-item:nth-child(2)  { animation-delay: 0.20s; }
.dl-item:nth-child(3)  { animation-delay: 0.25s; }
.dl-item:nth-child(4)  { animation-delay: 0.30s; }
.dl-item:nth-child(5)  { animation-delay: 0.34s; }
.dl-item:nth-child(6)  { animation-delay: 0.38s; }
.dl-item:nth-child(7)  { animation-delay: 0.41s; }
.dl-item:nth-child(8)  { animation-delay: 0.44s; }
.dl-item:nth-child(9)  { animation-delay: 0.46s; }
.dl-item:nth-child(10) { animation-delay: 0.48s; }

/* Hover — male section */
.dl-section.male-section .dl-item:hover {
    background: rgba(11, 191, 106, 0.08);
    border-color: rgba(11, 191, 106, 0.22);
    box-shadow: inset 3px 0 0 var(--dl-green);
    transform: translateX(5px);
}

/* Hover — female section */
.dl-section.female-section .dl-item:hover {
    background: rgba(224, 92, 138, 0.08);
    border-color: rgba(224, 92, 138, 0.22);
    box-shadow: inset 3px 0 0 var(--dl-pink);
    transform: translateX(5px);
}

/* Item icon */
.dl-item-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.male-section .dl-item-icon   { background: rgba(11,191,106,0.10);  color: var(--dl-green); border: 1px solid rgba(11,191,106,0.18); }
.female-section .dl-item-icon { background: rgba(224,92,138,0.10);  color: var(--dl-pink);  border: 1px solid rgba(224,92,138,0.18); }

.dl-item:hover .dl-item-icon { transform: scale(1.1) rotate(-5deg); }

/* Item text */
.dl-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dl-item-category {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dl-gold);
}

.dl-item-name {
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dl-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.dl-item-time {
    font-family: 'Orbitron', monospace;
    font-size: 0.65rem;
    color: var(--dl-muted);
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Arrow */
.dl-item-arrow {
    font-size: 0.75rem;
    color: var(--dl-muted);
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.male-section   .dl-item:hover .dl-item-arrow { transform: translateX(4px); color: var(--dl-green); }
.female-section .dl-item:hover .dl-item-arrow { transform: translateX(4px); color: var(--dl-pink); }

/* ══════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════ */
.dl-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--dl-muted);
}

.dl-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.4;
}

/* ══════════════════════════════════════
   BACK NAVIGATION
   ══════════════════════════════════════ */
.dl-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0.45rem 1rem 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--dl-muted);
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dl-back-btn i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.dl-back-btn:hover {
    background: rgba(11, 191, 106, 0.10);
    border-color: rgba(11, 191, 106, 0.28);
    color: var(--dl-green);
}

.dl-back-btn:hover i {
    transform: translateX(-3px);
}

/* ══════════════════════════════════════
   MOBILE
   ══════════════════════════════════════ */
@media (max-width: 576px) {
    .dl-section-title { font-size: 1.05rem; }
    .dl-section-count { display: none; }
    .dl-item          { padding: 0.75rem 0.85rem; gap: 0.75rem; }
    .dl-item-name     { font-size: 0.82rem; }
    .dl-item-icon     { width: 34px; height: 34px; font-size: 0.8rem; }
}
