/* ================================
   GENERAL BODY SETTINGS
=================================== */
.content1 {
    max-width: 1200px;
    margin: 20px auto;
    padding: 25px;
    background-color: #263238;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

/* ================================
   HEADINGS
=================================== */
h1 {
    text-align: center;
    color: #ffcc00;
    font-size: 2.5em;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.date-heading {
    text-align: center;
    font-size: 1.4em;
    color: #f4f4f9;
    margin-bottom: 30px;
}

/* ================================
   NAVIGATION
=================================== */
.nav {
    text-align: center;
    margin-bottom: 20px;
}

.nav a {
    background-color: #444;
    color: #ffcc00;
    padding: 10px 15px;
    margin: 0 6px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav a:hover {
    background-color: #ffcc00;
    color: #1b1f23;
}

/* ================================
   CONTROLS SECTION (Desktop)
=================================== */
.controls {
    display: flex;
    justify-content: center;    /* Center controls horizontally */
    align-items: center;        /* Vertically align labels and dropdowns */
    flex-wrap: wrap;           /* Still responsive */
    gap: 20px;
    margin-bottom: 20px;
}

.controls div {
    display: flex;
    flex-direction: row;        /* Put label and dropdown side by side */
    align-items: center;        /* Vertically align them */
    justify-content: center;    /* Center each block */
    text-align: left;
    flex: 0 0 auto;            /* Prevent stretching */
    min-width: 220px;         /* Slightly wider to accommodate label + input */
    gap: 10px;                /* Space between label and dropdown */
}

.controls label {
    font-size: 1em;
    color: #f4f4f9;
    white-space: nowrap;      /* Prevent labels from wrapping to new line */
}


.dropdown,
input#filter-select {
    padding: 10px;
    width: 100%;
    background-color: #444;
    border: 1px solid #666;
    color: #fff;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

input#filter-select {
    max-width: 300px;
}

/* ================================
   MOBILE STYLES FOR CONTROLS
=================================== */
@media (max-width: 768px) {
    .controls {
        flex-direction: column;   /* Stack controls vertically */
        align-items: stretch;     /* Stretch to full width */
        gap: 15px;
    }

    .controls div {
        width: 100%;
        min-width: unset;
        align-items: flex-start;  /* Left align labels and inputs */
        text-align: left;
    }

    .dropdown,
    input#filter-select {
        width: 100%;
    }
}

/* ================================
   EVENT CARD STYLING
=================================== */
.event-card {
    background-color: #455a64;
    padding: 20px 30px;
    margin: 15px 0;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    border-left: 3px solid #ffcc00;
}

.event-card h3 {
    color: #ffcc00;
    font-size: 1.6em;
    margin-bottom: 8px;
}

.event-card .start-time {
    font-size: 1.3em;
    color: #ff9900;
    margin-bottom: 8px;
}

/* ================================
   CHANNEL LIST
=================================== */
.channels ul {
    margin: 0;
    padding: 0;
}

.channels ul li {
    padding: 3px 0;
    list-style: none;
    font-size: 1.05em;
    line-height: 1.4;
}

/* ================================
   LOGO AND SECTION HEADERS
=================================== */
h2 {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.logo {
    height: 60px;
    width: auto;
    margin-right: 15px;
}

/* ================================
   REFRESH SECTION
=================================== */
.refresh-section {
    background-color: #263238;
    text-align: center;
    color: #ffcc00;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.refresh-section h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.refresh-section button {
    background-color: #444;
    color: #ffcc00;
    padding: 10px 15px;
    margin: 0 6px;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.refresh-section button:hover {
    background-color: #ffcc00;
    color: #1b1f23;
    transform: scale(1.05);
}

.refresh-section pre {
    background-color: #000;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 0.9em;
}

/* ================================
   CONNECTION INFO BOX
=================================== */
.connection-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 500px;
    background-color: #455a64;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    text-align: center;
}

.connection-info h2 {
    font-size: 1.2em;
    font-weight: bold;
    color: #f3d55b;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.connection-info p {
    font-size: 1em;
    color: #d8c45d;
    margin: 3px 0;
}

.event-logo {
    width: 50px;
    height: auto;
    margin-right: 10px;
    vertical-align: middle;
}

/* ================================
   MOBILE STYLES (Connection Info, Cards)
=================================== */
@media (max-width: 768px) {
    .connection-info {
        max-width: 100%;
        margin: 10px 0;
    }

    .event-card {
        max-width: 100%;
    }

    .channels ul li {
        word-wrap: break-word;
    }
}

/* ================================
   TEAM MATCHUP LOGOS
=================================== */
.matchup {
    margin-bottom: 1px;
    padding: 0;
}
.team-matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.team-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 5px;
}
.team-abbr {
    font-weight: bold;
    font-size: 1.1em;
    color: #f4f4f9;
}
.matchup-separator {
    font-size: 1.4em;
    font-weight: bold;
    color: #ff9900;
    padding: 0 5px;
}
/* Reduce h3 top margin to bring it closer to logos */
.event-card h3 {
    margin-top: 5px;
}
/* ================================
   MOBILE STYLES FOR TEAM LOGOS
=================================== */
@media (max-width: 768px) {
    .team-matchup {
        gap: 8px;
    }
    .team-logo {
        width: 35px;
        height: 35px;
    }
    .team-abbr {
        font-size: 1em;
    }
    .matchup-separator {
        font-size: 1.2em;
    }
}

/* ================================
   BACK TO TOP BUTTON
=================================== */
#back-to-top {
    position: fixed;
    right: -48px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffcc00;
    color: #1c1c1c;
    border: none;
    border-radius: 8px 0 0 8px;
    width: 48px;
    height: 48px;
    font-size: 1.4em;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.25s ease, background-color 0.2s ease;
    z-index: 1000;
    box-shadow: -2px 0 8px rgba(0,0,0,0.4);
    text-decoration: none;
    line-height: 1;
}

#back-to-top:hover,
body:hover #back-to-top {
    right: 0;
}

#back-to-top:hover {
    background-color: #e6b800;
}

@media (max-width: 768px) {
    #back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
        right: -40px;
    }
}
