:root {
    --primary: #0046ad;
    --secondary: #00d4ff;
    --accent: #ff004c;
    --bg-dark: #0a0a0c;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 0;
}

/* Mesh Gradient Background */
.mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(at 0% 0%, hsla(215, 100%, 34%, 0.3) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(180, 100%, 50%, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(340, 100%, 50%, 0.2) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(250, 100%, 50%, 0.2) 0px, transparent 50%);
    background-color: var(--bg-dark);
    filter: blur(80px);
}

.container {
    max-width: 1200px;
    width: 90%;
    text-align: center;
    padding: 2rem 0;
}

/* Navigation Styles */
.top-nav {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 2rem;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

.back-link svg {
    transition: transform 0.3s ease;
}

.back-link:hover svg {
    transform: translateX(-2px);
}

/* Header Styles */
.header h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.world-cup-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Countdown Styles */
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .countdown-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.time-card {
    padding: 2rem 1rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.time-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.time-value {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.time-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-dim);
}

/* Hosts Section */
.host-flags {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.host-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.host-card span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dim);
}

.flag {
    width: 60px;
    height: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* CSS Flags Representation */
.flag.usa {
    background: linear-gradient(to bottom, #B22234 0%, #B22234 7.7%, #fff 7.7%, #fff 15.4%, #B22234 15.4%, #B22234 23.1%, #fff 23.1%, #fff 30.8%, #B22234 30.8%, #B22234 38.5%, #fff 38.5%, #fff 46.2%, #B22234 46.2%, #B22234 53.8%, #fff 53.8%, #fff 61.5%, #B22234 61.5%, #B22234 69.2%, #fff 69.2%, #fff 76.9%, #B22234 76.9%, #B22234 84.6%, #fff 84.6%, #fff 92.3%, #B22234 92.3%, #B22234 100%);
}

.flag.usa::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 53.8%;
    background: #3C3B6E;
    z-index: 1;
}

.flag.canada {
    background: #fff;
    position: relative;
    overflow: hidden;
}

.flag.canada::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 25%;
    height: 100%;
    background: #FF0000;
    z-index: 1;
}

.flag.canada::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 25%;
    height: 100%;
    background: #FF0000;
    z-index: 1;
}

.flag.canada span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    z-index: 2;
}

.flag.mexico {
    background: linear-gradient(to right, #006847 33.3%, #fff 33.3%, #fff 66.6%, #CE1126 66.6%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.flag.mexico::after {
    content: '🦅';
    font-size: 0.7rem;
    filter: grayscale(0.2) contrast(1.2);
}

.time-card.glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.1), transparent 70%);
    pointer-events: none;
}

/* Footer Section */
.footer p {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 300;
}

/* Schedule Section Styles */
.schedule-section {
    width: 100%;
    margin-top: 4rem;
    padding-bottom: 5rem;
}

.schedule-header {
    margin-bottom: 3rem;
}

.schedule-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.schedule-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.group-container {
    text-align: left;
    padding: 2rem;
    border-radius: 24px;
    height: 100%;
}

.group-container h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 400px;
}

th {
    text-align: left;
    padding: 0.75rem 0.5rem;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--glass-border);
}

td {
    padding: 1rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

tr:last-child td {
    border-bottom: none;
}

.date-cell {
    white-space: nowrap;
    color: var(--secondary);
    font-weight: 500;
}

.match-cell {
    font-weight: 600;
}

.stadium-cell {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Guide Section Styles */
.guide-section {
    width: 100%;
    margin-top: 2rem;
    padding-bottom: 5rem;
    text-align: left;
}

.guide-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.guide-card {
    padding: 2.5rem;
    border-radius: 32px;
}

.guide-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--secondary), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.guide-card h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-main);
}

.guide-card p {
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.feature-list {
    list-style: none;
    margin: 1rem 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
    font-size: 0.9rem;
}

.feature-list li::before {
    content: '→';
    color: var(--secondary);
    font-weight: bold;
}

.price-table {
    width: 100%;
    margin-top: 1.5rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.price-row span:last-child {
    font-weight: 700;
    color: var(--secondary);
}

.cta-box {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    border: 1px dashed var(--secondary);
}

.cta-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cta-box p {
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--secondary);
    color: #000;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.animate-slide-up {
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
    animation-delay: var(--delay);
}