/* Replays Module - Advanced Styling */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* Main Container */
.replays-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 25%, #2d1b69 50%, #1a1a3e 75%, #0f0f23 100%);
    position: relative;
    overflow-x: hidden;
}

.replays-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(119, 255, 198, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

/* Hero Section */
.replays-hero {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.replays-hero h1 {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(0, 255, 255, 0.3),
        0 0 60px rgba(0, 255, 255, 0.2);
    animation: glow 2s ease-in-out infinite alternate;
}

.replays-hero p {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    color: #b8b8d4;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 40px rgba(0, 255, 255, 0.3), 0 0 60px rgba(0, 255, 255, 0.2); }
    to { text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 50px rgba(0, 255, 255, 0.5), 0 0 80px rgba(0, 255, 255, 0.3); }
}

/* Navigation Tabs */
.replays-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.nav-btn {
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

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

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #00ffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.nav-btn.active {
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    border-color: #00ffff;
    color: #000;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.5);
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Replays Grid */
.replays-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.replay-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.replay-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ffff, #ff00ff, #ffff00);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.replay-card:hover::before {
    opacity: 1;
}

.replay-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.3);
    border-color: #00ffff;
}

.replay-thumbnail {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1a1a3e, #2d1b69);
    border-radius: 10px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.replay-thumbnail::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #00ffff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.replay-thumbnail:hover::before {
    opacity: 1;
}

.replay-info h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.replay-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.replay-date {
    font-family: 'Rajdhani', sans-serif;
    color: #b8b8d4;
    font-size: 0.9rem;
}

.replay-duration {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.replay-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #b8b8d4;
    font-size: 0.9rem;
}

.stat-value {
    color: #00ffff;
    font-weight: 600;
}

.replay-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    transform: translateY(-2px);
}

.action-btn.primary {
    background: linear-gradient(135deg, #00ffff, #0080ff);
    border-color: #00ffff;
    color: #000;
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, #00ccff, #0066cc);
}

/* Upload Section */
.upload-section {
    text-align: center;
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    margin-bottom: 3rem;
    transition: all 0.3s ease;
}

.upload-section:hover {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
}

.upload-icon {
    font-size: 4rem;
    color: #00ffff;
    margin-bottom: 1rem;
}

.upload-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    color: #b8b8d4;
    margin-bottom: 1.5rem;
}

.upload-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    border: none;
    border-radius: 25px;
    color: #000;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.3);
}

.upload-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.5);
}

/* Filters */
.filters-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.filters-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-family: 'Rajdhani', sans-serif;
    color: #b8b8d4;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.filter-select {
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.filter-select:focus {
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    outline: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a3e, #2d1b69);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 800px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: #fff;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.video-player {
    width: 100%;
    height: 400px;
    background: #000;
    border-radius: 10px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.play-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: rgba(0, 255, 255, 0.5);
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    width: 30%;
    transition: width 0.3s ease;
}

.time-display {
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    min-width: 80px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .replays-hero h1 {
        font-size: 2.5rem;
    }
    
    .replays-nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .nav-btn {
        width: 200px;
        text-align: center;
    }
    
    .replays-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
    
    .video-player {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .replays-hero {
        padding: 80px 0 40px;
    }
    
    .replays-hero h1 {
        font-size: 2rem;
    }
    
    .replays-hero p {
        font-size: 1rem;
    }
    
    .replay-card {
        padding: 1rem;
    }
    
    .replay-thumbnail {
        height: 150px;
    }
    
    .replay-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .upload-section {
        padding: 2rem 1rem;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    .upload-text {
        font-size: 1rem;
    }
    
    .filters-section {
        padding: 1.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00ffff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    z-index: 1001;
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    background: linear-gradient(135deg, #00ff88, #00cc66);
}

.notification.error {
    background: linear-gradient(135deg, #ff4444, #cc0000);
}

.notification.info {
    background: linear-gradient(135deg, #4488ff, #0066cc);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00ccff, #cc00cc);
}
