/* ==========================================================
   OMONOIA Ticket Monitor
   Final Dashboard
========================================================== */

:root{

    --bg:#091114;
    --bg2:#111b20;

    --panel:#18242b;
    --panel2:#1d2b33;

    --green:#00d25b;
    --yellow:#ffd54a;
    --orange:#ff9800;
    --red:#ef5350;
    --blue:#42a5f5;

    --text:#ffffff;
    --muted:#96a7af;

    --radius:22px;

    --shadow:
        0 15px 40px rgba(0,0,0,.35);

}

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:
        "Inter",
        Arial,
        Helvetica,
        sans-serif;

    background:

        radial-gradient(circle at top,
            rgba(0,210,91,.10),
            transparent 35%),

        linear-gradient(
            180deg,
            var(--bg),
            var(--bg2)
        );

    color:var(--text);

    min-height:100vh;

}

.background{

    position:fixed;

    inset:0;

    pointer-events:none;

    background:

        radial-gradient(circle at 80% 20%,
            rgba(0,210,91,.06),
            transparent 30%),

        radial-gradient(circle at 20% 80%,
            rgba(66,165,245,.05),
            transparent 35%);

}

.container{

    width:min(1450px,95%);

    margin:auto;

    padding:35px 0 60px;

    position:relative;

    z-index:5;

}

/* ==========================================================
   HEADER
========================================================== */

.header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:30px;

    margin-bottom:30px;

    padding:30px;

    background:rgba(24,36,43,.82);

    backdrop-filter:blur(20px);

    border-radius:var(--radius);

    border:1px solid rgba(255,255,255,.05);

    box-shadow:var(--shadow);

}

.header-left{

    display:flex;

    align-items:center;

    gap:25px;

}

.logo{

    width:90px;

    height:90px;

    object-fit:contain;

    filter:drop-shadow(
        0 0 18px rgba(0,210,91,.25)
    );

}

.header h1{

    font-size:38px;

    font-weight:800;

}

.subtitle{

    margin-top:8px;

    color:var(--muted);

    font-size:15px;

}

.header-right{

    display:flex;

    gap:18px;

}

.clock-box,
.update-box{

    background:rgba(255,255,255,.04);

    border-radius:18px;

    padding:18px 24px;

    min-width:210px;

    text-align:center;

}

#clockTime{

    font-size:34px;

    font-weight:800;

    letter-spacing:2px;

}

#clockDate{

    margin-top:8px;

    color:var(--muted);

    font-size:14px;

}

.update-box span{

    display:block;

    color:var(--muted);

    font-size:13px;

    margin-bottom:10px;

    text-transform:uppercase;

    letter-spacing:1px;

}

#lastUpdate{

    font-size:22px;

}

/* ==========================================================
   ERROR BANNER
========================================================== */

.error-banner{

    background:rgba(239,83,80,.12);

    border:1px solid rgba(239,83,80,.35);

    color:var(--red);

    padding:16px 22px;

    border-radius:16px;

    margin-bottom:22px;

    font-size:14px;

    font-weight:600;

    text-align:center;

}

.error-banner.hidden{

    display:none;

}

/* ==========================================================
   VERTEXPC AD
========================================================== */

.vertexpc-rail{

    display:none;

    position:fixed;

    top:40px;

    width:200px;

    flex-direction:column;

    align-items:center;

    gap:16px;

    background:linear-gradient(180deg,#0F1E30,#0B1526);

    border:1px solid rgba(8,145,178,.35);

    border-radius:24px;

    padding:36px 22px;

    text-decoration:none;

    box-shadow:0 15px 40px rgba(0,0,0,.35);

    transition:transform .25s ease, box-shadow .25s ease;

    z-index:20;

}

.vertexpc-rail .vertexpc-logo svg{

    width:64px;

    height:64px;

}

.vertexpc-rail .vertexpc-name{

    font-size:24px;

}

.vertexpc-rail .vertexpc-tagline{

    font-size:16px;

    line-height:1.5;

}

.vertexpc-rail .vertexpc-features{

    display:flex;

}

.vertexpc-rail .vertexpc-cta{

    margin-top:8px;

    font-size:15px;

    padding:12px 22px;

}

.vertexpc-rail:hover{

    transform:scale(1.03);

    box-shadow:0 0 25px rgba(8,145,178,.35);

}

.vertexpc-rail-left{

    left:20px;

}

.vertexpc-rail-right{

    right:20px;

}

.vertexpc-logo svg{

    width:44px;

    height:44px;

}

.vertexpc-name{

    color:#ffffff;

    font-weight:800;

    font-size:18px;

    letter-spacing:.5px;

}

.vertexpc-tagline{

    color:#8fb4c4;

    font-size:13px;

    text-align:center;

    line-height:1.4;

}

.vertexpc-features{

    display:none;

    list-style:none;

    margin:0;

    padding:0;

    flex-direction:column;

    gap:10px;

    width:100%;

}

.vertexpc-features li{

    color:#c9d8de;

    font-size:13px;

    padding-left:22px;

    position:relative;

}

.vertexpc-features li::before{

    content:"✓";

    position:absolute;

    left:0;

    color:#06B6D4;

    font-weight:800;

}

.vertexpc-cta{

    margin-top:4px;

    background:linear-gradient(135deg,#0891B2,#06B6D4);

    color:#ffffff;

    font-size:13px;

    font-weight:700;

    padding:8px 16px;

    border-radius:999px;

    white-space:nowrap;

}

@media (min-width:1920px){

    :root{

        --vx-rail-width:clamp(290px, 15vw, 380px);

    }

    .container{

        width:min(1700px, calc(100vw - (var(--vx-rail-width) * 2) - 80px));

    }

    .vertexpc-rail{

        width:var(--vx-rail-width);

        gap:22px;

        padding:48px 30px;

        border-radius:28px;

    }

    .vertexpc-rail-left{

        left:20px;

    }

    .vertexpc-rail-right{

        right:20px;

    }

    .vertexpc-rail .vertexpc-logo svg{

        width:88px;

        height:88px;

    }

    .vertexpc-rail .vertexpc-name{

        font-size:30px;

    }

    .vertexpc-rail .vertexpc-tagline{

        font-size:18px;

    }

    .vertexpc-rail .vertexpc-features li{

        font-size:16px;

        padding-left:26px;

    }

    .vertexpc-rail .vertexpc-cta{

        font-size:17px;

        padding:14px 26px;

    }

}

.vertexpc-banner{

    display:flex;

    align-items:center;

    gap:16px;

    background:linear-gradient(90deg,#0F1E30,#0B1526);

    border:1px solid rgba(8,145,178,.35);

    border-radius:18px;

    padding:16px 20px;

    margin-bottom:22px;

    text-decoration:none;

    transition:transform .25s ease;

}

.vertexpc-banner:hover{

    transform:translateY(-2px);

}

.vertexpc-banner .vertexpc-logo svg{

    width:38px;

    height:38px;

    flex-shrink:0;

}

.vertexpc-banner-text{

    flex:1;

    min-width:0;

}

.vertexpc-banner .vertexpc-name{

    font-size:15px;

}

.vertexpc-banner .vertexpc-tagline{

    text-align:left;

    font-size:12.5px;

}

.vertexpc-banner .vertexpc-cta{

    flex-shrink:0;

}

@media (min-width:1920px){

    .vertexpc-rail{

        display:flex;

    }

    .vertexpc-banner{

        display:none;

    }

}

@media (max-width:480px){

    .vertexpc-banner .vertexpc-tagline{

        display:none;

    }

}

/* ==========================================================
   SUMMARY
========================================================== */

.summary-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:22px;

    margin-bottom:30px;

}

.summary-card{

    background:rgba(24,36,43,.82);

    border-radius:20px;

    padding:25px;

    border:1px solid rgba(255,255,255,.05);

    box-shadow:var(--shadow);

    position:relative;

    overflow:hidden;

    transition:.25s;

}

.summary-card:hover{

    transform:translateY(-6px);

}

.summary-card::before{

    content:"";

    position:absolute;

    left:0;

    top:0;

    width:5px;

    height:100%;

}

.available::before{

    background:var(--green);

}

.sold::before{

    background:var(--red);

}

.capacity::before{

    background:var(--blue);

}

.occupancy::before{

    background:var(--yellow);

}

.summary-card span{

    color:var(--muted);

    display:block;

    margin-bottom:14px;

    font-size:13px;

    text-transform:uppercase;

    letter-spacing:1px;

}

.summary-card h2{

    font-size:42px;

    font-weight:800;

}

/* ==========================================================
   MATCH
========================================================== */

.match-card{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:25px;

    background:rgba(24,36,43,.82);

    border-radius:22px;

    padding:28px;

    margin-bottom:35px;

    border:1px solid rgba(255,255,255,.05);

    box-shadow:var(--shadow);

}

.match-label{

    display:inline-block;

    background:rgba(0,210,91,.15);

    color:var(--green);

    padding:8px 16px;

    border-radius:999px;

    font-size:13px;

    font-weight:700;

    margin-bottom:18px;

}

.match-left h2{

    font-size:34px;

    margin-bottom:8px;

}

.match-left p{

    color:var(--muted);

}

.venue-title{

    color:var(--muted);

    margin-bottom:10px;

    text-transform:uppercase;

    font-size:13px;

}

#venueName{

    font-size:24px;

    font-weight:700;

}
/* ==========================================================
   STADIUM PANEL
========================================================== */

.stadium-panel{

    background:rgba(24,36,43,.82);

    border-radius:22px;

    padding:30px;

    margin-bottom:35px;

    border:1px solid rgba(255,255,255,.05);

    box-shadow:var(--shadow);

}

.panel-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

    margin-bottom:30px;

}

.panel-header h2{

    font-size:30px;

    margin-bottom:6px;

}

.panel-header p{

    color:var(--muted);

}

/* ==========================================================
   STADIUM
========================================================== */

.stadium{

    display:flex;

    flex-direction:column;

    align-items:center;

    gap:26px;

}

.stadium-middle{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:28px;

    width:100%;

}

/* ==========================================================
   STANDS
========================================================== */

.stadium-stand{

    background:rgba(255,255,255,.03);

    border:2px solid rgba(255,255,255,.06);

    border-radius:22px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    gap:12px;

    cursor:pointer;

    transition:all .25s ease;

    user-select:none;

    box-shadow:

        inset 0 0 0 rgba(255,255,255,0),

        0 10px 25px rgba(0,0,0,.20);

}

.stadium-stand:hover{

    transform:translateY(-5px) scale(1.02);

}

.stadium-stand.active{

    border-color:var(--green);

    box-shadow:

        0 0 25px rgba(0,210,91,.35);

}

.north,
.south{

    width:520px;

    height:110px;

}

.west,
.east{

    width:170px;

    height:260px;

}

.stand-title{

    font-size:15px;

    font-weight:700;

    letter-spacing:2px;

    color:var(--muted);

}

.stand-number{

    font-size:42px;

    font-weight:800;

}

/* ==========================================================
   STAND COLOURS
========================================================== */

.stadium-stand.green{

    border-color:rgba(0,210,91,.45);

}

.stadium-stand.yellow{

    border-color:rgba(255,213,74,.45);

}

.stadium-stand.orange{

    border-color:rgba(255,152,0,.45);

}

.stadium-stand.red{

    border-color:rgba(239,83,80,.45);

}

/* ==========================================================
   PITCH
========================================================== */

.pitch{

    width:430px;

    aspect-ratio:430/260;

    border-radius:22px;

    position:relative;

    overflow:hidden;

    background:

        linear-gradient(

            180deg,

            #178942,

            #106632

        );

    box-shadow:

        inset 0 0 25px rgba(255,255,255,.08),

        0 15px 35px rgba(0,0,0,.30);

}

.pitch::before{

    content:"";

    position:absolute;

    inset:0;

    background:

        repeating-linear-gradient(

            90deg,

            rgba(255,255,255,.02) 0,

            rgba(255,255,255,.02) 22px,

            transparent 22px,

            transparent 44px

        );

}

.pitch-outline{

    position:absolute;

    inset:16px;

    border:2px solid rgba(255,255,255,.38);

}

.halfway-line{

    position:absolute;

    left:50%;

    top:0;

    bottom:0;

    width:2px;

    transform:translateX(-50%);

    background:rgba(255,255,255,.38);

}

.centre-circle{

    position:absolute;

    left:50%;

    top:50%;

    width:78px;

    height:78px;

    transform:translate(-50%,-50%);

    border:2px solid rgba(255,255,255,.38);

    border-radius:50%;

}

.box{

    position:absolute;

    top:50%;

    width:54px;

    height:110px;

    transform:translateY(-50%);

    border:2px solid rgba(255,255,255,.38);

}

.left-box{

    left:0;

    border-left:none;

}

.right-box{

    right:0;

    border-right:none;

}

.pitch-text{

    position:absolute;

    inset:0;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:40px;

    font-weight:800;

    letter-spacing:5px;

    color:rgba(255,255,255,.18);

}
/* ==========================================================
   DETAILS PANEL
========================================================== */

.details-panel{

    background:rgba(24,36,43,.82);

    border-radius:22px;

    padding:30px;

    border:1px solid rgba(255,255,255,.05);

    box-shadow:var(--shadow);

}

.legend{

    display:flex;

    gap:18px;

    flex-wrap:wrap;

    align-items:center;

}

.legend div{

    display:flex;

    align-items:center;

    gap:8px;

    color:var(--muted);

    font-size:14px;

}

.legend-dot{

    width:12px;

    height:12px;

    border-radius:50%;

}

.legend-dot.green{

    background:var(--green);

}

.legend-dot.yellow{

    background:var(--yellow);

}

.legend-dot.orange{

    background:var(--orange);

}

.legend-dot.red{

    background:var(--red);

}

#standDetails{

    margin-top:25px;

    overflow-x:auto;

}

/* ==========================================================
   TABLE
========================================================== */

.table{

    width:100%;

    border-collapse:collapse;

    min-width:700px;

}

.table thead{

    background:rgba(255,255,255,.05);

}

.table th{

    padding:16px;

    text-align:left;

    color:var(--muted);

    font-size:13px;

    text-transform:uppercase;

    letter-spacing:1px;

}

.table td{

    padding:16px;

    border-top:1px solid rgba(255,255,255,.06);

    font-size:15px;

}

.table tbody tr{

    transition:.2s;

}

.table tbody tr:hover{

    background:rgba(255,255,255,.035);

}

.status-green{

    color:var(--green);

    font-weight:700;

}

.status-yellow{

    color:var(--yellow);

    font-weight:700;

}

.status-orange{

    color:var(--orange);

    font-weight:700;

}

.status-red{

    color:var(--red);

    font-weight:700;

}

/* ==========================================================
   LOADING
========================================================== */

.loading{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:14px;

    min-height:180px;

    color:var(--muted);

    font-size:16px;

}

.loading::before{

    content:"";

    width:22px;

    height:22px;

    border-radius:50%;

    border:3px solid rgba(255,255,255,.12);

    border-top-color:var(--green);

    animation:spin .8s linear infinite;

}

/* ==========================================================
   UTILITY
========================================================== */

.hidden{

    display:none;

}

/* ==========================================================
   NEWS AND RUMORS
========================================================== */

.news-panel{

    background:rgba(24,36,43,.82);

    border-radius:22px;

    padding:30px;

    border:1px solid rgba(255,255,255,.05);

    box-shadow:var(--shadow);

    margin-bottom:35px;

    animation:fadeIn .35s ease;

}

#newsList{

    margin-top:25px;

    display:flex;

    flex-direction:column;

    gap:20px;

}

.news-card{

    background:rgba(255,255,255,.03);

    border:1px solid rgba(255,255,255,.06);

    border-radius:18px;

    padding:22px;

}

.news-card-header{

    display:flex;

    align-items:center;

    justify-content:space-between;

    margin-bottom:12px;

}

.news-badge{

    display:inline-block;

    padding:5px 14px;

    border-radius:999px;

    font-size:12px;

    font-weight:700;

    text-transform:uppercase;

    letter-spacing:.5px;

}

.news-badge.news{

    background:rgba(0,210,91,.15);

    color:var(--green);

}

.news-badge.rumor{

    background:rgba(255,152,0,.15);

    color:var(--orange);

}

.news-date{

    color:var(--muted);

    font-size:13px;

}

.news-title{

    font-size:20px;

    font-weight:700;

    margin-bottom:14px;

}

.news-image{

    width:100%;

    max-height:420px;

    object-fit:contain;

    background:rgba(0,0,0,.25);

    border-radius:14px;

    margin-bottom:14px;

}

.news-body{

    color:var(--text);

    line-height:1.6;

    white-space:pre-wrap;

    margin-bottom:14px;

}

.news-author{

    color:var(--muted);

    font-size:13px;

    font-weight:600;

}

@media (max-width:768px){

    .news-title{

        font-size:18px;

    }

    .news-card{

        padding:18px;

    }

}

/* ==========================================================
   ANIMATIONS
========================================================== */

@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}

@keyframes fadeIn{

    from{

        opacity:0;

        transform:translateY(12px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.header,
.summary-card,
.match-card,
.stadium-panel,
.details-panel{

    animation:fadeIn .35s ease;

}

/* ==========================================================
   SCROLLBAR
========================================================== */

::-webkit-scrollbar{

    width:10px;

    height:10px;

}

::-webkit-scrollbar-track{

    background:#11181c;

}

::-webkit-scrollbar-thumb{

    background:#2f4651;

    border-radius:999px;

}

::-webkit-scrollbar-thumb:hover{

    background:#43626f;

}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width:1200px){

    .summary-grid{

        grid-template-columns:repeat(2,1fr);

    }

    .header{

        flex-direction:column;

        align-items:flex-start;

    }

    .header-right{

        width:100%;

    }

    .clock-box,
    .update-box{

        flex:1;

    }

    .stadium-middle{

        flex-direction:column;

    }

    .north,
    .south,
    .west,
    .east{

        width:100%;

        max-width:520px;

        height:110px;

    }

    .pitch{

        width:100%;

        max-width:520px;

    }

}

@media (max-width:768px){

    .container{

        width:95%;

        padding:20px 0 40px;

    }

    .header{

        padding:22px;

    }

    .header-left{

        flex-direction:column;

        text-align:center;

        width:100%;

    }

    .header-right{

        flex-direction:column;

    }

    .summary-grid{

        grid-template-columns:1fr;

    }

    .match-card{

        flex-direction:column;

        align-items:flex-start;

    }

    .header h1{

        font-size:30px;

    }

    #clockTime{

        font-size:28px;

    }

    .match-left h2{

        font-size:28px;

    }

    .stand-number{

        font-size:34px;

    }

    .summary-card h2{

        font-size:34px;

    }

    .panel-header{

        flex-direction:column;

        align-items:flex-start;

    }

    .legend{

        gap:12px;

    }

}

/* ====================================================== */
/* MODE SWITCH */
/* ====================================================== */

.mode-switch{

    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:18px;

}

.mode-btn{

    background:#202020;
    border:1px solid #2f2f2f;
    color:#bdbdbd;

    padding:10px 20px;

    border-radius:10px;

    font-size:14px;
    font-weight:600;

    white-space:nowrap;

    cursor:pointer;

    transition:all .25s ease;

}

@media (max-width:360px){

    .mode-switch{

        gap:8px;

    }

    .mode-btn{

        padding:9px 12px;

        font-size:12.5px;

    }

}

.mode-btn:hover{

    background:#2b2b2b;
    color:white;

}

.mode-btn.active{

    background:#0b7d36;

    border-color:#16b85d;

    color:white;

    box-shadow:0 0 20px rgba(22,184,93,.25);

}

/* ====================================================== */
/* STAND SUMMARY */
/* ====================================================== */

.stand-summary{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:16px;

    margin-bottom:20px;

}

.stand-summary-card{

    background:#1b1b1b;

    border:1px solid #2f2f2f;

    border-radius:12px;

    padding:18px;

    text-align:center;

}

.stand-summary-card span{

    display:block;

    font-size:13px;

    color:#9d9d9d;

    margin-bottom:8px;

    text-transform:uppercase;

    letter-spacing:1px;

}

.stand-summary-card strong{

    font-size:30px;

    color:#ffffff;

    font-weight:700;

}