/* ==========================================
   Modern Home Page Styles - CineSubz Inspired
   ========================================== */

:root {
    --primary-color: #e50914;
    --secondary-color: #564d4d;
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1f1f1f;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --border-color: #2a2a2a;
    --gradient-overlay: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

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

/* ==========================================
   Hero Featured Section
   ========================================== */

.hero-featured {
    position: relative;
    height: 75vh;
    min-height: 500px;
    max-height: 700px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
    margin-bottom: 40px;
}

.hero-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(229, 9, 20, 0.9);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.featured-badge i {
    font-size: 14px;
}

.featured-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.8);
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    font-size: 15px;
}

.quality-badge {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}

.meta-dot {
    color: var(--text-muted);
    font-weight: bold;
}

.meta-text {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.meta-text i {
    font-size: 14px;
}

.vip-badge {
    padding: 6px 12px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
}

.featured-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-watch-now,
.btn-add-list {
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-watch-now {
    background: var(--primary-color);
    color: #fff;
    border: none;
}

.btn-watch-now:hover {
    background: #f40612;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.4);
}

.btn-add-list {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-add-list:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   Ad Section
   ========================================== */

.ad-section {
    margin: 40px auto;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 8px;
    text-align: center;
}

/* ==========================================
   Content Sections
   ========================================== */

.content-sections {
    padding: 40px 20px;
}

.content-section {
    margin-bottom: 60px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
}

.title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 8px;
    font-size: 18px;
}

.title-underline {
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    gap: 12px;
    color: #f40612;
}

/* ==========================================
   Movies Grid
   ========================================== */

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

.movie-item {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.movie-item:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.movie-poster {
    position: relative;
    padding-top: 140%; /* 5:7 aspect ratio for movie posters */
    overflow: hidden;
    background: #1a1a1a;
}

.movie-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.movie-item:hover .movie-poster img {
    transform: scale(1.08);
}

.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-item:hover .poster-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(229, 9, 20, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    transition: all 0.3s ease;
}

.movie-item:hover .play-button {
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(229, 9, 20, 0.6);
}

.poster-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quality-label {
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.vip-label {
    padding: 5px 10px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background: rgba(229, 9, 20, 0.95);
    backdrop-filter: blur(5px);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-badge i {
    font-size: 10px;
    color: #FFD700;
}

.movie-details {
    padding: 15px;
}

.movie-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-name a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.movie-name a:hover {
    color: var(--primary-color);
}

.movie-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.meta-separator {
    font-weight: bold;
}

/* ==========================================
   Empty State
   ========================================== */

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 18px;
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 1200px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .featured-title {
        font-size: 2.2rem;
    }

    .hero-featured {
        height: 60vh;
        min-height: 400px;
    }

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

    .section-title {
        font-size: 1.4rem;
    }

    .title-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .btn-watch-now,
    .btn-add-list {
        padding: 12px 24px;
        font-size: 14px;
    }

    .movie-name {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .featured-title {
        font-size: 1.8rem;
    }

    .hero-featured {
        height: 50vh;
        padding-bottom: 40px;
    }

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

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .view-all-link {
        font-size: 12px;
    }

    .featured-meta {
        font-size: 13px;
    }

    .btn-watch-now,
    .btn-add-list {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   Animations
   ========================================== */

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

.movie-item {
    animation: fadeInUp 0.5s ease-out;
}

.movie-item:nth-child(1) { animation-delay: 0.05s; }
.movie-item:nth-child(2) { animation-delay: 0.1s; }
.movie-item:nth-child(3) { animation-delay: 0.15s; }
.movie-item:nth-child(4) { animation-delay: 0.2s; }
.movie-item:nth-child(5) { animation-delay: 0.25s; }
.movie-item:nth-child(6) { animation-delay: 0.3s; }
.movie-item:nth-child(7) { animation-delay: 0.35s; }
.movie-item:nth-child(8) { animation-delay: 0.4s; }

/* ==========================================
   Dark Theme Enhancements
   ========================================== */

.dark-theme {
    background-color: var(--bg-dark);
}

.dark-theme .site-wrapper {
    background-color: var(--bg-dark);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-card);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
