/* Netflix Clone CSS */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Netflix Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #141414;
    color: #fff;
    line-height: 1.4;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #fff;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    transition: background-color 0.3s ease;
    padding: 0 4%;
}

.header.scrolled {
    background-color: #141414;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    height: 25px;
    margin-right: 25px;
}

.logo img {
    height: 100%;
}

.main-nav {
    flex-grow: 1;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-right: 20px;
}

.main-nav a {
    font-size: 14px;
    transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: #b3b3b3;
}

.header-right {
    display: flex;
    align-items: center;
}

.search, .notifications, .profile {
    margin-left: 22px;
    cursor: pointer;
}

.search i, .notifications i {
    font-size: 18px;
}

.profile {
    display: flex;
    align-items: center;
}

.profile img {
    height: 32px;
    width: 32px;
    border-radius: 4px;
    margin-right: 10px;
}

/* Hero Banner Styles */
.hero-banner {
    position: relative;
    height: 80vh;
    min-height: 600px;
    background: url('../assets/images/hero-backdrop.jpg') no-repeat center center;
    background-size: cover;
    margin-bottom: 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(20, 20, 20, 0) 0%,
        rgba(20, 20, 20, 0.15) 15%,
        rgba(20, 20, 20, 0.35) 29%,
        rgba(20, 20, 20, 0.58) 44%,
        #141414 68%,
        #141414 100%
    );
}

.hero-content {
    position: absolute;
    bottom: 35%;
    left: 4%;
    width: 36%;
    z-index: 10;
}

.hero-title {
    margin-bottom: 1.2vw;
    max-width: 100%;
}

.hero-title img {
    width: 100%;
    max-width: 600px;
}

.hero-description {
    margin-bottom: 1.5vw;
}

.hero-description p {
    font-size: 1.2vw;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.45);
    margin-top: 0.1vw;
}

.hero-buttons {
    display: flex;
    align-items: center;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    margin-right: 1rem;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    transition: all 0.2s ease;
}

.btn i {
    margin-right: 0.5rem;
}

.btn-play {
    background-color: #fff;
    color: #000;
}

.btn-play:hover {
    background-color: rgba(255, 255, 255, 0.75);
}

.btn-more-info {
    background-color: rgba(109, 109, 110, 0.7);
    color: #fff;
}

.btn-more-info:hover {
    background-color: rgba(109, 109, 110, 0.4);
}

/* Content Sections */
.content-section {
    padding: 0 4%;
    margin-bottom: 3vw;
}

.section-title {
    font-size: 1.4vw;
    font-weight: 700;
    margin-bottom: 0.5em;
    color: #e5e5e5;
}

/* Movie Slider */
.movie-slider {
    position: relative;
}

.slider-controls {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
    pointer-events: none;
}

.slider-arrow {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    width: 50px;
    height: 100%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    opacity: 0;
}

.movie-slider:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.movie-row {
    display: flex;
    overflow-x: hidden;
    padding: 0.5vw 0;
    scroll-behavior: smooth;
}

.movie-item {
    flex: 0 0 16.66%;
    padding: 0 0.2vw;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.movie-item:hover {
    transform: scale(1.3);
    z-index: 10;
}

.movie-poster {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.movie-poster img {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer Styles */
.footer {
    padding: 50px 4%;
    color: #808080;
    margin-top: 20px;
}

.footer-container {
    max-width: 980px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    margin-bottom: 1rem;
}

.social-links a {
    margin-right: 25px;
    font-size: 20px;
    color: #808080;
}

.social-links a:hover {
    color: #fff;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-links-column {
    flex: 0 0 25%;
    margin-bottom: 15px;
}

.footer-links-column a {
    display: block;
    margin-bottom: 15px;
    font-size: 13px;
    color: #808080;
}

.footer-links-column a:hover {
    text-decoration: underline;
}

.btn-service-code {
    background: transparent;
    border: 1px solid #808080;
    color: #808080;
    padding: 0.5em;
    font-size: 13px;
    margin-bottom: 20px;
}

.copyright {
    font-size: 11px;
}

/* Movie Modal */
.movie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    overflow-y: auto;
}

.movie-modal.show {
    display: block;
}

.modal-content {
    background-color: #181818;
    margin: 2% auto;
    width: 850px;
    max-width: 90%;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 30;
}

.btn-close {
    background-color: #181818;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-video {
    position: relative;
}

.modal-video img {
    width: 100%;
    height: auto;
}

.modal-video-controls {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    align-items: center;
}

.modal-video-controls .btn {
    margin-right: 10px;
}

.btn-add, .btn-like {
    background-color: rgba(42, 42, 42, 0.6);
    color: #fff;
    border: 2px solid #6d6d6e;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add i, .btn-like i {
    margin: 0;
    font-size: 18px;
}

.modal-info {
    padding: 30px;
}

.modal-info-main {
    display: flex;
    margin-bottom: 20px;
}

.modal-meta {
    flex: 0 0 60%;
}

.modal-meta span {
    margin-right: 10px;
}

.match {
    color: #46d369;
    font-weight: 700;
}

.modal-description {
    flex: 0 0 40%;
}

.modal-info-details {
    margin-bottom: 30px;
}

.modal-info-details div {
    margin-bottom: 10px;
}

.label {
    color: #777;
    margin-right: 5px;
}

.modal-similar h3 {
    padding: 0 30px;
    margin-bottom: 15px;
}

.similar-movies {
    display: flex;
    overflow-x: auto;
    padding: 0 30px 30px;
}

.similar-movie {
    flex: 0 0 200px;
    margin-right: 10px;
}

.similar-movie img {
    width: 100%;
    border-radius: 4px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .movie-item {
        flex: 0 0 20%;
    }
}

@media (max-width: 992px) {
    .hero-content {
        width: 50%;
    }
    
    .hero-description p {
        font-size: 14px;
    }
    
    .movie-item {
        flex: 0 0 25%;
    }
    
    .footer-links-column {
        flex: 0 0 33.33%;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .hero-content {
        width: 70%;
        bottom: 30%;
    }
    
    .movie-item {
        flex: 0 0 33.33%;
    }
    
    .footer-links-column {
        flex: 0 0 50%;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-content {
        width: 90%;
        bottom: 20%;
    }
    
    .btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    .movie-item {
        flex: 0 0 50%;
    }
    
    .footer-links-column {
        flex: 0 0 100%;
    }
}