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

.game-card-clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Winner card specific styles - extends global card styles */
.winner-card {
    height: 100%;
    min-height: 520px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    /* Explicit fallback colors in case CSS variables aren't loaded */
    background-color: #FFFFFF;
    background-color: var(--bg-card, #FFFFFF);
    border: 1px solid #DEE2E6;
    border: 1px solid var(--border-color, #DEE2E6);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    /* GPU acceleration for smooth hover animations */
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Override global hover for stronger effect on winner cards - GPU Accelerated */
.winner-card:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: var(--shadow-lg), 0 0 15px rgba(var(--card-bg-color-rgb), 0.1);
}

.winner-card::before, .prediction-card::before,
.winner-card::after, .prediction-card::after {
    content: none;
}

/* Team logo styles now in global.css - only page-specific overrides here */

.away-team {
    margin-right: 8px; /* Tighter margin for picks page */
    transform: none; /* Remove perspective transform */
}

.home-team {
    margin-left: 8px; /* Tighter margin for picks page */
    transform: none; /* Remove perspective transform */
}

.winner-card:hover .away-team, .prediction-card:hover .away-team {
    transform: none; /* Remove hover transform */
}

.winner-card:hover .home-team, .prediction-card:hover .home-team {
    transform: none; /* Remove hover transform */
}

/* Legacy vs-badge for backward compatibility - prefer vs-unified classes */

/* Score display styles now in global.css */

/* Team name styles now in global.css */

.team-location {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Spread display specific overrides */
.winner-card .spread-display,
.prediction-card .spread-display {
    padding: 12px 15px !important;
    margin-top: 15px !important;
    z-index: 1;
}

.winner-card .team-info.edge-ai-pick,
.prediction-card .team-info.edge-ai-pick {
    /* Reduce or remove transform scale */
    transform: none;
    /* Adjust box shadow */
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.1); /* Lighter shadow */
    /* Adjust border */
    border: 1px solid rgba(255, 215, 0, 0.2); /* Lighter border */
    /* Adjust background gradient opacity */
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 165, 0, 0.05));
    padding: 0.5rem; /* Add some padding */
    border-radius: 8px; /* Smaller border radius */
}

.winner-card .edge-ai-banner,
.prediction-card .edge-ai-banner {
    /* Adjust banner position and size for smaller cards */
    top: 4px;
    padding: 0.1rem 0.3rem;
    font-size: 0.65rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 4px rgba(255, 215, 0, 0.2);
}

.winner-card .team-info.edge-ai-pick .team-name,
.prediction-card .team-info.edge-ai-pick .team-name {
    /* Adjust text color for better contrast on lighter background */
    color: var(--text-primary); /* Use primary text color */
    text-shadow: none; /* Remove text shadow */
}

.winner-card .team-info.edge-ai-pick .highlighted-team img,
.prediction-card .team-info.edge-ai-pick .highlighted-team img {
    /* Adjust border and shadow on the logo itself */
    border: 1px solid rgba(255, 215, 0, 0.3); /* Lighter border */
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2); /* Lighter shadow */
}

.winner-card .team-info.edge-ai-pick::before,
.prediction-card .team-info.edge-ai-pick::before {
    /* Adjust the top border shimmer */
    height: 2px; /* Thinner */
}

/* Team logo sizing handled by global styles */

.winner-card .matchup,
.prediction-card .matchup {
    font-size: 1rem; /* Smaller font size */
    margin-bottom: 10px; /* Reduce margin */
}

.winner-card .prediction,
.prediction-card .prediction {
    font-size: 1em; /* Smaller font size */
    padding: 0.75rem; /* Smaller padding */
    border-left-width: 2px; /* Thinner border */
}

.winner-card .game-details,
.prediction-card .game-details {
    margin-top: 10px; /* Reduce margin */
}

.winner-card .spread-display .badge,
.prediction-card .spread-display .badge {
    font-size: 0.65rem; /* Smaller font size for spread badge */
    padding: 3px 8px; /* Smaller padding */
}

/* Spread badge styles now in global.css */

/* Base Edge-AI Pick Highlighting - GPU Accelerated */
.team-info.edge-ai-pick {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 12px;
    padding: 1rem !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.25);
    transform: scale(1.05) translateZ(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    /* GPU acceleration */
    will-change: transform, box-shadow;
    backface-visibility: hidden;
}

.team-info.edge-ai-pick:hover {
    transform: scale(1.08) translateZ(0);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.35);
}


.edge-ai-banner {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.6rem;
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #333;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    z-index: 10;
}

.edge-ai-banner i {
    font-size: 0.8rem;
}

.team-info.edge-ai-pick .team-name-label {
    color: var(--text-primary);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.team-info.edge-ai-pick .team-logo {
    border: 3px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Locked/Unlocked Game Card States - GPU Accelerated */
.unlocked-game-card {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f9f0 100%);
    border: 1px solid #28a745 !important;
    box-shadow: 0 0 0 1px rgba(40, 167, 69, 0.1), 0 4px 12px rgba(40, 167, 69, 0.15);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.unlocked-game-card:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2), 0 8px 20px rgba(40, 167, 69, 0.25);
}

.locked-game-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px dashed #dc3545 !important;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.locked-game-card:hover {
    border-color: #ff6b7a !important;
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2), 0 8px 20px rgba(220, 53, 69, 0.2);
}

/* Corner lock icon */
.corner-lock-icon {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    z-index: 10;
    font-size: 1.25rem;
}

/* Locked content overlay */
.locked-content {
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
    transition: filter 0.3s ease;
}

.locked-pick-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.locked-pick-overlay:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* New Card Layout Styles */

/* Team Matchup Section */
.team-matchup-section {
    flex-shrink: 0;
    padding: 1rem 0;
}

.team-display {
    flex: 1;
    max-width: 200px;
}

.team-name-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Team logo sizing now centralized in global.css */
/* Using .team-logo-large class from global styles */
.team-logo.team-logo-large {
    /* GPU acceleration for smooth animations */
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.team-logo.team-logo-large:hover {
    transform: scale(1.08) translateZ(0);
    box-shadow: 0 6px 16px var(--player-shadow);
}

.vs-indicator {
    flex-shrink: 0;
    margin: 0 1.5rem;
    padding-top: 60px; /* Align with middle of logos */
}

.vs-unified {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: lowercase;
    font-style: italic;
    opacity: 0.7;
}

/* Score Display Section */
.score-display-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 0;
    border: 1px solid var(--border-color);
}

.final-score {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    min-width: 60px;
    text-align: center;
}

.score-dash {
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0 0.5rem;
}

.score-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* Edge-AI Pick Section */
.edge-ai-pick-section {
    flex-shrink: 0;
    margin: 0.5rem 0;
}

.edge-ai-pick-badge {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    display: inline-block;
    font-size: 0.9rem;
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.edge-ai-pick-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

/* Line/Spread Section */
.line-section {
    flex-shrink: 0;
    margin: 0;
}

.spread-badge {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
}

.spread-badge.has-favorite {
    background: linear-gradient(135deg, #1a472a 0%, #2d5f3e 100%);
    border: 1px solid #3d7f5e;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

/* Game Info Section */
.game-info-section {
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 1rem;
}

/* Large screens - use XL logo size for enhanced visual impact */
@media (min-width: 1200px) {
    .team-logo.team-logo-large {
        width: var(--logo-xl);
        height: var(--logo-xl);
    }
}

/* Extra large screens (1400px+) - slightly more compact logos */
@media (min-width: 1400px) {
    .team-logo.team-logo-large {
        width: 100px;
        height: 100px;
    }
}

/* Ultra-wide screens (1600px+) - compact logos for higher density */
@media (min-width: 1600px) {
    .team-logo.team-logo-large {
        width: 90px;
        height: 90px;
        padding: 10px;
    }
}

/* 2K+ screens (1920px+) - most compact logos */
@media (min-width: 1920px) {
    .team-logo.team-logo-large {
        width: 80px;
        height: 80px;
        padding: 8px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .winner-card {
        padding: 0.75rem;
        min-height: auto; /* Remove fixed min-height on mobile */
    }

    /* Team logos - use large variant on tablet/mobile for better visibility */
    .team-logo.team-logo-large {
        width: var(--logo-lg);
        height: var(--logo-lg);
        padding: 14px;
    }

    .vs-indicator {
        margin: 0 0.5rem;
        padding-top: 80px;
    }

    .vs-unified {
        font-size: 1rem;
    }

    .team-name-label {
        font-size: 1rem;
    }

    .score-value {
        font-size: 2rem;
    }

    .score-dash {
        font-size: 1.5rem;
    }

    .edge-ai-pick-badge {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }

    .spread-badge {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

@media (max-width: 576px) {
    .winner-card {
        padding: 0.5rem;
    }

    /* Team logos - use large size on small mobile for better visibility */
    .team-logo.team-logo-large {
        width: var(--logo-xl);
        height: var(--logo-xl);
        padding: 12px;
    }

    .vs-unified {
        font-size: 0.875rem;
    }

    .vs-indicator {
        margin: 0 0.375rem;
        padding-top: 60px;
    }

    .team-name-label {
        font-size: 0.9rem;
    }

    .score-value {
        font-size: 1.75rem;
    }

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

    .score-display-section {
        padding: 0.75rem;
    }

    .edge-ai-pick-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .spread-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .game-info-section small {
        font-size: 0.7rem;
    }
}

/* Extra small screens - use large logo size (doubled from small) */
@media (max-width: 414px) {
    .team-logo.team-logo-large {
        width: var(--logo-xl);
        height: var(--logo-xl);
        padding: 10px;
    }

    .vs-indicator {
        margin: 0 0.25rem;
        padding-top: 50px;
    }

    .team-name-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 380px) {
    /* Doubled logo size for very small screens */
    .team-logo.team-logo-large {
        width: var(--logo-lg);
        height: var(--logo-lg);
        padding: 8px;
    }

    .vs-indicator {
        padding-top: 42px;
    }

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

/* Status badge positioning */
.winner-card .position-absolute {
    z-index: 10;
}
