/* assets/css/style.css */
:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --primary-red: #e50914;
    --gray-text: #a3a3a3;
    --dark-card: #141414;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Helvetica Neue', Arial, sans-serif; }
body { background-color: var(--bg-color); color: var(--text-color); overflow-x: hidden; width: 100%; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* --- Top Header Navigation --- */
.netflix-header {
    position: fixed; top: 0; left: 0; right: 0; height: 80px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%; z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    transition: background 0.3s;
}
.netflix-header.black-bg { background: #0a0a0a; box-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.header-left { display: flex; align-items: center; gap: 40px; }
.logo img { height: 28px; object-fit: contain; }
.logo-text { color: var(--primary-red); font-size: 1.8rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; margin: 0;}
.nav-links { display: flex; list-style: none; gap: 25px; font-size: 0.95rem; font-weight: 500; }
.nav-links li a { transition: color 0.3s; color: #fff; }
.nav-links li a:hover { color: var(--gray-text); }

.header-right { display: flex; align-items: center; gap: 20px; }
.menu-icon { cursor: pointer; display: flex; flex-direction: column; gap: 5px; }
.menu-icon span { display: block; width: 25px; height: 3px; background: #fff; border-radius: 2px; }

/* --- Hero Section (Left Aligned) --- */
.hero-billboard { 
    height: 90vh; width: 100%; position: relative; 
    background-size: cover; background-position: center top; 
}
.hero-overlay { 
    position: absolute; inset: 0; 
    background: linear-gradient(90deg, #0a0a0a 0%, rgba(10,10,10,0.8) 40%, transparent 100%),
                linear-gradient(to top, #0a0a0a 0%, transparent 30%); 
    display: flex; align-items: center; padding: 0 5%; 
}
.hero-content { max-width: 600px; margin-top: 50px; }
.hero-meta-top { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-text); margin-bottom: 10px; }
.hero-meta-info { font-size: 0.9rem; color: var(--gray-text); margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.star-rating { color: #f5c518; font-weight: bold; }
.hero-title { font-size: 4.5rem; font-weight: 900; margin-bottom: 15px; color: #fff; line-height: 1.1; letter-spacing: 1px; text-shadow: 2px 2px 10px rgba(0,0,0,0.5);}
.hero-desc { font-size: 1.1rem; color: #d1d1d1; margin-bottom: 30px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Buttons matching the image */
.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-watch { 
    background: var(--primary-red); color: #fff; padding: 12px 30px; border-radius: 30px; 
    font-size: 0.9rem; font-weight: bold; display: flex; align-items: center; gap: 8px; transition: 0.3s; border: none;
}
.btn-watch:hover { background: #b8070f; transform: scale(1.05); }
.btn-add { 
    background: transparent; color: #fff; padding: 12px 30px; border-radius: 30px; 
    font-size: 0.9rem; font-weight: bold; display: flex; align-items: center; gap: 8px; 
    border: 1px solid var(--primary-red); transition: 0.3s;
}
.btn-add:hover { background: rgba(229, 9, 20, 0.1); }

/* --- Section Headers & Category Pills --- */
.section-wrapper { padding: 0 5%; margin-bottom: 40px; position: relative; z-index: 10; margin-top: -20px;}
.section-header-box { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 15px;}
.section-title { font-size: 1.6rem; font-weight: bold; display: flex; align-items: center; gap: 10px; }
.section-tabs { display: flex; gap: 20px; color: var(--gray-text); font-size: 0.9rem; }
.section-tabs span { cursor: pointer; transition: 0.3s; }
.section-tabs span:hover, .section-tabs span.active { color: #fff; }

/* Category Pills (Red and Dark buttons) */
.category-pills { 
    display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 25px; 
    -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
}
.category-pills::-webkit-scrollbar { display: none; }
.pill { 
    padding: 8px 20px; border-radius: 20px; font-size: 0.95rem; font-weight: 500; 
    white-space: nowrap; transition: 0.3s; border: 1px solid #333; background: transparent; color: #fff;
}
.pill:hover { background: #222; }
.pill.active { background: var(--primary-red); border-color: var(--primary-red); color: #fff; box-shadow: 0 0 15px rgba(229, 9, 20, 0.4); }

/* --- Movie Grid / Horizontal List --- */
.movie-row { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; scroll-behavior: smooth; }
.movie-row::-webkit-scrollbar { display: none; }
.movie-card { flex: 0 0 auto; width: 160px; cursor: pointer; }
.movie-poster-box { 
    width: 100%; height: 240px; border-radius: 12px; overflow: hidden; position: relative; margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5); transition: 0.3s;
}
.movie-poster-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.movie-poster-box:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(229, 9, 20, 0.3); }
.movie-poster-box:hover img { transform: scale(1.08); }

/* Info Below Poster */
.movie-info-bottom h4 { font-size: 1rem; color: #fff; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.movie-stats { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--gray-text); font-weight: bold;}
.movie-stats .rating { display: flex; align-items: center; gap: 4px; color: #fff; }
.movie-stats .rating span { color: var(--primary-red); }

/* --- Footer Multi-Column --- */
footer { border-top: 1px solid #222; padding: 50px 5% 20px; margin-top: 50px; background: #050505;}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 30px; margin-bottom: 40px; }
.footer-col h5 { color: #fff; font-size: 1rem; margin-bottom: 15px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--gray-text); font-size: 0.85rem; transition: 0.3s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { text-align: center; border-top: 1px solid #222; padding-top: 20px; color: var(--gray-text); font-size: 0.8rem; }

/* --- Mobile Responsiveness --- */
@media screen and (max-width: 768px) {
    .netflix-header { height: 60px; padding: 0 15px; }
    .nav-links { display: none; }
    .logo img { height: 22px; }
    .logo-text { font-size: 1.4rem; }
    
    .hero-billboard { height: 75vh; }
    .hero-overlay { background: linear-gradient(to top, #0a0a0a 0%, rgba(10,10,10,0.8) 50%, transparent 100%); align-items: flex-end; padding-bottom: 40px;}
    .hero-content { margin-top: 0; text-align: center; width: 100%; display: flex; flex-direction: column; align-items: center;}
    .hero-title { font-size: 2.8rem; margin-bottom: 10px; }
    .hero-desc { font-size: 0.95rem; margin-bottom: 20px; text-align: center;}
    .hero-btns { justify-content: center; width: 100%; }
    .btn-watch, .btn-add { padding: 10px 20px; font-size: 0.85rem; width: 45%; justify-content: center;}
    
    .section-title { font-size: 1.3rem; }
    .section-tabs { display: none; } /* Hide extra tabs on mobile to save space */
    .movie-card { width: 120px; }
    .movie-poster-box { height: 180px; }
    
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}