/* Games To Watch - Custom Styles */

:root {
    --primary-color: #00809D;       /* Teal/Blue */
    --background-color: #FCECDD;    /* Cream/Beige */
    --accent-color: #FF7601;        /* Orange */
    --secondary-color: #F3A26D;     /* Light Orange/Peach */
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --shadow-light: rgba(0, 128, 157, 0.1);
    --shadow-medium: rgba(0, 128, 157, 0.15);
    --shadow-strong: rgba(0, 128, 157, 0.25);
}

/* General Styles */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--background-color) 0%, #f8f4ed 100%);
    color: var(--text-dark);
    min-height: 100vh;
}

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Game Cards */
.game-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px var(--shadow-light);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    overflow: hidden;
    position: relative;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px var(--shadow-medium);
    border-color: var(--accent-color);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.game-card:hover::before {
    left: 100%;
}

/* Clickable card hover effects */
.clickable-card {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.clickable-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px var(--shadow-strong);
}

/* Live Game Animation */
.live-game {
    border: 2px solid var(--success-color) !important;
    position: relative;
}


/* Live Indicator */
.live-indicator {
    animation: live-pulse 1.5s infinite;
    filter: drop-shadow(0 0 4px currentColor);
}

@keyframes live-pulse {
    0%, 50% {
        opacity: 1;
        transform: scale(1);
    }
    51%, 100% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* Team Styles */
.team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.team-logo:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Larger team logos for game details */
.team-logo-large {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 12px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.team-logo-large:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
}

/* Player headshots */
.player-headshot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.player-headshot-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.team-name {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.3;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.team-abbrev {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-score {
    font-size: 1.5rem;
    font-weight: 700;
    min-width: 35px;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

.team-score:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(255, 118, 1, 0.3));
}

.score {
    color: var(--text-dark);
    font-weight: 700;
}

/* Team Section */
.team-section {
    padding: 6px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.team-section:hover {
    background: rgba(0, 128, 157, 0.05);
    transform: translateX(4px);
}

/* Game Status Colors */
.bg-success {
    background: linear-gradient(135deg, var(--success-color), #2ecc71) !important;
    color: white !important;
}

.border-success {
    border-color: var(--success-color) !important;
}

.bg-secondary {
    background: linear-gradient(135deg, var(--text-light), #95a5a6) !important;
    color: white !important;
}

.border-secondary {
    border-color: var(--text-light) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), #3498db) !important;
    color: white !important;
}

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

/* Card Layout */
.card-header {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 16px 16px 0 0 !important;
    border: none !important;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0.9;
}

.card-header > * {
    position: relative;
    z-index: 1;
}

.card-body {
    padding: 0.875rem 1rem;
    background: transparent;
}

.card-footer {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    background: transparent !important;
    border: none !important;
    color: var(--text-light);
}

/* Modern card styling */
.card {
    border: none !important;
    border-radius: 16px !important;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color), #3498db) !important;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 4px 20px var(--shadow-medium);
    margin-bottom: 2rem !important;
    transition: all 0.3s ease;
}

header h1 {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

header .text-end div {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.25rem;
}

/* PWA Mode - Mobile App Style */
.pwa-mode header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 0 0 16px 16px;
    padding: 0.5rem 0 !important;
    margin-bottom: 1rem !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px var(--shadow-medium);
}

.pwa-mode header h1 {
    font-size: 1.25rem !important;
    margin-bottom: 0;
}

.pwa-mode header .btn {
    padding: 0.5rem !important;
    font-size: 1rem !important;
    min-width: auto;
    aspect-ratio: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pwa-mode header .btn i {
    font-size: 1rem;
    margin: 0 !important;
}

/* Hide button text in PWA mode, keep only icons */
.pwa-mode header .btn {
    font-size: 0 !important;
    line-height: 0;
}

.pwa-mode header .btn i {
    font-size: 1rem !important;
    line-height: 1;
}

.pwa-mode header .gap-2 {
    gap: 0.35rem !important;
}

/* Adjust content spacing when header is sticky */
.pwa-mode .container-fluid {
    padding-top: 0;
}

/* Container and layout improvements */
.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Enhanced footer */
footer {
    background: linear-gradient(135deg, rgba(0, 128, 157, 0.1), rgba(243, 162, 109, 0.1)) !important;
    border-radius: 24px 24px 0 0;
    border-top: 2px solid rgba(0, 128, 157, 0.2) !important;
    margin-top: 3rem !important;
}

/* Last updated timestamp styling */
.last-updated {
    font-size: 0.7rem !important;
    opacity: 0.7;
    margin-bottom: 0 !important;
    font-weight: 300;
    letter-spacing: 0.2px;
    color: var(--text-light) !important;
}

/* Summary card improvements */
.bg-light {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(252, 236, 221, 0.3)) !important;
    border: 1px solid rgba(0, 128, 157, 0.1);
    border-radius: 16px !important;
    box-shadow: 0 4px 12px var(--shadow-light);
}

/* Mobile team logos for game details */
.team-logo-mobile {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.15));
}

.team-logo-mobile:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

/* Mobile game info section */
.mobile-game-info {
    background: linear-gradient(135deg, rgba(0, 128, 157, 0.02), rgba(243, 162, 109, 0.02));
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(0, 128, 157, 0.1);
}

.broadcast-section {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 128, 157, 0.1);
}

.broadcast-section .badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
    margin: 0.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0 0.5rem;
    }

    .team-logo {
        width: 24px;
        height: 24px;
    }

    .team-logo-large {
        width: 50px;
        height: 50px;
    }

    .team-name {
        font-size: 0.8rem;
    }

    .team-score {
        font-size: 1.25rem;
    }

    .card-header {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    .game-card:hover {
        transform: translateY(-4px) scale(1.01);
    }

    /* Mobile-specific adjustments for game details */
    .mobile-game-info {
        margin-top: 0.5rem;
    }

    .mobile-game-info i.bi {
        font-size: 1.1rem;
    }

    /* Better spacing for mobile badges */
    .badge.fs-6 {
        font-size: 0.9rem !important;
        padding: 0.5rem 0.8rem;
    }

    /* Improve mobile team layout spacing */
    .d-md-none h6 {
        font-size: 0.9rem;
        font-weight: 600;
        line-height: 1.2;
    }

    .d-md-none .h3 {
        font-size: 1.8rem;
        font-weight: 700;
    }
}

@media (max-width: 576px) {
    header h1 {
        font-size: 1.5rem;
    }

    .team-name {
        font-size: 0.75rem;
    }

    .team-score {
        font-size: 1.1rem;
    }

    /* Extra small screen adjustments for game details */
    .team-logo-mobile {
        width: 45px;
        height: 45px;
    }

    .d-md-none h6 {
        font-size: 0.8rem;
    }

    .d-md-none .h3 {
        font-size: 1.6rem;
    }

    .mobile-game-info {
        padding: 0.75rem;
    }

    .broadcast-section .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .badge.fs-6 {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.7rem;
    }
}

/* No Games State */
.display-1 {
    font-size: 3rem;
    opacity: 0.5;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
    filter: blur(1px);
}

/* High Priority Game Styling */
.game-card.high-priority {
    border-width: 2px;
    border-color: var(--accent-color) !important;
}

.game-card.playoff {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(252, 236, 221, 0.8));
    border: 2px solid var(--accent-color) !important;
    position: relative;
}

.game-card.playoff::before {
    background: linear-gradient(90deg, transparent, rgba(255, 118, 1, 0.2), transparent);
}

/* VS Divider Enhancement */
.text-center .text-muted.small {
    position: relative;
    padding: 0 1rem;
    font-weight: 600;
    color: var(--text-light) !important;
}

.text-center .text-muted.small::before,
.text-center .text-muted.small::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--text-light), transparent);
}

.text-center .text-muted.small::before {
    left: 0;
}

.text-center .text-muted.small::after {
    right: 0;
}

/* Compact grid layout - fit more cards per row */
@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (min-width: 1200px) {
    .col-lg-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (min-width: 1400px) {
    .col-lg-4 {
        flex: 0 0 16.666%;
        max-width: 16.666%;
    }
}

/* Alert styling */
.alert-danger {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(231, 76, 60, 0.05));
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 12px;
    color: var(--danger-color);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Additional animations for interactive elements */
.bi {
    transition: all 0.3s ease;
}

.bi:hover {
    transform: scale(1.1);
}

/* Latest Goals Page Styles */
.goal-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px var(--shadow-light);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    overflow: hidden;
    position: relative;
}

.goal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--shadow-medium);
    border-color: var(--success-color);
}

.team-logo-small {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.team-logo-small:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.game-context {
    border: 1px solid rgba(0, 128, 157, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(252, 236, 221, 0.2));
}

.scorer-info {
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.05), rgba(39, 174, 96, 0.02));
    border-radius: 12px;
    border: 1px solid rgba(39, 174, 96, 0.1);
}

.assists-info {
    padding: 0.5rem;
    background: linear-gradient(135deg, rgba(0, 128, 157, 0.03), rgba(0, 128, 157, 0.01));
    border-radius: 8px;
    border: 1px solid rgba(0, 128, 157, 0.05);
}

/* Clickable Cards */
.clickable-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px var(--shadow-medium);
    border-color: var(--success-color);
}

.clickable-card:active {
    transform: translateY(-2px) scale(1.01);
    transition: all 0.1s ease;
}

/* Remove default link styles on clickable cards */
a.text-decoration-none:hover .clickable-card .card-header,
a.text-decoration-none:hover .clickable-card .card-body,
a.text-decoration-none:hover .clickable-card .card-footer {
    color: inherit;
}

/* Add subtle visual feedback for tap/click */
@media (hover: hover) {
    .clickable-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(39, 174, 96, 0.05), rgba(0, 128, 157, 0.05));
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        border-radius: 16px;
    }

    .clickable-card:hover::after {
        opacity: 1;
    }
}

/* 5 Cards Per Row Layout */
@media (min-width: 1200px) {
    .goal-card-5 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}