/* layouts.css - Grid Systems, Page Layouts, Responsive Design, and Complex Components */

/* Game Card Layouts */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

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

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

.schedule-item {
    transition: all 0.2s ease;
}

.schedule-item.filtered-out {
    opacity: 0;
    transform: scale(0.95);
}

/* Team Detail Page Standards */
.team-header-gradient {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #333;
}

/* Service and Channel Cards */
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: rgba(255,255,255,0.2) !important;
}

/* Schedule Table Styles */
.schedule-table {
    width: 100%;
    background: transparent;
}

.schedule-table thead {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.schedule-table th {
    color: white;
    background: transparent;
    border: none;
    padding: 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-table td {
    background: transparent;
    border: none;
    color: white;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.schedule-table tr:hover td {
    background: rgba(255,255,255,0.03);
}

.schedule-table .text-muted {
    color: rgba(255,255,255,0.5) !important;
}

/* Team Schedule Tables - Mobile Optimization */
.mobile-abbrev {
    display: none;
}

@media (max-width: 768px) {
    .team-schedule-table {
        font-size: 0.75rem !important;
    }
    .team-schedule-table th,
    .team-schedule-table td {
        padding: 0.3rem 0.2rem !important;
        font-size: 0.75rem !important;
    }
    .team-schedule-table .bi {
        font-size: 0.875rem !important;
    }
    .team-schedule-table a {
        font-size: 0.7rem !important;
    }
    .team-schedule-table small {
        font-size: 0.65rem !important;
    }
    /* Show abbreviated text on mobile */
    .mobile-full {
        display: none !important;
    }
    .mobile-abbrev {
        display: inline !important;
    }
}

.team-info-section {
    margin-bottom: 1.5rem;
}

.team-info-section h3,
.team-info-section h5 {
    color: white;
    margin-bottom: 1rem;
}

.clean-section {
    margin-bottom: 2rem;
}

.clean-section:last-child {
    margin-bottom: 0;
}

/* Remove grey container overrides */
.no-grey-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.no-grey-container .card-header,
.no-grey-container .card-body {
    background: transparent !important;
    border: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Enhanced Game Card Styles - Cool Steel Grey Theme */
.game-card {
    background: #2a2d35;
    border: 1px solid #3a3d45;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    position: relative;
    width: 100%; /* Ensure card takes full width of column */
}

.game-card:hover {
    background: #323540;
    border-color: #4a4d55;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Clickable game card styles */
.game-card-clickable {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.game-card-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.game-card-clickable a,
.game-card-clickable button {
    position: relative;
    z-index: 2;
}

.game-card .card-body {
    position: relative;
}

/* Game Period/Status Container */
.game-period-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-period-container .badge {
    font-size: 0.85rem;
    padding: 0.35em 0.6em;
    letter-spacing: 0.5px;
    border-radius: 6px;
}

/* Game Status Indicators */
.game-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-weight: 500;
}

.game-status[data-status="in_progress"] {
    color: #00ff41;
}

.game-status[data-status="finished"] {
    color: rgba(255,255,255,0.6);
}

.game-status[data-status="scheduled"] {
    color: #5dd9f3;
}

/* Game Clock Display */
.game-clock {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Score Display */
.away-score, .home-score {
    min-width: 2rem;
    text-align: right;
    transition: color 0.3s ease, font-weight 0.3s ease;
    font-size: 1.5rem;
    font-weight: 600;
}

.game-card[data-status="in_progress"] .away-score,
.game-card[data-status="in_progress"] .home-score {
    color: #fff;
    text-shadow: 0 0 4px rgba(255,255,255,0.3);
}

/* Team Names */
.game-card .team-name {
    font-weight: 500;
    color: #fff;
    transition: color 0.2s ease;
}

.game-card:hover .team-name {
    color: #fff;
}

/* Mobile Game Header Layout */
.mobile-game-header {
    padding: 1rem 0;
}

.mobile-teams-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mobile-team {
    flex: 1;
    text-align: center;
    max-width: 80px;
}

.mobile-team-abbrev {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.mobile-team-score {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 4px rgba(255,255,255,0.3);
}

.mobile-game-center {
    flex: 0 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
}

.mobile-live-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.mobile-period-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.mobile-time-remaining {
    font-size: 0.85rem;
    color: #d0d0d0;
    font-family: 'Monaco', 'Menlo', monospace;
}

.mobile-scheduled-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    margin-top: 0.5rem;
}

.mobile-date {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
}

.mobile-time {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
}

/* Mobile team hover states */
.mobile-team a:hover .mobile-team-abbrev {
    color: #5dd9f3;
    text-decoration: none;
}

/* Adjust mobile quick actions spacing */
@media (max-width: 767px) {
    .quick-actions {
        gap: 0.25rem;
        margin-bottom: 0.75rem;
    }
    
    .quick-action-btn {
        min-width: auto;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .quick-action-btn span {
        display: none;
    }
    
    .quick-action-btn i {
        font-size: 1.1rem;
    }
}

/* Detail Page Specific Layouts */
.tab-content-wrapper {
    margin-top: 1rem;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-container {
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Watch Options Layout */
.watch-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.service-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.service-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

/* Condensed Game Card Styles */
.game-card-condensed {
    background: #2a2d35;
    border: 1px solid #3a3d45;
    border-radius: 8px;
    opacity: 0.85;
    transform: scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    position: relative; /* For pseudo-element positioning */
}

.game-card-condensed:hover {
    background: #323540;
    border-color: #4a4d55;
    opacity: 1;
    transform: scale(1);
}

.game-card-condensed .card-body {
    padding: 0.875rem !important; /* Slightly increased from 0.75rem */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.game-card-condensed .mb-3 {
    margin-bottom: 1rem !important; /* Increased spacing for better balance */
}

.game-card-condensed .mb-2 {
    margin-bottom: 0.75rem !important; /* Increased spacing between teams */
}

.game-card-condensed .badge {
    font-size: 0.7rem;
    padding: 0.2em 0.4em;
}

.game-card-condensed .text-truncate {
    font-size: 0.9rem;
}

.game-card-condensed .away-score,
.game-card-condensed .home-score {
    font-size: 0.9rem;
}

/* Debug Toggle - Subtle caret */
.debug-toggle {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.2);
    padding: 2px 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    opacity: 0;
}

.game-card:hover .debug-toggle {
    opacity: 1;
}

.debug-toggle:hover {
    color: rgba(255,255,255,0.5);
}

.debug-toggle:focus {
    outline: none;
}

.debug-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.debug-toggle i {
    transition: transform 0.2s ease;
}

/* Debug info panel */
.debug-info {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0 0 8px 8px;
    margin: 0 -1rem -1rem -1rem; /* Negative margins to extend to card edges */
}

/* Dashboard and Statistics Layout */
.dashboard-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.stat-card {
    flex: 1;
    min-width: 150px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid var(--accent);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card.live {
    border-left-color: #dc3545;
}

.stat-card.upcoming {
    border-left-color: #ffc107;
}

.stat-card.favorite {
    border-left-color: #28a745;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* Tab Content for Quick Actions */
.tab-content {
    display: none;
}

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

/* Minimalist Tab Container */
.tab-container {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.02);
}

/* Upcoming Games Layout */
.upcoming-game-list {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.upcoming-game-header {
    padding: 0.75rem 1rem;
    background-color: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--border);
}

.upcoming-game-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color 0.2s;
}

.upcoming-game-item:hover {
    background-color: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

.upcoming-game-item:last-child {
    border-bottom: none;
}

.upcoming-time {
    min-width: 80px;
    text-align: center;
    font-weight: bold;
    color: var(--clock-color);
}

.upcoming-teams {
    flex-grow: 1;
}

/* Date Filter Layout */
.date-filter {
    overflow: hidden;
    padding: 0.75rem;
    margin: 0 auto 1.5rem;
}

.date-navigation {
    margin-bottom: 1rem;
}

.date-navigation .btn-group {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 2px;
    padding-bottom: 8px;
    margin: 0 -0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.date-navigation .btn-group::-webkit-scrollbar {
    display: none;
}

.date-navigation .btn-group {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.date-navigation .btn-group .btn {
    scroll-snap-align: start;
    min-width: 3.5rem;
    flex: 0 0 auto;
    padding: 0.5rem 0.75rem;
}

/* SEO Tab System */
.seo-viewing-tabs {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.seo-tab-nav {
    display: flex;
    background-color: var(--accent);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-dark);
    position: relative;
}

.seo-tab-nav::-webkit-scrollbar {
    height: 4px;
}

.seo-tab-nav::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

.seo-tab-nav::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

/* Fade indicators for scrollable content */
.seo-viewing-tabs {
    position: relative;
}

.seo-viewing-tabs::before,
.seo-viewing-tabs::after {
    content: '';
    position: absolute;
    top: 0;
    width: 20px;
    height: 50px;
    z-index: 10;
    pointer-events: none;
    display: none;
}

.seo-viewing-tabs::before {
    left: 0;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
}

.seo-viewing-tabs::after {
    right: 0;
    background: linear-gradient(270deg, var(--accent) 0%, transparent 100%);
}

@media (max-width: 768px) {
    .seo-viewing-tabs.scrollable::before,
    .seo-viewing-tabs.scrollable::after {
        display: block;
    }
}

.seo-tab-button {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.seo-tab-button:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.seo-tab-button.active {
    color: var(--text-primary);
    border-bottom-color: var(--favorite);
    background-color: rgba(255, 255, 255, 0.1);
}

.seo-tab-content {
    display: none; /* Hide all tabs by default */
    padding: 1.5rem;
    min-height: 200px;
}

.seo-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Watch Tab System */
.watch-tabs {
    margin-top: 1rem;
}

.watch-tabs-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.watch-tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.watch-tab-btn:hover {
    color: var(--text-primary);
}

.watch-tab-btn.active {
    color: var(--text-primary);
    border-bottom-color: var(--badge-primary);
}

.watch-tab-content {
    display: none;
}

.watch-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Unified Tile System */
.tile-nav {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.tile-nav.filters {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
}

.tile-nav.services {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.tile-nav.dates {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
}

.tile-nav.leagues {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.tile-button {
    background-color: var(--bg-secondary);
    border: 1px solid var(--text-primary);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    min-height: 80px;
}

.tile-button.compact {
    padding: 0.75rem 0.5rem;
    min-height: 70px;
}

.tile-button:hover {
    background-color: var(--accent);
    color: var(--text-primary);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}

.tile-button.active {
    background-color: #555555;
    border-color: var(--text-primary);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
    color: var(--text-primary);
    transform: translateY(1px);
}

.tile-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
}

.tile-count {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: inherit;
}

.tile-count.large {
    font-size: 1.8rem;
}

.tile-count.small {
    font-size: 1.2rem;
}

.tile-label {
    font-size: 0.85rem;
    color: inherit;
    text-align: center;
    margin: 0;
}

.tile-label.small {
    font-size: 0.8rem;
}

/* Team Detail Page Layout */
.team-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.team-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
}

.team-meta {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Watch Options Layout */
.watch-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.watch-section {
    margin-bottom: 1rem;
}

.watch-section h4, .watch-section h5 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.watch-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.cta-section {
    text-align: center;
}

/* Today's Game Section */
.todays-game-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid var(--border);
}

.todays-viewing-options {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.todays-viewing-options h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.todays-viewing-options h5 {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.todays-viewing-options .watch-section {
    margin-bottom: 1rem;
}

.todays-viewing-options .badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Viewing Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.option-card {
    background-color: var(--accent);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
    transition: transform 0.2s ease;
}

.option-card:hover {
    transform: translateY(-2px);
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.option-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.option-type {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.875rem;
}

.option-features {
    margin: 0.75rem 0;
}

.option-features p {
    margin: 0.25rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.featured-option {
    display: flex;
    gap: 1rem;
    background-color: var(--accent);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    align-items: center;
}

.featured-icon {
    font-size: 2rem;
}

.featured-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.featured-description {
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.featured-badges {
    display: flex;
    gap: 0.75rem;
    margin: 1rem 0;
}

.tab-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Profile Picture Upload */
.current-profile-pic img {
    border: 3px solid var(--border);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.upload-section {
    max-width: 300px;
    margin: 0 auto;
}

/* Section Headings */
.section-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.section-heading i {
    color: var(--accent-light);
}

/* SEO Service Components */
.seo-service-card {
    background-color: var(--accent);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: transform 0.2s ease;
}

.seo-service-card:hover {
    transform: translateY(-2px);
}

.seo-service-card h5 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.seo-league-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

/* Team Services Components */
.service-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.service-card.primary {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
}

.service-card.exclusive {
    border-color: #ffc107;
    background-color: rgba(255, 193, 7, 0.1);
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.service-badge {
    display: inline-block;
}

.service-badge .badge {
    font-weight: normal;
    padding: 0.5em 1em;
    font-size: 0.875rem;
}

/* Service Box Styles */
.service-box {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.service-box:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.service-box.primary {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.08);
}

.service-box.has-games {
    border-color: rgba(40, 167, 69, 0.5);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.service-name {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.games-badge {
    background-color: #28a745;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.service-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.service-meta {
    margin-bottom: 0.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
}

.service-features li {
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding-left: 1.2rem;
    position: relative;
    margin-bottom: 0.3rem;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.next-game-info {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-restrictions {
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-body {
        padding: 0.75rem;
    }

    .btn-group .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .date-navigation + div .btn-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .date-navigation + div .btn {
        flex: 1;
        white-space: nowrap;
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    .seo-tab-button {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
        min-width: auto;
        flex: 0 0 auto;
    }
    
    .seo-tab-nav {
        gap: 0.25rem;
        padding: 0 0.5rem;
    }
    
    /* Option to use icons on mobile */
    .seo-tab-button .tab-icon {
        display: inline-block;
        margin-right: 0.25rem;
    }
    
    .seo-tab-button .tab-text {
        display: inline;
    }
    
    /* Ultra small screens - icons only */
    @media (max-width: 480px) {
        .seo-tab-button .tab-text {
            display: none;
        }
        
        .seo-tab-button .tab-icon {
            margin-right: 0;
            font-size: 1.1rem;
        }
        
        .seo-tab-button {
            min-width: 50px;
        }
    }
    
    .seo-tab-content {
        padding: 1rem;
    }
    
    .seo-league-services {
        grid-template-columns: 1fr;
    }

    .watch-options-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .team-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-option {
        flex-direction: column;
        text-align: center;
    }
    
    .watch-tabs-nav {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .watch-tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .tile-nav.filters {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 0.5rem;
    }
    
    .tile-nav.services {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 0.875rem;
    }
    
    .tile-nav.dates {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 0.4rem;
    }
    
    .tile-nav.leagues {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .tile-button {
        padding: 0.75rem 0.5rem;
        min-height: 70px;
    }
    
    .tile-button.compact {
        padding: 0.6rem 0.4rem;
        min-height: 60px;
    }
    
    .tile-count {
        font-size: 1.3rem;
    }
    
    .tile-count.large {
        font-size: 1.5rem;
    }
    
    .tile-count.small {
        font-size: 1.1rem;
    }
    
    .tile-label {
        font-size: 0.8rem;
    }
    
    .tile-label.small {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .tile-nav.filters {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tile-nav.services {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .tile-nav.dates {
        grid-template-columns: repeat(7, 1fr);
    }
    
    .tile-nav.leagues {
        grid-template-columns: repeat(2, 1fr);
    }
}