/* ===== FAVORITES PAGE CSS ===== */

.favorites-page {
    min-height: 100vh;
    background: var(--primary-black);
}

/* Hero Section */
.favorites-hero {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    overflow: hidden;
}

.favorites-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(78, 205, 196, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 15, 15, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.hero-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(135deg, #4ecdc4 0%, #3db8b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #4ecdc4;
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 5px;
}

/* Filters Section */
.filters-section {
    background: rgba(30, 30, 30, 0.5);
    padding: 25px 0;
    border-bottom: 1px solid rgba(78, 205, 196, 0.2);
}

.filters-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
    white-space: nowrap;
}

.filter-select {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(78, 205, 196, 0.2);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.filter-select:hover,
.filter-select:focus {
    outline: none;
    border-color: #4ecdc4;
    background: rgba(255, 255, 255, 0.08);
}

.filter-select option {
    background: var(--dark-gray);
    color: var(--text-white);
}

.btn-danger-outline {
    margin-left: auto;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #ef4444;
    border-radius: 8px;
    color: #ef4444;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger-outline:hover {
    background: #ef4444;
    color: #fff;
    transform: translateY(-2px);
}

/* Favorites Section */
.favorites-section {
    padding: 60px 0;
}

.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #4ecdc4;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-gray);
}

/* Grid */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Loading Spinner */
.loading-spinner {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--text-gray);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(78, 205, 196, 0.2);
    border-top-color: #4ecdc4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
}

.empty-description {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(135deg, #4ecdc4 0%, #3db8b0 100%);
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(78, 205, 196, 0.4);
}

/* Video Card */
.video-card {
    background: rgba(30, 30, 30, 0.9);
    border: 2px solid rgba(78, 205, 196, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: #4ecdc4;
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 12px;
    color: var(--text-white);
    font-weight: 600;
}

.video-info {
    padding: 20px;
}

.video-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(78, 205, 196, 0.2);
    border: 1px solid rgba(78, 205, 196, 0.4);
    border-radius: 20px;
    font-size: 12px;
    color: #4ecdc4;
    font-weight: 600;
    margin-bottom: 10px;
}

.video-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-actions {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(78, 205, 196, 0.2);
}

.btn-action {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(78, 205, 196, 0.2);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-action:hover {
    background: rgba(78, 205, 196, 0.1);
    border-color: #4ecdc4;
    color: #4ecdc4;
}

.btn-remove {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.btn-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

/* Added Date */
.added-date {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1200px) {
    .favorites-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .favorites-hero {
        height: 350px;
        margin-top: 70px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-icon {
        font-size: 60px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .btn-danger-outline {
        margin-left: 0;
        width: 100%;
    }
    
    .favorites-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .section-title {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .favorites-hero {
        height: 300px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-icon {
        font-size: 50px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .favorites-grid {
        grid-template-columns: 1fr;
    }
    
    .video-info {
        padding: 15px;
    }
    
    .video-title {
        font-size: 16px;
    }
}