/* components.css - Reusable Components: Cards, Buttons, Badges, Forms, Navigation */

/* Navigation Components */
.navbar-dark .nav-link {
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
    border-bottom-color: var(--text-primary);
}

/* Modern Navigation Styles */
.navbar-modern {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
}

/* Center navigation absolutely */
.navbar-modern .container {
    position: relative;
}

.navbar-center-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* Mobile Offcanvas Menu */
.offcanvas-modern {
    background-color: #2a2d35 !important;
    color: #fff;
}

.offcanvas-modern .offcanvas-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.offcanvas-modern .offcanvas-title {
    color: #fff;
}

.offcanvas-modern .nav-link-mobile {
    color: rgba(255,255,255,0.8);
    padding: 0.75rem 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.offcanvas-modern .nav-link-mobile:hover {
    background-color: rgba(255,255,255,0.05);
    color: #fff;
}

.offcanvas-modern .nav-link-mobile.active {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}

.navbar-brand-modern {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.navbar-brand-modern:hover {
    color: #fff;
    text-decoration: none;
}

.brand-gradient {
    background: linear-gradient(135deg, #20b2aa 0%, #4da3ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link-modern {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    padding: 0.625rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link-modern:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
    text-decoration: none;
}

.nav-link-modern.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.btn-modern-primary {
    background: #fff;
    color: #000;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-modern-primary:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.1);
    color: #000;
    text-decoration: none;
}

/* Desktop screens - absolute center positioning */
@media (min-width: 992px) {
    .navbar-modern {
        min-height: 70px; /* Ensure consistent height */
    }
}

/* Smaller screens - disable absolute positioning */
@media (max-width: 991px) {
    .navbar-center-nav {
        position: relative !important;
        left: auto !important;
        transform: none !important;
    }
}

/* Mobile Adjustments */
@media (max-width: 575px) {
    .navbar-modern {
        padding: 0.75rem 0;
    }
    
    .navbar-brand-modern {
        font-size: 1.25rem;
    }
    
    .nav-link-modern {
        font-size: 0.875rem;
        padding: 0.375rem 0.5rem;
    }
    
    .btn-modern-primary {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

/* Mobile Navigation */
.nav-link-mobile {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    padding: 0.75rem 0;
    display: block;
    transition: all 0.2s ease;
}

.nav-link-mobile:hover {
    color: #fff;
    padding-left: 0.5rem;
    text-decoration: none;
}

.nav-link-mobile.active {
    color: #20b2aa;
    font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    margin-left: 0.75rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}


/* Theme Buttons - From Color Palette */
.btn-primary-theme {
    background: rgba(255,255,255,0.9);
    border: none;
    color: #000;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-theme:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.1);
    color: #000;
    text-decoration: none;
}

.btn-secondary-theme {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary-theme:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    color: white;
    text-decoration: none;
}

.btn-outline-theme {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #d0d0d0;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-theme:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
    color: white;
    text-decoration: none;
}

/* Scrollable subnavs */
.sports-subnav .navbar-nav,
.league-subnav .navbar-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sports-subnav .navbar-nav::-webkit-scrollbar,
.league-subnav .navbar-nav::-webkit-scrollbar {
    display: none;
}

.sports-subnav .nav-link,
.league-subnav .nav-link {
    flex-shrink: 0;
    padding: 0.75rem 1rem;
}

.league-subnav .nav-link {
    padding: 0.75rem 1.25rem;
}

.sports-subnav .navbar-collapse,
.league-subnav .navbar-collapse {
    display: flex !important;
}

/* Quick Actions - Matte Black Transparency Theme */
.quick-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.quick-action-btn {
    flex: 1;
    min-width: 150px;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    color: #d0d0d0;
    backdrop-filter: blur(10px);
    font-weight: 500;
    white-space: normal;
    word-break: keep-all;
}

.quick-action-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.quick-action-btn.active {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

.quick-action-btn:disabled,
.quick-action-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255,255,255,0.02);
    border-color: rgba(255,255,255,0.05);
}

.quick-action-btn:disabled:hover,
.quick-action-btn.disabled:hover {
    background: rgba(255,255,255,0.02);
    border-color: rgba(255,255,255,0.05);
    transform: none;
}

.quick-action-btn i {
    font-size: 1rem;
}

/* Mobile adjustments for quick action buttons */
@media (max-width: 576px) {
    /* Date filter quick actions - horizontal scroll */
    .quick-actions:first-of-type {
        gap: 0.375rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 0 1rem;
    }
    
    .quick-actions:first-of-type::-webkit-scrollbar {
        display: none;
    }
    
    /* League filter quick actions - match stat card layout */
    .quick-actions:not(:first-of-type) {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .quick-actions:not(:first-of-type) .quick-action-btn {
        flex: 1;
        min-width: calc(50% - 0.25rem);  /* 2 columns with gap */
        max-width: calc(50% - 0.25rem);
    }
    
    /* Home page quick actions - special handling */
    .home-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .home-actions .quick-action-btn {
        flex: 1;
        min-width: calc(50% - 0.25rem);  /* 2 columns with gap */
        max-width: calc(50% - 0.25rem);
    }
    
    /* Date buttons */
    .quick-actions:first-of-type .quick-action-btn {
        min-width: auto;
        flex: 0 0 auto;
        padding: 0.5rem 0.75rem;
    }
    
    .quick-action-btn.date-btn {
        min-width: 50px;
        padding: 0.5rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .quick-action-btn span {
        display: inline-block;
        line-height: 1.2;
        vertical-align: middle;
    }
    
    /* Handle inline league counts on mobile */
    .quick-action-btn small {
        font-size: 0.75rem;
        opacity: 0.8;
        display: inline;
        margin-left: 2px;
    }
    
    /* Date buttons specific styling */
    .quick-action-btn.date-btn span {
        display: block !important;
        text-align: center;
    }
    
    /* Hide/show date spans based on screen size */
    .quick-action-btn.date-btn .date-desktop {
        display: none !important;
    }
    
    .quick-action-btn.date-btn .date-mobile {
        display: block !important;
        font-size: 1rem;
        font-weight: 600;
    }
}

/* Desktop date display */
@media (min-width: 577px) {
    .quick-action-btn.date-btn .date-desktop {
        display: block !important;
    }
    .quick-action-btn.date-btn .date-mobile {
        display: none !important;
    }
}

/* Live Indicators - Glowing Animation */
.live-indicator {
    width: 8px;
    height: 8px;
    background: #00ff41;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-glow 2s infinite;
    box-shadow: 0 0 0 2px rgba(0, 255, 65, 0.2);
    flex-shrink: 0;
}

/* Stat Cards - Used in service details and dashboards */
.stat-card-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
}

.stat-card-primary .stat-value,
.stat-card-primary .stat-label,
.stat-card-primary .stat-detail {
    color: white !important;
}

.stat-detail {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(0, 255, 65, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 65, 0);
    }
}


/* Baseball-specific badge with green theme */
.badge-baseball {
    background: rgba(40, 167, 69, 0.12);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #5dd68d;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Baseball outs display */
.baseball-outs {
    display: inline-flex;
    gap: 3px;
    margin-left: 0.25rem;
}

.baseball-outs span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(40, 167, 69, 0.3);
    display: inline-block;
}

.baseball-outs span.filled {
    background: #5dd68d;
}

.badge-minimal {
    background: rgba(255,255,255,0.02);
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    border: 1px solid rgba(255,255,255,0.15);
    font-weight: 400;
}

.badge-solid {
    background: #2a2d35;
    color: #fff;
    border: 1px solid #3a3d45;
}


/* Game Status Badge System */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Live Game Badge */
.badge-live {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b7a;
}

/* Scheduled Game Badge */
.badge-scheduled {
    background: rgba(13, 110, 253, 0.12);
    border: 1px solid rgba(13, 110, 253, 0.2);
    color: #6cb3ff;
}

/* Final Game Badge */
.badge-final {
    background: rgba(255,255,255,0.02);
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.15);
    font-weight: 400;
}

/* Service badge colors */
.badge-service-primary {
    background: rgba(32, 178, 170, 0.2);
    color: #20b2aa;
    border: 1px solid rgba(32, 178, 170, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
}

.badge-service-secondary {
    background: rgba(0, 123, 255, 0.2);
    color: #4da3ff;
    border: 1px solid rgba(0, 123, 255, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
}

.badge-service-tertiary {
    background: rgba(108, 117, 125, 0.2);
    color: #adb5bd;
    border: 1px solid rgba(108, 117, 125, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
}

/* Live Indicator Dot */
.live-indicator {
    width: 8px;
    height: 8px;
    background: #00ff41;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.7);
    }
    70% {
        opacity: 1;
        box-shadow: 0 0 0 6px rgba(0, 255, 65, 0);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 255, 65, 0);
    }
}

/* League Text Styling */
.league-text {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Card Components */
.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.15);
}

.card-header {
    background-color: var(--accent);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
}

.card-header h3, .card-header h2 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

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

/* Button Components */
.btn-primary {
    background-color: var(--badge-primary);
    color: var(--text-primary);
    border: 1px solid var(--badge-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    color: var(--text-primary);
}

.btn-primary.btn-pressed {
    background-color: var(--accent-light);
    border-color: var(--accent-light);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: var(--accent);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: var(--accent-light);
}

.btn-outline {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background-color: var(--accent);
}

.btn-sm {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

.btn-follow {
    background-color: var(--accent);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    min-width: 24px;
    transition: all 0.2s ease;
}

.btn-follow:hover {
    background-color: var(--accent-light);
}

.btn-follow.btn-pressed {
    background-color: var(--favorite);
    color: var(--bg-primary);
}

.btn-dark-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
}

.btn-dark-card:hover {
    background-color: var(--bg-secondary);
    border-color: var(--accent-light);
    color: var(--text-primary);
}

.btn-black {
    background-color: var(--bg-primary);
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
}

.btn-black:hover {
    background-color: var(--bg-primary);
    border-color: var(--accent-light);
    color: var(--text-primary);
}

/* Minimalist Follow/Add Buttons */
.btn-minimal {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: bold;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.btn-minimal:hover {
    background-color: var(--accent);
    opacity: 1;
    transform: scale(1.1);
}

.btn-minimal.btn-pressed {
    color: var(--favorite);
    opacity: 1;
}

.btn-minimal.btn-pressed:hover {
    background-color: var(--accent);
    color: var(--favorite);
}

/* Badge Components */
.badge {
    font-size: 0.8rem;
    padding: 0.25em 0.4em;
    font-weight: 700;
}

.badge.bg-secondary {
    background-color: var(--accent) !important;
}

.badge-primary {
    background-color: var(--badge-primary) !important;
}

/* Custom badge classes for service cards */
.badge-success {
    background-color: #28a745 !important;
    color: white !important;
}

.badge-exclusive {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

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

.price-badge, .option-badge {
    background-color: var(--badge-primary);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.feature-badge {
    background-color: var(--favorite);
    color: var(--bg-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.league-badge {
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    background-color: var(--accent);
}

.league-badge.mlb {
    background-color: #041E42;
}

.league-badge.nba {
    background-color: #1D428A;
}

.league-badge.nhl {
    background-color: #000000;
}

/* Progress Components */
.progress {
    height: 4px;
    border-radius: 0;
}

.progress-bar {
    background-color: var(--badge-primary);
}

/* Form Components */
.form-control {
    background-color: var(--bg-secondary);
    border-color: var(--border);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: var(--bg-secondary);
    border-color: var(--accent-light);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1);
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.invalid-feedback {
    color: #dc3545;
    display: block;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.follow-form {
    display: inline;
}

/* Alert Components */
.alert-theme {
    background: rgba(255,193,7,0.1);
    border: 1px solid rgba(255,193,7,0.3);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: #ffc107;
    margin-bottom: 1rem;
}

.alert-theme.success {
    background: rgba(40,167,69,0.1);
    border-color: rgba(40,167,69,0.3);
    color: #28a745;
}

.alert-theme.danger {
    background: rgba(220,53,69,0.1);
    border-color: rgba(220,53,69,0.3);
    color: #dc3545;
}

.alert-theme.info {
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid rgba(13, 110, 253, 0.3);
    color: #6cb3ff;
}

/* Watch Button Components - Channel vs Service */
.btn-channel {
    background-color: var(--btn-channel);
    color: var(--text-primary);
    border: 1px solid var(--btn-channel);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-block;
}

.btn-channel:hover {
    background-color: var(--btn-channel-hover);
    border-color: var(--btn-channel-hover);
    transform: translateY(-1px);
    color: var(--text-primary);
}

.btn-service {
    background-color: var(--btn-service);
    color: var(--text-primary);
    border: 1px solid var(--btn-service);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-block;
}

.btn-service:hover {
    background-color: var(--btn-service-hover);
    border-color: var(--btn-service-hover);
    transform: translateY(-1px);
    color: var(--text-primary);
}

.btn-outline-channel {
    background: none;
    border: 1px solid var(--btn-channel);
    color: var(--btn-channel);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-channel:hover {
    background-color: var(--btn-channel);
    border-color: var(--btn-channel);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-outline-service {
    background: none;
    border: 1px solid var(--btn-service);
    color: var(--btn-service);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-service:hover {
    background-color: var(--btn-service);
    border-color: var(--btn-service);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* Small button variants */
.btn-channel.btn-sm,
.btn-service.btn-sm,
.btn-outline-channel.btn-sm,
.btn-outline-service.btn-sm {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Broadcast Button Components */
.broadcast-buttons {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: hidden;
    gap: 0.25rem;
}

.broadcast-btn {
    font-size: clamp(0.65rem, 2vw, 0.875rem);
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
    padding: 0.25rem 0.5rem;
}

/* Disabled broadcast buttons for future games */
span.btn-channel.broadcast-btn,
span.btn-service.broadcast-btn {
    background-color: #4a4a4a !important;
    border-color: #5a5a5a !important;
    color: #999 !important;
    cursor: not-allowed;
    opacity: 0.8;
}

span.btn-channel.broadcast-btn:hover,
span.btn-service.broadcast-btn:hover {
    background-color: #4a4a4a !important;
    border-color: #5a5a5a !important;
    transform: none;
}

/* Game Status Animations */
/* Removed pulse animation from entire game status - only live indicator should pulse */

/* Team Link Components */
.team-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.team-link:hover {
    color: var(--accent-light);
}

/* Quick Actions Components - Default: Matte Black with Transparency */
.quick-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.quick-action-btn {
    flex: 1;
    min-width: 150px;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    color: #d0d0d0;
}

.quick-action-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
}

.quick-action-btn.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-weight: 500;
}

.quick-action-btn i {
    font-size: 1.2rem;
}

/* Game Card Components - Default: Cool Steel Grey */
.game-card {
    background: #2a2d35;
    border: 1px solid #3a3d45;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.game-card:hover {
    background: #323540;
    border-color: #4a4d55;
}


/* Coming Soon Components */
.coming-soon-wrapper {
    padding: 2rem 0;
}

.coming-soon-box {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.coming-soon-icon {
    font-size: 3rem;
    color: var(--bs-primary);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.coming-soon-title {
    color: var(--bs-white);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.coming-soon-text {
    color: var(--bs-gray-400);
    margin-bottom: 0;
}

/* Animation */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.coming-soon-icon {
    animation: pulse 2s ease-in-out infinite;
}

/* Offseason Placeholder - Reuses coming-soon styles */
.offseason-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-top: 1rem;
}

/* Service Cards - Uniform size for team details */
.service-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.service-box:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-box.primary {
    border-color: var(--primary);
    background-color: rgba(13, 110, 253, 0.05);
}

.service-box.local {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

.service-box.exclusive {
    border-color: var(--warning);
    background-color: rgba(255, 193, 7, 0.05);
}

.service-header {
    margin-bottom: 0.75rem;
}

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

.service-badges {
    min-width: 120px;
}

.service-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    min-height: 1.4rem; /* Ensures consistent space even when empty */
}

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

.service-features li {
    color: var(--text-muted);
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.25rem;
}

.service-features li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.service-footer {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

/* ==========================================
   Share Button Styles
   ========================================== */

.share-menu {
    position: relative;
    display: inline-block;
}

.share-button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.share-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.share-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.share-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: none;
}

/* Arrow pointing down */
.share-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--bg-secondary);
}

.share-dropdown button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: none;
    background: none;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: background 0.2s ease;
}

.share-dropdown button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.share-dropdown button i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* Divider in dropdown */
.share-dropdown .dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* Position adjustments for different contexts */

/* Game card share button */
.game-card .share-menu {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.game-card .share-button {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.7);
}

/* League/Team page header share button */
.page-header .share-menu {
    margin-left: 1rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .share-dropdown {
        bottom: auto;
        top: calc(100% + 8px);
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .share-dropdown::after {
        top: auto;
        bottom: 100%;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        border-top: none;
        border-bottom: 8px solid var(--bg-secondary);
    }
    
    .share-button {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Loading state */
.share-button.loading {
    pointer-events: none;
    position: relative;
}

.share-button.loading i {
    visibility: hidden;
}

/* Share section wrapper for capturing */
.share-capture-section {
    position: relative;
}

/* Hide elements during capture */
.capturing .share-menu,
.capturing .admin-controls,
.capturing .debug-info {
    display: none !important;
}

/* Special styling for captured elements */
.capture-header {
    background: var(--bg-primary);
    padding: 2rem;
    text-align: center;
    border-bottom: 2px solid var(--primary);
}

.capture-header h1 {
    margin: 0;
    color: var(--text-primary);
    font-size: 2rem;
}

.capture-header .subtitle {
    color: var(--primary);
    margin-top: 0.5rem;
    font-size: 1.125rem;
}

/* Watermark for captured images */
.capture-watermark {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    color: var(--primary);
    font-size: 0.875rem;
    opacity: 0.8;
}

/* More Games Section Styles */
.more-games-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
}

.more-games-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.more-games-section .section-header h2 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
}

.more-games-section .btn-view-all {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.more-games-section .btn-view-all:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

/* Related Games Component Styles */
.related-games-section {
    margin-bottom: 2rem;
}

.related-games-title {
    color: #999;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.related-games-mini {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
}

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

.game-teams {
    margin-bottom: 0.5rem;
}

.team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.team-row:last-child {
    margin-bottom: 0;
}

.team-abbrev {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    font-weight: 500;
}

.team-score {
    font-weight: 600;
    color: #fff;
    font-size: 0.875rem;
    margin-left: auto;
}

.game-status-container {
    text-align: center;
    margin-top: auto;
}

.game-status-container .badge {
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
}

.game-status-container .game-clock {
    font-size: 0.625rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .related-games-mini {
        padding: 0.5rem;
        min-height: 90px;
    }
    
    .team-abbrev,
    .team-score {
        font-size: 0.75rem;
    }
}