/* Header Background */
.header-background {
    position: relative;
    min-height: 60vh;
    overflow: hidden;
    background-color: #0d0e10;
}

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-attachment: fixed;
    background-position: top;
    background-repeat: no-repeat;
    filter: brightness(0.5) blur(5px);
    background-image: url("../../images/backgrounds/TournamentPage/tournamentHeader.webp");
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeIn 2s ease-in-out;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    color: #b8b8b8;
}

/* Tournament Cards Section */
.tournaments {
    padding: 5rem 2rem;
    background-color: #08080C;
    color: white;
    text-align: center;
}

.tournaments-content {
    max-width: 1200px;
    margin: 0 auto;
}

.tournaments h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: white;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: rgba(31, 31, 31, 0.23);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.21);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.card-banner {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    filter: blur(0.5px);
}
.game-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.card:hover .game-banner {
    transform: scale(1.05);
}

.status-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    z-index: 2; /* Ensure it's above the banner image */
}

.status-tag.upcoming {
    background-color: #4b8aff;
}

.status-tag.ongoing {
    background-color: #28a745;
}

.status-tag.completed {
    background-color: #dc3545;
}
/* card content */
.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.game-tag {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.game-tag.pc {
    background-color: #6c757d;
}

.game-tag.team {
    background-color: #17a2b8;
}
.game-tag.cs2 {
    background-color: #d7652c;
}
.game-tag.lol {
    background-color: #58c124;
}
.game-tag.valorant {
    background-color: #fa4454;
}
.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.prize-pool {
    position: relative;
    display: inline-block;
    cursor: pointer;
    font-size: 1rem;
    color: #b8b8b8;
    margin-bottom: 0.5rem;
}
.additional-prizes {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4b8aff;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 10;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.additional-prizes li {
    list-style: none;
    margin-bottom: 0.25rem;
}
.prize-pool:hover .additional-prizes {
    display: block;
    opacity: 1;
}
.prize-pool b {
    color: #4b8aff;
}
.prize-pool-date {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-bottom: 1rem;
}

.prize-pool, .date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: #b8b8b8;
}

.prize-pool b {
    color: #4b8aff;
}

.prize-pool i, .date i {
    font-size: 1rem;
    color: #4b8aff;
}
.card p {
    font-size: 1rem;
    color: #b8b8b8;
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date {
    font-size: 0.9rem;
    color: #b8b8b8;
}

.cta-button {
    background-color: #5865F2;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #4752C4;
    transform: translateY(-2px);
}

.cta-button:active {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
/* Mobile Styles */
@media (max-width: 768px) {
    /* Header Background */
    .header-background {
        min-height: 50vh;
    }

    /* Hero Section */
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Tournament Cards Section */
    .tournaments {
        padding: 2rem 1rem;
    }

    .tournaments h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card h3 {
        font-size: 1.25rem;
    }

    .prize-pool, .date {
        font-size: 0.9rem;
    }

    .cta-button {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    .card-banner {
        height: 150px;
    }
    .card-content {
        padding: 1rem;
    }

    /* Status Tags */
    .status-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    /* Game Tags */
    .game-tag {
        font-size: 0.7rem;
    }

    .prize-pool {
        position: relative;
        display: block;
        text-align: center;
    }

    .additional-prizes {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 0.5rem;
        padding: 0.5rem;
        font-size: 0.8rem;
        white-space: normal;
        background-color: rgba(75, 138, 255, 0.9);
        border-radius: 4px;
    }

    .prize-pool:hover .additional-prizes {
        display: block;
        opacity: 1;
    }
}
