/* استایل‌های مخصوص صفحه فیلم‌ها */

/* هدر صفحه */
.page-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--light-dark) 100%);
    padding: 100px 0 60px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb i {
    font-size: 12px;
}

.header-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
}

.stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 25px;
    border-radius: 10px;
    min-width: 180px;
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary);
}

.stat-item h3 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* بخش فیلترها */
.filter-section {
    background: var(--card-bg);
    padding: 30px 0;
    border-bottom: 1px solid #333;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    position: relative;
}

.filter-toggle {
    background: var(--light-dark);
    color: var(--text);
    border: 1px solid #444;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    transition: all 0.3s;
}

.filter-toggle:hover {
    background: #333;
    border-color: var(--primary);
}

.filter-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid #444;
    border-radius: 15px;
    padding: 25px;
    min-width: 400px;
    z-index: 1000;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.filter-category {
    margin-bottom: 25px;
}

.filter-category:last-child {
    margin-bottom: 0;
}

.filter-category h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text);
    font-weight: 600;
}

.filter-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.filter-checkbox:hover {
    color: var(--text);
}

.filter-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-apply, .btn-reset {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    flex: 1;
}

.btn-apply {
    background: var(--primary);
    color: white;
}

.btn-apply:hover {
    background: #f40612;
}

.btn-reset {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid #444;
}

.btn-reset:hover {
    background: #333;
    color: var(--text);
}

/* مرتب‌سازی */
.sort-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sort-select {
    background: var(--light-dark);
    color: var(--text);
    border: 1px solid #444;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    min-width: 200px;
    outline: none;
}

.sort-select option {
    background: var(--card-bg);
}

.view-toggle {
    display: flex;
    background: var(--light-dark);
    border-radius: 25px;
    padding: 5px;
    border: 1px solid #444;
}

.view-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.view-btn.active {
    background: var(--primary);
    color: white;
}

.view-btn:hover:not(.active) {
    background: #333;
    color: var(--text);
}

/* فیلترهای فعال */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.active-filter {
    background: rgba(229, 9, 20, 0.2);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.remove-filter {
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 12px;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-filter:hover {
    color: #f40612;
}

.clear-all {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
}

.clear-all:hover {
    color: var(--primary);
}

/* لیست فیلم‌ها */
.movies-list-section {
    padding: 50px 0;
}

/* کارت فیلم‌های کامل‌تر */
.movie-card .movie-details {
    padding: 20px;
}

.movie-meta {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    font-size: 14px;
}

.movie-meta .year,
.movie-meta .quality,
.movie-meta .age {
    color: var(--text-secondary);
}

.movie-meta .quality {
    color: var(--primary);
    font-weight: 600;
}

.movie-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.movie-tags span {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
}

/* نشان‌های ویژه */
.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ffd700, #ff9500);
    color: #000;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 5px;
}

.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

/* نمای لیست */
#moviesGrid.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#moviesGrid.list-view .movie-card {
    display: flex;
    height: 200px;
}

#moviesGrid.list-view .movie-poster {
    width: 150px;
    height: 100%;
    flex-shrink: 0;
}

#moviesGrid.list-view .movie-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#moviesGrid.list-view .movie-title {
    font-size: 24px;
    margin-bottom: 10px;
}

#moviesGrid.list-view .movie-description {
    -webkit-line-clamp: 2;
    margin-bottom: 15px;
}

/* صفحه‌بندی */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-btn {
    background: var(--light-dark);
    color: var(--text);
    border: 1px solid #444;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
}

.page-btn:hover:not(.disabled):not(.active) {
    background: #333;
    border-color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    color: var(--text-secondary);
    padding: 0 5px;
}

/* تبلیغ VIP */
.ad-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a0b2e 0%, #2d1b42 100%);
}

.ad-banner {
    background: linear-gradient(45deg, var(--primary) 0%, #ff416c 100%);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    min-height: 300px;
    position: relative;
}

.ad-content {
    padding: 50px;
    flex: 1;
    color: white;
}

.ad-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.ad-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 500px;
}

.btn-vip {
    background: white;
    color: var(--primary);
    border: none;
    padding: 15px 35px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-vip:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.ad-image {
    flex: 1;
    height: 100%;
    overflow: hidden;
}

.ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* استایل‌های رسپانسیو برای صفحه فیلم‌ها */
@media (max-width: 1200px) {
    .ad-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .ad-content {
        padding: 40px;
    }
    
    .ad-image {
        width: 100%;
        height: 250px;
    }
}

@media (max-width: 992px) {
    .header-content h1 {
        font-size: 2.2rem;
    }
    
    .stats {
        gap: 20px;
    }
    
    .stat-item {
        min-width: 140px;
        padding: 12px 20px;
    }
    
    .filter-dropdown {
        min-width: 300px;
    }
    
    .filter-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 40px;
    }
    
    .header-content h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .stat-item {
        min-width: 100%;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group, .sort-group {
        width: 100%;
    }
    
    .sort-select {
        width: 100%;
    }
    
    .view-toggle {
        align-self: flex-start;
    }
    
    #moviesGrid.list-view .movie-card {
        flex-direction: column;
        height: auto;
    }
    
    #moviesGrid.list-view .movie-poster {
        width: 100%;
        height: 250px;
    }
}

@media (max-width: 576px) {
    .ad-content h2 {
        font-size: 1.8rem;
    }
    
    .ad-content {
        padding: 30px 20px;
    }
    
    .btn-vip {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .page-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .filter-dropdown {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 400px;
    }
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.movie-card {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

/* تأخیر در انیمیشن برای کارت‌ها */
.movie-card:nth-child(1) { animation-delay: 0.1s; }
.movie-card:nth-child(2) { animation-delay: 0.2s; }
.movie-card:nth-child(3) { animation-delay: 0.3s; }
.movie-card:nth-child(4) { animation-delay: 0.4s; }
.movie-card:nth-child(5) { animation-delay: 0.5s; }
.movie-card:nth-child(6) { animation-delay: 0.6s; }
.movie-card:nth-child(7) { animation-delay: 0.7s; }
.movie-card:nth-child(8) { animation-delay: 0.8s; }
.movie-card:nth-child(9) { animation-delay: 0.9s; }
.movie-card:nth-child(10) { animation-delay: 1.0s; }
.movie-card:nth-child(11) { animation-delay: 1.1s; }
.movie-card:nth-child(12) { animation-delay: 1.2s; }