/* ═══════════════════════════════════════════════════════════════
   CinemAI - Discover Page Styles
   ═══════════════════════════════════════════════════════════════ */

.discover-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
}

.discover-header {
    text-align: center;
    margin-bottom: 30px;
}

.discover-header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.discover-header h1 i {
    -webkit-text-fill-color: #e94560;
}

.discover-header p {
    color: rgba(255, 255, 255, 0.6);
}

/* Filters */
.discover-filters {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

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

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-inputs span {
    color: rgba(255, 255, 255, 0.4);
}

.form-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 8px;
}

.form-select:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);
}

.form-select option {
    background: #1a1a2e;
    color: white;
}

.filter-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.filter-actions .btn {
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
}

/* Results */
.results-info {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.movie-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.movie-card a {
    text-decoration: none;
    color: inherit;
}

.movie-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.movie-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
}

.movie-rating {
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #ffc107;
    font-weight: 600;
}

.movie-rating i {
    margin-right: 4px;
}

.movie-info {
    padding: 12px;
}

.movie-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.movie-year {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    gap: 8px;
}

.page-item .page-link {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 8px;
    padding: 8px 14px;
    transition: all 0.3s ease;
}

.page-item .page-link:hover {
    background: rgba(233, 69, 96, 0.2);
    border-color: var(--accent-color);
}

.page-item.active .page-link {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

/* Mobile */
@media (max-width: 768px) {
    .discover-header h1 {
        font-size: 1.5rem;
    }

    .filter-row {
        grid-template-columns: 1fr 1fr;
    }

    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .filter-actions {
        flex-direction: column;
    }

    .filter-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .filter-row {
        grid-template-columns: 1fr;
    }
}
