/* ========================================
   CORE LAYOUT & UTILITIES - Mobile-First Approach
   ======================================== */

:root {
    --iowa-gold: #FFCD00;
    --iowa-black: #000000;
    --text-white: #ffffff;
    --surface-color: #1A1A1A;
    --bg-gray-50: #f9fafb;
}

/* ========================================
   RESET & BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Montserrat', sans-serif;
    background-color: var(--bg-gray-50);
    color: var(--text-white);
    min-height: 100vh;
    width: 100%;
}

/* ========================================
   MODERN CLASH CARD (Mobile Default)
   ======================================== */
.modern-clash-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: auto; /* Allow content to dictate height on mobile */
}

.clash-team-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 1.5rem 1rem;
}

.clash-team-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.clash-vs-circle {
    background: linear-gradient(135deg, #ffcd00 0%, #fdb813 100%);
    color: #000000;
    font-family: 'Anton', sans-serif;
    font-size: 1rem;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 205, 0, 0.4);
    z-index: 10;
    margin-bottom: 1rem;
}

.clash-vs-text {
    font-weight: 900;
    letter-spacing: 0.1em;
}

.glow-pulse {
    animation: glow-pulse-animation 2s ease-in-out infinite;
}

@keyframes glow-pulse-animation {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 205, 0, 0.4); }
    50% { box-shadow: 0 0 25px rgba(255, 205, 0, 0.6); }
}

/* ========================================
   COUNTDOWN TIMER STYLES (Mobile Default)
   ======================================== */
.clash-glass-timer {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 205, 0, 0.2);
}

.digital-countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    text-align: center;
}

.digital-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.digital-unit > div:first-child {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(255, 205, 0, 0.5),
                 -1px -1px 0 var(--iowa-gold),
                 1px -1px 0 var(--iowa-gold),
                 -1px 1px 0 var(--iowa-gold),
                 1px 1px 0 var(--iowa-gold);
    font-family: 'Courier New', monospace;
    line-height: 1;
}

/* ========================================
   UTILITY CLASSES (Mobile Default)
   ======================================== */
.rounded-3xl { border-radius: 24px; }
.rounded-full { border-radius: 9999px; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.overflow-hidden { overflow: hidden; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }

.p-8 { padding: 1.5rem; }
.p-10 { padding: 2rem; }
.mb-8 { margin-bottom: 1.5rem; }
.mt-8 { margin-top: 1.5rem; }

.text-white { color: var(--text-white); }
.text-primary { color: var(--iowa-gold); }
.bg-primary { background-color: var(--iowa-gold); }

.font-display { font-family: 'Anton', sans-serif; font-weight: 700; }
.uppercase { text-transform: uppercase; }

/* ========================================
   MODAL STYLES (Mobile Default)
   ======================================== */
#page-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#page-modal.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

#page-modal-content {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    width: 100%;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #333;
    min-height: 60px;
}

/* ========================================
   DESKTOP ENHANCEMENTS (min-width: 769px)
   ======================================== */
@media (min-width: 769px) {
    .modern-clash-card {
        min-height: 500px;
    }

    .clash-team-container {
        padding: 2rem 1rem;
    }

    .clash-team-logo {
        width: 120px;
        height: 120px;
    }

    .clash-vs-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .clash-glass-timer {
        padding: 2.5rem;
    }

    .digital-countdown {
        gap: 1.5rem;
    }

    .digital-unit > div:first-child {
        font-size: 3.5rem;
        text-shadow: 0 0 10px rgba(255, 205, 0, 0.5),
                     -2px -2px 0 var(--iowa-gold),
                     2px -2px 0 var(--iowa-gold),
                     -2px 2px 0 var(--iowa-gold),
                     2px 2px 0 var(--iowa-gold);
    }

    .p-8 { padding: 2rem; }
    .p-10 { padding: 2.5rem; }
    .mb-8 { margin-bottom: 2rem; }
    .mt-8 { margin-top: 2rem; }

    #page-modal-content {
        width: 85%;
        height: 98vh;
        margin: 0 1rem;
        border-radius: 12px;
        border: 1px solid rgba(255, 205, 0, 0.3);
        transform: scale(0.95);
        transition: transform 0.3s ease;
    }

    #page-modal.active #page-modal-content {
        transform: scale(1);
    }
}
