/* =========================================================
   ERC Ingolstadt Gamecenter Styles (v1.9)
   ========================================================= */

.gamecenter-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
}

/* =========================================================
   TEAM NAVIGATION
   ========================================================= */

/* Desktop tabs */
.team-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(0, 51, 102, 0.1);
    padding-bottom: 8px;
}

.team-nav-btn,
.team-scroll-btn {
    display: inline-block;
    background: #003d80;
    color: #fff;
	width: 80px;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 0.55rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none !important;         /* completely remove any border */
    outline: none !important;        /* remove focus outline */
    box-shadow: none !important;     /* remove default button shadow */
    cursor: pointer;
    transition: background 0.25s ease, transform 0.1s ease;
    white-space: nowrap;
}


.team-nav-btn:hover,
.team-scroll-btn:hover {
    background: #0052b5;
    transform: translateY(-1px);
}

.team-nav-btn.active,
.team-scroll-btn.active {
    background: #00264d;
}

.team-nav-btn:focus,
.team-scroll-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(0, 61, 128, 0.25); /* optional subtle focus ring for accessibility */
}

/* Mobile horizontal scroller instead of dropdown */
.team-scroll {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 6px 4px;
    margin-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.team-scroll::-webkit-scrollbar {
    display: none;
}
.team-scroll-btn {
    display: inline-block;
    background: #003d80;
    color: #fff;
    font-size: 0.75rem;
  
}


/* =========================================================
   TEAM CONTENT SECTIONS
   ========================================================= */

.team-content-wrapper {
    width: 100%;
}

.team-block {
    display: none;
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
}

.team-block.active {
    display: block;
}

.team-block h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 12px;
    border-bottom: 2px solid rgba(0, 51, 102, 0.2);
    padding-bottom: 6px;
}

/* =========================================================
   INNER TABS (Schedule / Standings)
   ========================================================= */

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tab-button {
    flex: 1;
    padding: 10px 12px;
    border: none;
    background: #e0e0e0;
    font-weight: 600;
    color: #003366;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tab-button:hover {
    background: #d0d0d0;
}

.tab-button.active {
    background: #003366;
    color: white;
}

.tab-content {
    display: none;
    width: 100%;
}

.tab-content.active {
    display: block;
}

/* =========================================================
   NO DATA MESSAGE
   ========================================================= */

.no-data {
    text-align: center;
    color: #555;
    font-style: italic;
    padding: 25px 15px;
    background: #f9f9f9;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
}

/* =========================================================
   TABLE STYLING (Standings / Schedule)
   ========================================================= */

.hockey-schedule table,
.hockey-standings table {
    width: 100%;
    border-collapse: collapse;
    font-family: inherit;
    margin: 1em 0;
    font-size: 0.95rem;
}

.hockey-schedule th, .hockey-schedule td,
.hockey-standings th, .hockey-standings td {
    border: 1px solid #ddd;
    padding: 8px 6px;
    text-align: center;
}

.hockey-schedule th,
.hockey-standings th {
    background: #003366;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.4px;
}

.hockey-schedule tr:nth-child(even),
.hockey-standings tr:nth-child(even) {
    background: #f7f9fb;
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    /* NEW: mobile team scroll bar visible */
    .mobile-scroll {
        display: flex !important;
    }

    /* Reduced padding for full-width look */
    .gamecenter-wrapper {
        padding: 6px 4px;
    }

    .team-block h2 {
        text-align: center;
        font-size: 1.25rem;
    }

    /* Make tables fit screen — tighter padding & font size */
    .hockey-schedule th, .hockey-schedule td,
    .hockey-standings th, .hockey-standings td {
        padding: 6px 3px;
        font-size: 0.8rem;
    }

    .tabs {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
    }
}

@media (min-width: 769px) {
    .mobile-scroll {
        display: none !important;
    }
}

/* =========================================================
   SMOOTH TRANSITIONS
   ========================================================= */

.team-block,
.tab-content {
    transition: opacity 0.2s ease-in-out;
}

.swipe-hint {
    animation: swipeHintPulse 3s infinite;
}


/* =========================================================
   MOBILE — Hide team buttons & show swipe hint
   ========================================================= */

@media (max-width: 768px) {
    /* Hide all team navigation elements */
    .team-nav,
    .team-scroll {
        display: none !important;
    }

    /* Add a subtle swipe hint below the header */
    .swipe-hint {
        display: block;
        text-align: center;
        font-size: 0.85rem;
        font-style: italic;
        color: #777;
        margin-bottom: 10px;
    }
}

@media (min-width: 769px) {
    .swipe-hint {
        display: none;
    }
}

@keyframes swipeHintPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}
