/* Super Ace Weekly Recap Module Styles */

.weekly-recap-module {
    background: var(--theme-bg-primary);
    border: 1px solid var(--theme-border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: var(--theme-shadow);
}

/* Header Section */
.recap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.recap-title-section {
    flex: 1;
}

.recap-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
}

.recap-title i {
    color: var(--theme-accent);
}

.recap-subtitle {
    color: var(--theme-text-secondary);
    font-size: 1rem;
    margin: 0;
}

.recap-stats {
    color: var(--theme-text-tertiary);
    font-size: 0.9rem;
}

.recap-actions {
    display: flex;
    gap: 0.75rem;
}

/* Video Container */
.recap-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: var(--theme-bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.recap-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.recap-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Overlay */
.recap-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(139, 69, 255, 0.9) 0%, 
        rgba(255, 20, 147, 0.8) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.recap-overlay:hover {
    opacity: 0.95;
}

.recap-play-button {
    font-size: 5rem;
    color: white;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.recap-duration {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Featured Players */
.recap-featured-players {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    color: white;
    font-size: 0.95rem;
}

.featured-label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.featured-player {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin: 0.25rem;
    cursor: pointer;
    transition: background 0.2s;
    backdrop-filter: blur(10px);
}

.featured-player:hover {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: underline;
}

.featured-more {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

/* Leagues Section */
.recap-leagues {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--theme-border-color);
}

.leagues-label {
    font-weight: 600;
    color: var(--theme-text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.league-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border-color);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--theme-text-primary);
}

.league-badge .attempt-count {
    background: var(--theme-accent);
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Video Playing State */
.recap-video-container.video-playing {
    padding-bottom: 0;
    height: auto;
    min-height: 400px;
}

.recap-video-container.video-playing .recap-video {
    position: relative;
    height: auto;
    min-height: 400px;
    max-height: 70vh;
}

/* No Recap Placeholder */
.weekly-recap-module.no-recap {
    background: var(--theme-bg-secondary);
    border-style: dashed;
}

.recap-placeholder {
    text-align: center;
    padding: 3rem 1rem;
}

.recap-placeholder-icon {
    font-size: 3rem;
    color: var(--theme-text-tertiary);
    margin-bottom: 1rem;
}

.recap-placeholder h3 {
    color: var(--theme-text-secondary);
    margin: 1rem 0 0.5rem;
}

.recap-placeholder p {
    color: var(--theme-text-tertiary);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .recap-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .recap-title {
        font-size: 1.5rem;
    }
    
    .recap-play-button {
        font-size: 3rem;
    }
    
    .recap-featured-players {
        font-size: 0.85rem;
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
    
    .featured-player {
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
    }
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
    .recap-overlay {
        background: linear-gradient(135deg, 
            rgba(139, 69, 255, 0.85) 0%, 
            rgba(255, 20, 147, 0.75) 100%);
    }
    
    .league-badge {
        background: var(--surface-2);
    }
}