/**
 * ============================================
 * FILE: events.css
 * FUNGSI: Styling halaman events & tournaments
 * Menggunakan var() dari index.css — selaras
 * dengan food_menu.css dan games.css
 * ============================================
 */

 @import url('index.css');

 /* ============================================
    BASE
    ============================================ */
 body {
     background: var(--bg-dark);
     color: var(--text-primary);
     overflow-x: hidden;
 }
 
 /* ============================================
    HERO SECTION — tidak berubah dari versi asal
    ============================================ */
 .events-hero {
     background: var(--gradient-dark);
     border-bottom: 3px solid var(--primary-color);
     padding: 3rem 0;
     position: relative;
     overflow: hidden;
     min-height: 420px;
     display: flex;
     align-items: center;
 }
 
 .hero-background {
     position: absolute;
     inset: 0;
     z-index: 0;
 }
 
 /* Grid animasi background hero */
 .hero-grid {
     position: absolute;
     inset: 0;
     background-image:
         linear-gradient(rgba(255,0,255,.04) 1px, transparent 1px),
         linear-gradient(90deg, rgba(0,255,255,.04) 1px, transparent 1px);
     background-size: 30px 30px;
     will-change: transform;
     animation: gridMove 20s linear infinite;
 }
 
 @keyframes gridMove {
     0%   { transform: translateY(0); }
     100% { transform: translateY(30px); }
 }
 
 .hero-particles { position: absolute; inset: 0; }
 
 .hero-content-events {
     position: relative;
     z-index: 1;
 }
 
 /* Back Button */
 .btn-back-gaming {
     display: inline-flex;
     align-items: center;
     gap: .75rem;
     background: var(--bg-card);
     border: 2px solid var(--primary-color);
     border-radius: var(--radius-sm);
     padding: .75rem 1.5rem;
     color: var(--text-primary);
     font-family: var(--font-game);
     font-size: .9rem;
     text-decoration: none;
     text-transform: uppercase;
     transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
     margin-bottom: 2rem;
 }
 
 .btn-back-gaming:hover {
     background: var(--gradient-neon);
     color: var(--bg-dark);
     border-color: transparent;
     transform: translateX(-5px);
 }
 
 /* Title Section */
 .hero-title-section {
     text-align: center;
     margin-bottom: 2.5rem;
 }
 
 .title-decoration {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 1rem;
     color: var(--primary-color);
     font-size: 1.2rem;
     margin: .75rem 0;
 }
 
 .deco-line {
     width: 60px;
     height: 2px;
     background: var(--gradient-neon);
 }
 
 .hero-title-main {
     font-family: var(--font-game);
     font-size: clamp(2.5rem, 8vw, 5rem);
     line-height: 1;
     margin: 0;
 }
 
 .title-word {
     display: block;
     color: var(--text-glow);
     text-shadow: 0 0 30px rgba(0,255,255,.5);
     animation: titleGlow 2s ease-in-out infinite;
 }
 
 .title-word:last-child {
     background: var(--gradient-neon);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     animation: none;
 }
 
 @keyframes titleGlow {
     0%, 100% { text-shadow: 0 0 20px rgba(0,255,255,.5); }
     50%       { text-shadow: 0 0 40px rgba(0,255,255,.9), 0 0 70px rgba(255,0,255,.3); }
 }
 
 .hero-subtitle-main {
     font-size: 1.1rem;
     color: var(--text-secondary);
     margin: 1rem 0 0;
 }
 
 /* Stats Banner */
 .hero-stats-banner {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
     gap: 1.5rem;
 }
 
 .stat-box-hero {
     background: var(--bg-card);
     border: 2px solid var(--primary-color);
     border-radius: var(--radius-md);
     padding: 1.5rem;
     display: flex;
     align-items: center;
     gap: 1rem;
     transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
 }
 
 .stat-box-hero:hover {
     transform: translateY(-3px);
     box-shadow: 0 10px 30px rgba(0,255,255,.25);
     border-color: var(--secondary-color);
 }
 
 .stat-icon-hero {
     width: 56px;
     height: 56px;
     background: var(--gradient-neon);
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1.6rem;
     color: var(--bg-dark);
     flex-shrink: 0;
 }
 
 .stat-icon-hero.pulse {
     will-change: transform, box-shadow;
     animation: pulse 2s ease-in-out infinite;
 }
 
 .stat-number-hero {
     font-family: var(--font-game);
     font-size: 1.8rem;
     color: var(--text-glow);
     line-height: 1;
     margin-bottom: .4rem;
 }
 
 .stat-label-hero {
     font-size: .82rem;
     color: var(--text-secondary);
     text-transform: uppercase;
 }
 
 /* ============================================
    MAIN CONTAINER
    ============================================ */
 .events-container {
     padding: 2.5rem 1rem 4rem;
     max-width: 1000px;
 }
 
 /* ============================================
    SECTION HEADER
    ============================================ */
 .section-header-events {
     text-align: center;
     margin-bottom: 2.5rem;
 }
 
 .section-title-events {
     font-family: var(--font-game);
     font-size: clamp(1.4rem, 3vw, 2rem);
     color: var(--text-glow);
     margin: 0 0 .5rem;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: .75rem;
     text-shadow: 0 0 20px rgba(0,255,255,.35);
 }
 
 .section-title-events i { color: var(--primary-color); }
 
 .section-subtitle-events {
     font-size: .88rem;
     color: var(--text-secondary);
     margin: 0;
 }
 
 /* ============================================
    NO EVENTS — tidak berubah
    ============================================ */
 .no-events {
     text-align: center;
     padding: 5rem 2rem;
     color: var(--text-secondary);
 }
 
 .no-events-icon {
     font-size: 4rem;
     color: var(--primary-color);
     opacity: .4;
     margin-bottom: 1.5rem;
 }
 
 .no-events h3 {
     font-family: var(--font-game);
     font-size: 1.5rem;
     color: var(--text-primary);
     margin-bottom: .75rem;
 }
 
 .btn-no-events {
     display: inline-flex;
     align-items: center;
     gap: .75rem;
     margin-top: 1.5rem;
     padding: .9rem 2rem;
     background: var(--gradient-neon);
     border-radius: var(--radius-md);
     color: var(--bg-dark);
     font-family: var(--font-game);
     font-size: .9rem;
     text-decoration: none;
     text-transform: uppercase;
     transition: transform .2s, box-shadow .2s;
 }
 
 .btn-no-events:hover {
     transform: translateY(-2px);
     box-shadow: 0 8px 24px rgba(255,0,255,.4);
     color: var(--bg-dark);
 }
 
 /* ============================================
    ROW BLOCK — wrapper tiap baris grid
    ============================================ */
 .events-row-block {
     margin-bottom: 2.5rem;
 }
 
 /* Label baris */
 .row-label {
     display: flex;
     align-items: center;
     gap: 12px;
     margin-bottom: 1.25rem;
 }
 
 .row-label-text {
     font-family: var(--font-game);
     font-size: .75rem;
     letter-spacing: 3px;
     text-transform: uppercase;
     white-space: nowrap;
 }
 
 .row-label-text.past     { color: var(--text-secondary); }
 .row-label-text.upcoming { color: var(--secondary-color); }
 
 .row-label-line {
     flex: 1;
     height: 1px;
     background: rgba(255,255,255,.08);
 }
 
 /* ============================================
    NOW DIVIDER
    ============================================ */
 .now-divider {
     display: flex;
     align-items: center;
     gap: 14px;
     margin: 0 0 2.5rem;
 }
 
 .now-divider-line {
     flex: 1;
     height: 1px;
     background: linear-gradient(
         to right,
         rgba(255,255,255,.06),
         rgba(0,212,255,.45),
         rgba(255,255,255,.06)
     );
 }
 
 .now-badge {
     display: inline-flex;
     align-items: center;
     gap: 6px;
     padding: 5px 16px;
     border-radius: 20px;
     background: rgba(0,255,255,.07);
     border: 1px solid rgba(0,255,255,.3);
     font-family: var(--font-game);
     font-size: .72rem;
     letter-spacing: 3px;
     color: var(--secondary-color);
     white-space: nowrap;
     box-shadow: 0 0 16px rgba(0,255,255,.1);
 }
 
 .now-badge i {
     font-size: .6rem;
     animation: blink 1.5s ease-in-out infinite;
 }
 
 @keyframes blink {
     0%, 100% { opacity: 1; }
     50%       { opacity: .25; }
 }
 
 /* ============================================
    EVENTS GRID — 3 kolom, wrap ke bawah
    ============================================ */
 .events-grid {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 16px;
 }
 
 /* ============================================
    EVENT CARD — poster 2:3, clean
    ============================================ */
 .event-card {
     background: var(--bg-card);
     border: 1.5px solid rgba(255,255,255,.07);
     border-radius: 14px;
     overflow: hidden;
     cursor: pointer;
     transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
     position: relative;
     display: flex;
     flex-direction: column;
 }
 
 .event-card:hover {
     transform: translateY(-4px);
     border-color: rgba(255,0,255,.35);
     box-shadow: 0 14px 40px rgba(255,0,255,.12);
 }
 
 /* Past — non-interactive */
 .event-card.past {
     opacity: .42;
     filter: saturate(.25);
     cursor: default;
     pointer-events: none;
 }
 
 /* ── Poster — 4:5, lebih compact dari sebelumnya ── */
 .poster-wrap {
     position: relative;
     width: 100%;
     aspect-ratio: 4 / 5;
     overflow: hidden;
     background: var(--bg-dark);
     flex-shrink: 0;
 }
 
 .poster-wrap img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     object-position: center top;
     display: block;
     transition: transform .35s ease;
 }
 
 .event-card:hover .poster-wrap img { transform: scale(1.03); }
 
 /* ── Status chip — pojok kiri atas ── */
 .status-chip {
     position: absolute;
     top: 9px;
     left: 9px;
     z-index: 2;
     display: inline-flex;
     align-items: center;
     gap: 4px;
     padding: 3px 9px;
     border-radius: 20px;
     font-family: var(--font-game);
     font-size: .56rem;
     letter-spacing: .5px;
     text-transform: uppercase;
     backdrop-filter: blur(6px);
 }
 
 .chip-past {
     background: rgba(0,0,0,.55);
     border: 1px solid rgba(255,255,255,.12);
     color: var(--text-secondary);
 }
 
 .chip-hot {
     background: rgba(245,166,35,.16);
     border: 1px solid rgba(245,166,35,.4);
     color: #f5a623;
 }
 
 .chip-upcoming {
     background: rgba(0,255,255,.1);
     border: 1px solid rgba(0,255,255,.32);
     color: var(--secondary-color);
 }
 
 /* ── Card footer — judul + tanggal ── */
 .card-footer-event {
     padding: 12px 13px 4px;
     flex: 1;
     display: flex;
     flex-direction: column;
     gap: 6px;
     justify-content: space-between;
 }
 
 .card-title-event {
     font-family: var(--font-game);
     font-size: .95rem;
     color: var(--text-primary);
     line-height: 1.4;
     display: -webkit-box;
     -webkit-line-clamp: 2;
     -webkit-box-orient: vertical;
     overflow: hidden;
 }
 
 .card-date-event {
     display: flex;
     align-items: center;
     gap: 5px;
     font-size: .78rem;
     color: var(--text-secondary);
 }
 
 .card-date-event i {
     font-size: .7rem;
     color: var(--secondary-color);
 }
 
 /* ── Link Instagram — langsung di card footer ── */
 .card-ig-link {
     display: inline-flex;
     align-items: center;
     gap: 5px;
     margin-top: 4px;
     padding: 5px 11px;
     border-radius: 20px;
     background: linear-gradient(135deg, rgba(225,48,108,.12), rgba(193,53,132,.08));
     border: 1px solid rgba(225,48,108,.28);
     color: #e1306c;
     font-family: var(--font-game);
     font-size: .68rem;
     letter-spacing: .3px;
     text-decoration: none;
     text-transform: uppercase;
     transition: background .18s, border-color .18s, transform .18s;
     align-self: flex-start;
     margin-bottom: 10px;
 }
 
 .card-ig-link i { font-size: .8rem; }
 
 .card-ig-link:hover {
     background: linear-gradient(135deg, rgba(225,48,108,.22), rgba(193,53,132,.15));
     border-color: rgba(225,48,108,.55);
     color: #e1306c;
     transform: translateY(-1px);
 }
 
 /* ============================================
    INFO SECTION — cara join tournament
    ============================================ */
 .info-section {
     background: var(--gradient-dark);
     border-top: 3px solid var(--primary-color);
     padding: 4rem 0;
 }
 
 .info-content { text-align: center; }
 
 .info-title {
     font-family: var(--font-game);
     font-size: 1.5rem;
     color: var(--text-glow);
     margin-bottom: 2.5rem;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: .75rem;
 }
 
 .info-title i { color: var(--primary-color); }
 
 .steps-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
     gap: 1.5rem;
     margin-bottom: 2.5rem;
 }
 
 .step-card {
     background: var(--bg-card);
     border: 2px solid var(--primary-color);
     border-radius: var(--radius-md);
     padding: 2rem 1.5rem;
     position: relative;
     transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
 }
 
 .step-card:hover {
     transform: translateY(-5px);
     border-color: var(--secondary-color);
     box-shadow: 0 10px 30px rgba(0,255,255,.2);
 }
 
 .step-number {
     position: absolute;
     top: -16px;
     left: 50%;
     transform: translateX(-50%);
     width: 32px;
     height: 32px;
     background: var(--gradient-neon);
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     font-family: var(--font-game);
     font-size: .75rem;
     color: var(--bg-dark);
     font-weight: 700;
 }
 
 .step-icon {
     font-size: 2rem;
     color: var(--primary-color);
     margin-bottom: 1rem;
 }
 
 .step-card h4 {
     font-family: var(--font-game);
     font-size: .85rem;
     color: var(--text-primary);
     margin-bottom: .5rem;
 }
 
 .step-card p {
     font-size: .8rem;
     color: var(--text-secondary);
     line-height: 1.6;
 }
 
 .info-cta { margin-top: 2rem; }
 
 .btn-info-cta {
     display: inline-flex;
     align-items: center;
     gap: .75rem;
     padding: 1rem 2.5rem;
     background: var(--gradient-neon);
     border-radius: var(--radius-md);
     color: var(--bg-dark);
     font-family: var(--font-game);
     font-size: .95rem;
     text-decoration: none;
     text-transform: uppercase;
     transition: transform .2s, box-shadow .2s;
     box-shadow: 0 4px 0 var(--primary-color);
 }
 
 .btn-info-cta:hover {
     color: var(--bg-dark);
     transform: translateY(-2px);
     box-shadow: 0 6px 0 var(--primary-color), 0 10px 20px rgba(255,0,255,.4);
 }
 
 /* ============================================
    FOOTER CTA
    ============================================ */
 .footer-cta {
     background: var(--bg-dark);
     border-top: 1px solid rgba(255,255,255,.06);
     padding: 4rem 0;
 }
 
 .cta-content { text-align: center; }
 
 .cta-content h3 {
     font-family: var(--font-game);
     font-size: 1.5rem;
     color: var(--text-glow);
     margin-bottom: 1rem;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: .75rem;
 }
 
 .cta-content h3 i { color: #f5a623; }
 
 .cta-content p {
     color: var(--text-secondary);
     margin-bottom: 2rem;
     font-size: 1rem;
 }
 
 .cta-buttons {
     display: flex;
     justify-content: center;
     gap: 1rem;
     flex-wrap: wrap;
 }
 
 .btn-cta {
     display: inline-flex;
     align-items: center;
     gap: .75rem;
     padding: 1rem 2rem;
     background: var(--gradient-neon);
     border-radius: var(--radius-md);
     color: var(--bg-dark);
     font-family: var(--font-game);
     font-size: .9rem;
     text-decoration: none;
     text-transform: uppercase;
     transition: transform .2s, box-shadow .2s;
     box-shadow: 0 4px 0 var(--primary-color);
 }
 
 .btn-cta:hover {
     color: var(--bg-dark);
     transform: translateY(-2px);
     box-shadow: 0 6px 0 var(--primary-color), 0 10px 20px rgba(255,0,255,.4);
 }
 
 .btn-cta.secondary {
     background: var(--bg-card);
     color: var(--text-primary);
     border: 2px solid var(--primary-color);
     box-shadow: none;
 }
 
 .btn-cta.secondary:hover {
     background: var(--primary-color);
     color: var(--bg-dark);
 }
 
 /* ============================================
    RESPONSIVE
    ============================================ */
 
 /* Tablet */
 @media (max-width: 991px) {
     .hero-stats-banner { grid-template-columns: repeat(3, 1fr); }
     .events-container  { padding: 2rem .75rem 3rem; }
 }
 
 /* Mobile — max 767px */
 @media (max-width: 767px) {
 
     /* Hero */
     .events-hero { padding: 1.5rem 0; min-height: auto; }
     .hero-grid   { animation: none; }
 
     .btn-back-gaming {
         font-size: .75rem;
         padding: .55rem 1rem;
         margin-bottom: 1.25rem;
     }
 
     .hero-title-main  { font-size: clamp(1.8rem, 10vw, 2.8rem); }
     .hero-subtitle-main { font-size: .85rem; }
 
     /* Stats */
     .hero-stats-banner { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
 
     .stat-box-hero {
         flex-direction: column;
         align-items: center;
         text-align: center;
         padding: .7rem .4rem;
         gap: .35rem;
     }
 
     .stat-box-hero:hover { transform: none; }
     .stat-icon-hero       { width: 36px; height: 36px; font-size: 1rem; }
     .stat-number-hero     { font-size: 1.1rem; }
     .stat-label-hero      { font-size: .58rem; }
 
     /* Section header */
     .section-title-events { font-size: 1.1rem; }
 
     /* Events container */
     .events-container { padding: 1.25rem .75rem 2.5rem; }
 
     /* Grid — tetap 3 kolom di HP */
     .events-grid {
         grid-template-columns: repeat(3, 1fr);
         gap: 9px;
     }
 
     /* Row label */
     .row-label-text { font-size: .6rem; letter-spacing: 2px; }
 
     /* Now divider */
     .now-badge { font-size: .6rem; padding: 4px 10px; }
 
     /* Card compact */
     .event-card { border-radius: 10px; }
     .event-card:hover { transform: none; box-shadow: none; }
     .event-card:hover .poster-wrap img { transform: none; }
 
     .status-chip { font-size: .48rem; padding: 2px 6px; gap: 3px; }
 
     .card-footer-event { padding: 8px 10px 4px; gap: 5px; }
     .card-title-event  { font-size: .82rem; }
     .card-date-event   { font-size: .72rem; }
     .card-ig-link      { font-size: .62rem; }
 
     /* Popup */
     .popup-box          { border-radius: 16px; }
     .popup-content-area { padding: 14px 16px 18px; }
     .popup-event-title  { font-size: .9rem; }
     .popup-event-desc   { font-size: .78rem; }
 
     /* Info section */
     .info-section { padding: 2.5rem 0; }
     .info-title   { font-size: 1.1rem; }
     .steps-grid   { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
 
     /* Footer CTA */
     .footer-cta { padding: 2.5rem 0; }
     .cta-content h3 { font-size: 1.1rem; }
     .cta-buttons { flex-direction: column; padding: 0 1rem; gap: .65rem; }
     .btn-cta     { width: 100%; justify-content: center; font-size: .85rem; }
 }
 
 /* Mobile kecil — max 480px */
 @media (max-width: 480px) {
     /* Grid tetap 3 kolom, lebih compact */
     .events-grid { gap: 7px; }
 
     .status-chip       { display: none; }
     .card-footer-event { padding: 6px 8px 4px; }
     .card-title-event  { font-size: .76rem; }
     .card-date-event   { font-size: .66rem; }
     .card-ig-link      { font-size: .58rem; }
 
     .steps-grid { grid-template-columns: 1fr; gap: 1.25rem; }
 
     .hero-title-main { font-size: clamp(1.5rem, 9vw, 2.2rem); }
 }
 
 /* ============================================
    ACCESSIBILITY
    ============================================ */
 @media (prefers-reduced-motion: reduce) {
     *, *::before, *::after {
         animation-duration: .01ms !important;
         animation-iteration-count: 1 !important;
         transition-duration: .01ms !important;
     }
 }
 
 /* ============================================
    PRINT
    ============================================ */
 @media print {
     .events-hero,
     .info-section,
     .footer-cta,
     .popup-overlay { display: none; }
 
     .events-grid { grid-template-columns: repeat(3, 1fr); }
 }