/* --- GLOBAL STYLES & VARIABLES --- */
:root {
    --dark-blue: #0A2342;
    --green: #2CA58D;
    --light-gray: #f4f4f4;
    --text-color: #ffffff;
    --unavailable-red: #E74C3C;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #1a1a1a;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER & FOOTER --- */
.site-header, .site-footer {
    background-color: var(--dark-blue);
    padding: 15px 0;
    border-bottom: 3px solid var(--green);
}

.site-header .container, .site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    background-color: #ccc; /* Placeholder background */
    width: 180px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #333;
}

.logo img {
    max-width: 100%;
    height: auto;
}

.home-link {
    background-color: var(--green);
    color: var(--text-color);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.home-link:hover {
    background-color: #248a74;
}

.site-footer {
    margin-top: 40px;
    border-top: 3px solid var(--green);
    border-bottom: none;
    font-size: 0.9em;
    color: #aaa;
    text-align: center;
}

/* --- MAIN CONTENT --- */
.main-content {
    padding: 40px 0;
}

.main-content h1 {
    font-size: 2.5em;
    color: var(--green);
    margin-bottom: 10px;
    text-align: center;
}

.main-content p {
    font-size: 1.1em;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.main-content p a {
    color: var(--green);
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.main-content p a:hover {
    text-decoration: underline;
}

/* --- GAME LISTING CARD --- */
.game-card {
    background-color: #2c2c2c;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(44, 165, 141, 0.3);
}

.opponent-logo {
    flex-shrink: 0;
    width: 150px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.opponent-logo img {
    max-width: 80%;
    height: auto;
}

.game-details {
    padding: 20px;
    flex-grow: 1;
}

.game-details h2 {
    margin: 0 0 5px 0;
    color: var(--text-color);
    font-size: 1.8em;
}

.game-details .datetime {
    font-size: 1.1em;
    color: #ccc;
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 15px;
}

.ticket-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.ticket-section {
    background-color: #3a3a3a;
    padding: 15px;
    border-radius: 5px;
}

.ticket-section h3 {
    margin: 0 0 10px 0;
    color: var(--green);
}

.ticket-section p {
    margin: 0;
    font-size: 1em;
    color: #eee;
    text-align: left;
}

.unavailable {
    color: var(--unavailable-red) !important;
    font-weight: bold;
}

/* --- LIGHTBOX --- */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-image {
    width: 100%;
    height: auto;
}

.close-cursor {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-cursor:hover, .close-cursor:focus {
    color: #bbb;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(44, 165, 141, 0.8);
}

.caption-container {
    text-align: center;
    background-color: black;
    padding: 10px 16px;
    color: white;
}

/* --- RESPONSIVE DESIGN --- */
@media screen and (max-width: 768px) {
    .game-card {
        flex-direction: column;
    }
    .opponent-logo {
        width: 100%;
        height: 150px;
    }
    .ticket-info {
        grid-template-columns: 1fr;
    }
    .main-content h1 {
        font-size: 2em;
    }
}