@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --mcba-green-dark: #0f2922;
    --mcba-green-mid: #16382e;
    --mcba-green-accent: #1f4e40;
    --mcba-gold: #eab308;
    --mcba-gold-hover: #ca9a04;
    --mcba-cream: #f4f3ee;
    --mcba-scoreboard: #1e2022;
    --mcba-text: #111827;
    --mcba-muted: #57606a;
    --card-radius: 10px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--mcba-cream);
    color: var(--mcba-text);
    overflow-x: hidden;
}

/* =========================================
   TOP NAVIGATION BAR
   ========================================= */
.mcba-navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.mcba-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mcba-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--mcba-green-dark);
}

.mcba-brand-logo {
    display: block;
    width: clamp(10rem, 34vw, 13rem);
    height: auto;
    border-radius: 4px;
}

.mcba-nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mcba-nav-links a {
    text-decoration: none;
    color: #1f2937;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.mcba-nav-links a:hover {
    color: var(--mcba-green-accent);
}

.btn-signout {
    background-color: var(--mcba-green-dark);
    color: #ffffff !important;
    padding: 0.45rem 0.95rem;
    border-radius: 6px;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn-signout:hover {
    background-color: var(--mcba-green-accent);
}

/* =========================================
   STADIUM BACKDROP & HERO SECTION
   ========================================= */
.stadium-backdrop {
    position: relative;
    background: linear-gradient(180deg, 
        #0c201a 0%, 
        #18352b 42%, 
        var(--mcba-cream) 78%, 
        var(--mcba-cream) 100%);
    padding: 2.5rem 1.5rem 2rem;
    overflow: hidden;
}

/* Diagonal Gold Stadium Ribbons */
.stadium-backdrop::before {
    content: "";
    position: absolute;
    top: -120px;
    left: -180px;
    width: 320px;
    height: 600px;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.32), rgba(234, 179, 8, 0.02));
    transform: rotate(-32deg);
    pointer-events: none;
}

.stadium-backdrop::after {
    content: "";
    position: absolute;
    top: 140px;
    right: -160px;
    width: 340px;
    height: 900px;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.45) 0%, rgba(15, 41, 34, 0.85) 55%);
    transform: rotate(22deg);
    pointer-events: none;
    z-index: 0;
}

.main-container {
    position: relative;
    z-index: 2;
    max-width: 1020px;
    margin: 0 auto;
}

/* Hero Wrapper (Marquee + Scoreboard) */
.hero-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    margin-bottom: 3rem;
}

.hero-marquee {
    position: relative;
    background-color: var(--mcba-green-dark);
    /* Turf field & stadium lighting layered gradient + optional image */
    background-image: 
        linear-gradient(90deg, #0d251e 0%, #0f2922 50%, rgba(15, 41, 34, 0.65) 100%),
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.22) 0%, transparent 45%),
        url('/images/hero-band-field.jpg');
    background-size: cover;
    background-position: right center;
    padding: 3.25rem 3rem 2.75rem;
    color: #ffffff;
}

/* Subtle 50-yard line graphic overlay in bottom right */
.yardline-watermark {
    position: absolute;
    right: 4%;
    bottom: 8px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.08);
    letter-spacing: 0.15em;
    transform: perspective(150px) rotateX(45deg);
    pointer-events: none;
    user-select: none;
}

.hero-eyebrow {
    color: var(--mcba-gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 0.75rem 0;
}

.hero-headline {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.85rem);
    font-weight: 800;
    line-height: 0.98;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin: 0 0 1rem 0;
}

.hero-subtext {
    font-size: 0.95rem;
    color: #d1fae5;
    margin: 0 0 1.75rem 0;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.btn-gold {
    background-color: var(--mcba-gold);
    color: #111827;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.7rem 1.35rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-gold:hover {
    background-color: var(--mcba-gold-hover);
    transform: translateY(-1px);
}

.btn-outline-light {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.7rem 1.35rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* =========================================
   SCOREBOARD STAT BAR
   ========================================= */
.scoreboard-bar {
    background-color: var(--mcba-scoreboard);
    border-top: 2px solid var(--mcba-gold);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 1.35rem 2.5rem;
    color: #ffffff;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item:first-child {
    padding-left: 0;
}

.stat-item:last-child {
    border-right: none;
    padding-right: 0;
}

.stat-content {
    border-left: 3px solid var(--mcba-gold);
    padding-left: 0.85rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.15rem;
}

.stat-watermark-icon {
    width: 36px;
    height: 36px;
    color: rgba(234, 179, 8, 0.18);
}

/* =========================================
   COMPETITIONS & FILTER BAR
   ========================================= */
.section-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #374151;
    margin: 0 0 0.2rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 1.25rem 0;
    letter-spacing: -0.02em;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.search-input-wrapper {
    position: relative;
    width: 280px;
}

.search-input-wrapper input {
    width: 100%;
    padding: 0.55rem 2.25rem 0.55rem 0.85rem;
    border: 1px solid #9ca3af;
    border-radius: 6px;
    font-size: 0.88rem;
    background: #ffffff;
}

.search-input-wrapper svg {
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #4b5563;
    pointer-events: none;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    margin-left: 0.25rem;
}

.season-select {
    padding: 0.55rem 2rem 0.55rem 0.75rem;
    border: 1px solid #9ca3af;
    border-radius: 6px;
    font-size: 0.88rem;
    background-color: #ffffff;
}

.btn-search {
    background-color: var(--mcba-green-dark);
    color: #ffffff;
    border: 1px solid var(--mcba-gold);
    padding: 0.55rem 1.25rem;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn-search:hover {
    background-color: var(--mcba-green-accent);
}

/* =========================================
   COMPETITION TICKET CARDS GRID
   ========================================= */
.competitions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
    margin-bottom: 4rem;
}

.comp-card {
    position: relative;
    background: #ffffff;
    border-radius: var(--card-radius);
    padding: 1.25rem 1.15rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.comp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Top-Right Corner Ribbon */
.comp-corner-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    background-color: var(--mcba-green-dark);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 6px 6px 0 0;
}

.comp-corner-ribbon.ribbon-tan {
    background-color: #cbd5c0;
}

.comp-corner-ribbon svg {
    width: 13px;
    height: 13px;
    color: var(--mcba-gold);
}

.comp-corner-ribbon.ribbon-tan svg {
    color: var(--mcba-green-dark);
}

.comp-date-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.76rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.comp-date-meta svg {
    width: 14px;
    height: 14px;
    color: #374151;
}

.comp-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin: 0 0 1.25rem 0;
}

.btn-card-gold {
    display: block;
    text-align: center;
    background-color: var(--mcba-gold);
    color: #111827;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.btn-card-gold:hover {
    background-color: var(--mcba-gold-hover);
}

.btn-card-green {
    display: block;
    text-align: center;
    background-color: var(--mcba-green-dark);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.btn-card-green:hover {
    background-color: var(--mcba-green-accent);
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
    .competitions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .scoreboard-bar {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .stat-item {
        border-right: none;
        padding: 0;
    }
}

@media (max-width: 580px) {
    .competitions-grid {
        grid-template-columns: 1fr;
    }
    .mcba-nav-Container {
        flex-direction: column;
        gap: 0.75rem;
    }
}