/* ------------------------------
   GLOBAL RESET
--------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background: url('images/ccfcstadium.webp') center center / cover no-repeat fixed;
    color: #fff;
    overflow-x: hidden; /* prevents ANY sideways scroll */
}

/* ------------------------------
   HOMEPAGE HERO (unchanged)
--------------------------------*/
.hero {
    position: relative;
    width: 100%;
    min-height: 100svh;
    background: url('images/ccfcstadium.webp') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
    z-index: 2;
    color: #fff;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 150, 215, 0.6);
    position: relative;
    overflow: hidden;
}

.hero-title::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% { left: -150%; }
    60% { left: 150%; }
    100% { left: 150%; }
}

.hero-subtitle {
    margin-top: 1rem;
    font-size: 1.25rem;
    opacity: 0.9;
}

.highlight {
    background: #0096d7;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    display: inline-block;
    color: #fff;
}

.hero-ctas {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary-solid {
    padding: 0.9rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #ffffff;
    color: #ffffff;
    background: #0096d7;
    transition: 0.25s ease;
}

.btn-primary:hover,
.btn-secondary-solid:hover {
    background: #25bdff;
    color: #ffffff;
}

/* ------------------------------
   NAVBAR
--------------------------------*/
.navbar {
    width: 100%;
    background: #87CEEB;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    position: relative;
    z-index: 9999;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    height: 40px;
}

.nav-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

/* ------------------------------
   HAMBURGER
--------------------------------*/
.hamburger {
    position: fixed;
    top: 15px;
    right: 20px;
    background: #0096d7;        /* CCFC blue */
    border: 2px solid #ffffff;  /* clean white border */
    border-radius: 6px;         /* subtle rounding */
    padding: 6px 8px;           /* tight box around the lines */
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 10000;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
}

/* ------------------------------
   SLIDE-OUT MENU
--------------------------------*/
.side-menu {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100vh;
    background: #87CEEB;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    transition: right 0.3s ease;
    z-index: 5000;
}

.side-menu a {
    padding: 15px 20px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
}

.side-menu a:hover {
    background: rgba(0,0,0,0.05);
}

.side-menu.open {
    right: 0;
}

/* ------------------------------
   WHITE BANNER
--------------------------------*/
.white-banner {
    width: 100%;
    background: #ffffff;
    padding: 22px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-inner {
    max-width: 900px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.team-box {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-crest {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.kickoff-center {
    flex: 1;
    text-align: center;
}

.kickoff-label {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
    color: #222;
}

.kickoff-timer {
    font-family: monospace;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #111;
}

/* ------------------------------
   LOGIN OVERLAY
--------------------------------*/
.login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.login-overlay.hidden {
    display: none;
}

.login-box {
    background: #87CEEB;
    padding: 35px 30px;
    border-radius: 14px;
    width: 320px;
    text-align: center;
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
    color: #fff;
}

.login-badge {
    width: 90px;
    margin-bottom: 15px;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: #0096d7;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    transition: 0.25s ease;
}

.login-box button:hover {
    background: #007bb3;
}

/* ------------------------------
   LEAGUE PAGE HERO
--------------------------------*/
.league-hero {
    position: relative;
    width: 100%;
    height: 100svh;
    z-index: 2;
}

.league-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
}

/* ------------------------------
   DASHBOARD OVERLAY
--------------------------------*/
.dashboard-grid {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 2000px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 20px;

    overflow-x: hidden; /* ← prevents sideways push */
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        width: 100%;
        left: 50%;
        transform: translateX(-50%);
        padding: 10px;
        gap: 20px;
    }
}

/* ------------------------------
   TILE STYLING
--------------------------------*/
.tile {
    background: #ffffff;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
    color: #000;

    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    width: 100%;
    max-width: 100%; /* ← prevents overflow */
}

.tile h3 {
    margin-bottom: 15px;
    text-align: center;
}

/* ------------------------------
   MOBILE
--------------------------------*/
.user-tile,
.table-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20px;
}

.user-tile {
    display: flex;
    flex-direction: column;
}

#userProfile {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

#logoutBtn {
    margin-top: auto;
    padding: 10px 15px;
    background: #0096d7;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.prediction-tile {
    text-align: center;
    align-items: center;
}

.kickoff-venue {
    color: #000 !important;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ADMIN TILE */
.admin-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 22px;
}

.admin-login-box {
    margin-top: auto;
    margin-bottom: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.admin-login-box input {
    width: 80%;
    max-width: 260px;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    text-align: center;
}

.admin-login-box button {
    width: 60%;
    max-width: 200px;
    padding: 12px;
    background: #0077cc;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}

.admin-login-box button:hover {
    background: #005fa3;
}

/* Force all interactive UI above background layers */
header,
.dashboard-grid,
.player-slider,
.player-slider *,
button,
a {
  position: relative;
  z-index: 50;
  pointer-events: auto;
}

/* Ensure the stadium background NEVER blocks clicks */
.stadium-bg,
.stadium-bg * {
  z-index: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 600px) {
    #predictionForm {
        margin-top: -30px !important;
    }
}

@media (max-width: 600px) {
    .prediction-inner > h3 {
        margin-top: -12px !important;
    }
}

#predictionSuccess {
    background: rgba(0, 200, 0, 0.25);
    border: 1px solid rgba(0, 200, 0, 0.5);
    padding: 12px 16px;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
    backdrop-filter: blur(6px);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}





