/**
 * Enhanced Archive Page Styles
 * Modern, Professional & Fully Responsive
 */

/* ===== Archive Hero Section ===== */
.archive-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    margin-bottom: 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    width: 100%;
}

.hero-content {
    text-align: center;
    color: #fff;
}

/* Breadcrumb */
.archive-breadcrumb {
    margin-bottom: 30px;
}

.archive-breadcrumb .breadcrumb-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.archive-breadcrumb .breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.archive-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.archive-breadcrumb a:hover {
    color: #fff;
}

.archive-breadcrumb .active {
    color: #fff;
    font-weight: 600;
}

/* Archive Title */
.archive-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.archive-description {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.9);
}

/* Archive Stats */
.archive-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.stat-item i {
    font-size: 32px;
    color: #fbbf24;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Content Container ===== */
.archive-content {
    background: var(--bg-primary, #14141e);
    padding: 0 0 60px;
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Filters Section ===== */
.filters-section {
    background: var(--bg-secondary, #1a1a24);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.filters-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #fff);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.filters-title i {
    color: var(--accent-color, #e94560);
}

.filters-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent-color, #e94560);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filters-toggle:hover {
    background: var(--accent-hover, #d63651);
}

.filters-wrapper {
    display: block;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label i {
    color: var(--accent-color, #e94560);
}

.filter-select {
    padding: 12px 16px;
    background: var(--bg-tertiary, #1f1f2e);
    border: 2px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    color: var(--text-primary, #fff);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-color, #e94560);
}

.filters-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ===== Movies Grid ===== */
.movies-section {
    margin-bottom: 60px;
}

.section-header {
    margin-bottom: 30px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 0;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.movie-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary, #1a1a24);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
}

.movie-poster {
    position: relative;
    padding-top: 150%;
    overflow: hidden;
}

.movie-poster a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-card:hover .poster-img {
    transform: scale(1.1);
}

.poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary, #1f1f2e);
    color: var(--text-tertiary, #9ca3af);
    font-size: 60px;
}

.movie-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fbbf24;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-card:hover .movie-overlay {
    opacity: 1;
}

.overlay-content {
    width: 100%;
}

.movie-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.3;
}

.movie-year {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.movie-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.genre-tag {
    background: rgba(233, 69, 96, 0.2);
    color: var(--accent-color, #e94560);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.movie-actions {
    display: flex;
    gap: 10px;
}

/* ===== Pagination ===== */
.archive-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.archive-pagination .pagination {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: var(--bg-secondary, #1a1a24);
    color: var(--text-primary, #fff);
    border: 2px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
    background: var(--accent-color, #e94560);
    border-color: var(--accent-color, #e94560);
    color: #fff;
}

/* ===== No Results ===== */
.no-results-section {
    padding: 80px 20px;
    text-align: center;
}

.no-results-content {
    max-width: 600px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 80px;
    color: var(--text-tertiary, #9ca3af);
    margin-bottom: 20px;
}

.no-results-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 0 0 15px;
}

.no-results-section p {
    font-size: 16px;
    color: var(--text-secondary, #d1d5db);
    margin: 0 0 30px;
}

/* ===== Related Genres ===== */
.related-genres-section {
    margin-bottom: 60px;
}

.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.genre-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    background: var(--bg-secondary, #1a1a24);
    border: 2px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.genre-card:hover {
    border-color: var(--accent-color, #e94560);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.3);
}

.genre-icon {
    width: 60px;
    height: 60px;
    background: rgba(233, 69, 96, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--accent-color, #e94560);
    margin-bottom: 15px;
}

.genre-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 0 0 8px;
    text-align: center;
}

.genre-count {
    font-size: 14px;
    color: var(--text-tertiary, #9ca3af);
    margin: 0;
}

/* ===== SEO Content ===== */
.seo-content-section {
    background: var(--bg-secondary, #1a1a24);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 60px;
}

.seo-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 0 0 20px;
}

.seo-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary, #d1d5db);
    margin-bottom: 15px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-color, #e94560);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover, #d63651);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-tertiary, #1f1f2e);
    color: var(--text-primary, #fff);
    border: 2px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.btn-secondary:hover {
    border-color: var(--accent-color, #e94560);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .archive-hero {
        min-height: 300px;
    }
    
    .archive-title {
        font-size: 32px;
    }
    
    .archive-description {
        font-size: 16px;
    }
    
    .filters-toggle {
        display: flex;
    }
    
    .filters-wrapper {
        display: none;
        margin-top: 20px;
    }
    
    .filters-wrapper.active {
        display: block;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-actions {
        flex-direction: column;
    }
    
    .filters-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .genres-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .movies-grid {
        grid-template-columns: 1fr;
    }
    
    .genres-grid {
        grid-template-columns: 1fr;
    }
}
