/* ============================================
   O.E.C - ONION E-Sports Championship Styles
   ============================================ */

/* ---- Hero Section ---- */
.oec-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 13, 46, 0.4) 0%,
        rgba(26, 13, 46, 0.7) 40%,
        rgba(26, 13, 46, 0.95) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 140px 24px 100px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(199, 90, 246, 0.15);
    border: 1px solid rgba(199, 90, 246, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 32px;
    animation: fadeInDown 0.8s ease-out;
}

.badge-icon {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.hero-logo-wrapper {
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-oec-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 20px;
    filter: drop-shadow(0 0 40px rgba(199, 90, 246, 0.4));
}

.hero-title {
    font-family: var(--font-heading);
    margin: 0 0 20px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.title-main {
    display: block;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.05em;
}

.title-accent {
    display: block;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.08em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-subtitle strong {
    color: var(--accent);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-stat .stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat .stat-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.btn-oec {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.02em;
}

.btn-oec.primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 24px rgba(199, 90, 246, 0.3);
}

.btn-oec.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(199, 90, 246, 0.5);
}

.btn-oec.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-oec.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2px;
    height: 24px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    border-radius: 2px;
}

/* ---- Generic Section ---- */
.oec-section {
    padding: 100px 40px;
    background: var(--bg);
    position: relative;
}

.oec-section-alt {
    background: linear-gradient(135deg, #0f0720 0%, #1a0d2e 50%, #150a28 100%);
}

.oec-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.eyebrow-oec {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
    font-size: 0.8rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.section-header-oec h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 16px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
}

.accent-line {
    width: 60px;
    height: 3px;
    background: var(--gradient);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---- About Grid ---- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.about-card:hover {
    border-color: rgba(199, 90, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(199, 90, 246, 0.1);
}

.about-card:hover::before {
    opacity: 1;
}

.about-card.about-main {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(199, 90, 246, 0.08), rgba(122, 80, 154, 0.05));
    border-color: rgba(199, 90, 246, 0.15);
    text-align: center;
    padding: 48px;
}

.about-card.about-main::before {
    opacity: 1;
}

.about-icon {
    margin-bottom: 16px;
}

.about-icon svg {
    width: 40px;
    height: 40px;
    color: var(--accent);
    stroke-width: 1.5;
}

.about-card h3 {
    font-size: 1.25rem;
    color: #fff;
    margin: 0 0 12px;
    font-weight: 700;
}

.about-card.about-main h3 {
    font-size: 1.75rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.about-card.about-main p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.about-card-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    justify-content: center;
}

.card-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: #fff;
}

/* ---- Schedule Section ---- */
.season-selector {
    margin-bottom: 40px;
    text-align: center;
}

.season-tabs {
    display: inline-flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px;
    border-radius: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.season-tab {
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.season-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.season-tab.active {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 16px rgba(199, 90, 246, 0.3);
}

/* Schedule Grid */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* Schedule Race Card */
.schedule-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.schedule-card:hover {
    border-color: rgba(199, 90, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(199, 90, 246, 0.1);
}

.schedule-card-img {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.schedule-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.schedule-card:hover .schedule-card-img img {
    transform: scale(1.05);
}

.schedule-card-img .card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-badge.upcoming {
    background: rgba(199, 90, 246, 0.9);
    color: #fff;
}

.card-badge.completed {
    background: rgba(34, 197, 94, 0.9);
    color: #000;
}

.card-badge.live {
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    animation: pulse 1.5s infinite;
}

.schedule-card-body {
    padding: 24px;
}

.schedule-round {
    display: inline-block;
    background: rgba(199, 90, 246, 0.12);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.schedule-track-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.schedule-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.schedule-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 5px 10px;
    border-radius: 6px;
}

.schedule-meta-item .meta-icon {
    width: 14px;
    height: 14px;
    color: var(--accent);
    flex-shrink: 0;
}

.schedule-card-footer {
    padding: 0 24px 24px;
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.schedule-card-footer .btn-sm {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-sm.btn-primary {
    background: var(--gradient);
    color: #fff;
}

.btn-sm.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(199, 90, 246, 0.3);
}

.btn-sm.btn-outline {
    background: transparent;
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-sm.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Loading State */
.loading-state-oec {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

.spinner-oec {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

/* Empty State */
.empty-state-oec {
    text-align: center;
    padding: 80px 20px;
}

.empty-state-oec .empty-icon svg {
    width: 64px;
    height: 64px;
    color: var(--accent);
    stroke-width: 1.5;
    margin-bottom: 16px;
}

.empty-state-oec h3 {
    font-size: 1.5rem;
    color: #fff;
    margin: 0 0 12px;
}

.empty-state-oec p {
    color: var(--muted);
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* ---- Regulations Section ---- */
.regulations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.reg-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.reg-card:hover {
    border-color: rgba(199, 90, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(199, 90, 246, 0.1);
}

.reg-card-featured {
    border-color: rgba(199, 90, 246, 0.2);
    background: linear-gradient(135deg, rgba(199, 90, 246, 0.06), rgba(122, 80, 154, 0.03));
}

.reg-card-wide {
    grid-column: 1 / -1;
}

.reg-card-header {
    padding: 28px 28px 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.reg-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(199, 90, 246, 0.1);
    border-radius: 14px;
    flex-shrink: 0;
}

.reg-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent);
    stroke-width: 1.5;
}

.reg-card-header h3 {
    font-size: 1.2rem;
    color: #fff;
    margin: 0;
    font-weight: 700;
}

.reg-card-body {
    padding: 20px 28px 28px;
}

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

.reg-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.reg-list li:last-child {
    border-bottom: none;
}

.reg-bullet {
    color: var(--accent);
    font-size: 0.6rem;
    margin-top: 6px;
    flex-shrink: 0;
}

/* Points Table */
.points-table-wrapper {
    overflow-x: auto;
}

.points-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.points-table th,
.points-table td {
    padding: 14px 16px;
    text-align: center;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.points-table th {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(199, 90, 246, 0.05);
}

.points-table td {
    color: #fff;
    font-weight: 600;
}

.points-table td:first-child {
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.points-gold {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
}

.points-silver {
    color: #c0c0c0 !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

.points-bronze {
    color: #cd7f32 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}

.points-note {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 12px;
    font-style: italic;
}

/* ---- Quick Links ---- */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.quick-link-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 36px;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.quick-link-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.quick-link-card:hover {
    border-color: rgba(199, 90, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(199, 90, 246, 0.1);
}

.quick-link-card:hover::after {
    transform: scaleX(1);
}

.ql-icon {
    margin-bottom: 16px;
}

.ql-icon svg {
    width: 40px;
    height: 40px;
    color: var(--accent);
    stroke-width: 1.5;
}

.quick-link-card h3 {
    font-size: 1.2rem;
    color: #fff;
    margin: 0 0 8px;
    font-weight: 700;
}

.quick-link-card p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0 0 16px;
    line-height: 1.6;
}

.ql-arrow {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s ease;
    display: inline-block;
}

.quick-link-card:hover .ql-arrow {
    transform: translateX(8px);
}

/* ---- Animations ---- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-8px);
    }
    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .regulations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .oec-section {
        padding: 80px 20px;
    }

    .hero-content {
        padding: 120px 20px 80px;
    }

    .hero-oec-logo {
        width: 140px;
        height: 140px;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stat .stat-number {
        font-size: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-card.about-main {
        padding: 32px 24px;
    }

    .regulations-grid {
        grid-template-columns: 1fr;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .season-tabs {
        flex-wrap: wrap;
    }

    .points-table {
        min-width: 500px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 100px 16px 60px;
    }

    .hero-oec-logo {
        width: 120px;
        height: 120px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-oec {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }

    .section-header-oec h2 {
        font-size: 1.75rem;
    }

    .reg-card-header {
        padding: 20px 20px 0;
        flex-direction: column;
        text-align: center;
    }

    .reg-card-body {
        padding: 16px 20px 20px;
    }

    .about-card {
        padding: 24px;
    }

    .quick-link-card {
        padding: 24px;
    }
}
