:root {
    --primary-blue: #1e40af;
    --secondary-blue: #3b82f6;
    --accent-blue: #60a5fa;
    --dark-bg: #0b1116;
    --card-bg: #151c23;
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --border-color: #262f3a;
    --success-green: #22c55e;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    background-image: url('assets/football-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: overlay;
    color: var(--text-white);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    z-index: -1;
}

/* Header */
header {
    background: var(--card-bg);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    font-style: italic;
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
    font-size: 1.2rem;
}

.hero {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, var(--dark-bg) 0%, rgba(11, 17, 22, 0.6) 100%),
        url('https://images.unsplash.com/photo-1574629810360-7efbbe195018?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-white);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.hero-content .subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--accent-yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.jackpot {
    background: linear-gradient(45deg, var(--accent-blue), var(--secondary-blue));
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: 800;
    box-shadow: 0 4px 20px rgba(96, 165, 250, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.container {
    max-width: 1100px;
    margin: 40px auto 40px;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.quiniela-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 750px;
    margin: 0 auto;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    padding: 0.75rem 1rem;
    text-align: center;
}

.card-header h2 {
    color: white;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
}

.match-row {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.3s;
}

.match-row:hover {
    background: rgba(96, 165, 250, 0.05);
}

.match-row:last-child {
    border-bottom: none;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.team-info.local {
    justify-content: flex-end;
}

.team-info.visitor {
    justify-content: flex-start;
    flex-direction: row-reverse;
}

.team-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.team-name {
    font-weight: 700;
    color: #000;
    font-size: 0.75rem;
}

.selection-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.selection-btn {
    width: 32px;
    height: 32px;
    border: 2px solid #d1d5db;
    background: white;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    color: #6b7280;
}

.selection-btn:hover {
    border-color: var(--accent-blue);
    background: rgba(96, 165, 250, 0.1);
    transform: scale(1.1);
}

.selection-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

/* Footer Bar */
.footer-bar {
    background: rgba(11, 17, 22, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.cost-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.cost-label {
    font-weight: 800;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cost-value {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    padding: 0.6rem 1.5rem;
    border-radius: 12px;
    font-weight: 900;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.4);
}

.closing-info {
    text-align: right;
}

.closing-label {
    font-weight: 800;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.closing-time {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    margin-top: 0.4rem;
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero {
        height: 280px;
    }

    .container {
        margin-top: 20px;
    }

    .match-row,
    .card-header {
        grid-template-columns: 60px 1fr 50px 1fr 60px;
        padding: 1rem 0.5rem;
    }

    .team-name {
        font-size: 0.8rem;
    }

    .team-logo {
        width: 40px;
        height: 40px;
    }

    .selection-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .footer-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .closing-info {
        text-align: center;
    }
}

/* Match Info Row */
.match-info-row {
    padding: 0.5rem 1rem;
    background: rgba(96, 165, 250, 0.05);
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
    font-weight: 600;
}

.match-info-row i {
    color: var(--accent-blue);
    margin-right: 0.25rem;
}

/* Submit Quiniela Button */
.submit-quiniela-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--success-green), #16a34a);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.submit-quiniela-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.submit-quiniela-btn:active {
    transform: translateY(0);
}

.submit-quiniela-btn i {
    font-size: 1.2rem;
}

/* Update footer bar to accommodate button */
.footer-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .footer-bar {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .submit-quiniela-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Action Buttons Container */
.action-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Buy Quiniela Button */
.buy-quiniela-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border: none;
    border-radius: 12px;
    color: #000;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.buy-quiniela-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.buy-quiniela-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Update Submit Button */
.submit-quiniela-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .buy-quiniela-btn,
    .submit-quiniela-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Hamburger Menu Styles */
.hamburger-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--card-bg);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
}

.hamburger-menu.active {
    right: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.menu-header h3 {
    color: var(--text-white);
    font-weight: 800;
    margin: 0;
}

.menu-header i {
    font-size: 1.5rem;
    color: var(--text-white);
    cursor: pointer;
    transition: transform 0.3s;
}

.menu-header i:hover {
    transform: rotate(90deg);
}

.menu-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.menu-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.menu-nav a:hover {
    background: rgba(96, 165, 250, 0.1);
    border-left-color: var(--accent-blue);
}

.menu-nav a i {
    font-size: 1.2rem;
    color: var(--accent-blue);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}