/**
 * Gaming Spotlight Widget Styles
 * 
 * Modern gaming-themed styles for the rotating
 * featured content spotlight widget.
 *
 * @package OutputLag
 * @since 1.0.0
 */

/* Widget Container */
.gaming-spotlight-widget {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.gaming-spotlight-widget:hover {
    border-color: rgba(138, 43, 226, 0.4);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.15);
}

/* Widget Header */
.gaming-spotlight-widget .widget-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(138, 43, 226, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-header .header-content {
    flex: 1;
}

.gaming-spotlight-widget .widget-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #E8E8E8;
}

.spotlight-icon {
    color: #FFD700;
    animation: rotate-shine 4s linear infinite;
}

@keyframes rotate-shine {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.widget-subtitle {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: #A8A8A8;
}

/* Navigation */
.spotlight-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #A8A8A8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.4);
    color: #E8E8E8;
}

.nav-indicators {
    display: flex;
    gap: 0.5rem;
}

/* Spotlight Container */
.spotlight-container {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.spotlight-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Spotlight Item */
.spotlight-item {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.spotlight-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 24px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.spotlight-badge svg {
    filter: drop-shadow(0 0 4px currentColor);
}

/* Content Layout */
.spotlight-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    padding: 2rem;
    height: 100%;
    position: relative;
    z-index: 2;
}

.spotlight-media {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 100%;
}

.spotlight-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    pointer-events: none;
}

/* Info Section */
.spotlight-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
}

.spotlight-title {
    margin: 0 0 0.5rem;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
}

.spotlight-title a {
    color: #E8E8E8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.spotlight-title a:hover {
    color: #8A2BE2;
}

.spotlight-subtitle {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: #A8A8A8;
    font-weight: 500;
}

.spotlight-description {
    margin: 0 0 1.5rem;
    font-size: 0.9375rem;
    color: #C8C8C8;
    line-height: 1.6;
}

/* Meta Information */
.spotlight-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.meta-author span {
    font-size: 0.875rem;
    color: #A8A8A8;
}

.meta-score,
.meta-comments {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: #A8A8A8;
}

.meta-score svg {
    color: #FFD700;
}

.meta-comments svg {
    color: #4ECDC4;
}

.meta-platforms {
    display: flex;
    gap: 0.5rem;
}

.platform-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #A8A8A8;
    font-size: 0.75rem;
}

.platform-icon svg {
    width: 16px;
    height: 16px;
}

.platform-icon .platform-text {
    font-weight: 600;
    font-size: 0.625rem;
}

/* CTA Button */
.spotlight-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #8A2BE2 0%, #6B21A8 100%);
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.spotlight-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.3);
}

.spotlight-cta svg {
    transition: transform 0.3s ease;
}

.spotlight-cta:hover svg {
    transform: translateX(4px);
}

/* Background Effect */
.spotlight-background {
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: blur(30px);
    z-index: 1;
    transform: scale(1.1);
}

/* Widget Footer */
.gaming-spotlight-widget .widget-footer {
    padding: 1rem 1.5rem;
    background: rgba(138, 43, 226, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.spotlight-stats {
    display: flex;
    align-items: center;
    font-size: 0.8125rem;
    color: #888;
}

.spotlight-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.spotlight-stats svg {
    opacity: 0.7;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .spotlight-container {
        height: auto;
        min-height: 500px;
    }
    
    .spotlight-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .spotlight-media {
        height: 200px;
    }
    
    .spotlight-title {
        font-size: 1.5rem;
    }
    
    .spotlight-description {
        font-size: 0.875rem;
    }
    
    .widget-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .spotlight-navigation {
        width: 100%;
        justify-content: center;
    }
    
    .spotlight-badge {
        top: 1rem;
        left: 1rem;
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .gaming-spotlight-widget .widget-header {
        padding: 1rem;
    }
    
    .gaming-spotlight-widget .widget-title {
        font-size: 1.125rem;
    }
    
    .nav-btn {
        width: 32px;
        height: 32px;
    }
    
    .spotlight-cta {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .spotlight-meta {
        gap: 0.75rem;
    }
    
    .meta-author span,
    .meta-score,
    .meta-comments {
        font-size: 0.8125rem;
    }
}

/* Dark Mode Optimizations */
body.dark-mode .gaming-spotlight-widget {
    background: rgba(0, 0, 0, 0.95);
}

body.dark-mode .spotlight-title a {
    color: #F8F8F8;
}

body.dark-mode .spotlight-description {
    color: #D8D8D8;
}

/* Loading State */
.spotlight-item.loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spotlight-item.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #8A2BE2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}