/* Main Styles for Netflix Clone */

:root {
    --primary-color: #e50914;
    --secondary-color: #b81d24;
    --dark-bg: #141414;
    --light-text: #fff;
    --gray-text: #999;
    --dark-text: #333;
    --hover-bg: rgba(255, 255, 255, 0.1);
}

/* Navbar Styles */
.navbar {
    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%;
}

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

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

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

.logo {
    height: 100%;
}

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

.nav-list {
    display: flex;
    gap: 20px;
}

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

.nav-item a:hover {
    color: var(--gray-text);
}

.nav-item.active a {
    font-weight: 700;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    font-size: 20px;
    cursor: pointer;
}

.search-input {
    position: absolute;
    right: 0;
    background-color: rgba(0, 0, 0, 0.75);
    border: 1px solid #fff;
    color: #fff;
    padding: 7px 14px 7px 36px;
    font-size: 14px;
    width: 0;
    opacity: 0;
    transition: width 0.5s, opacity 0.5s;
}

.search-container.active .search-input {
    width: 250px;
    opacity: 1;
}

.notifications {
    font-size: 20px;
    cursor: pointer;
}

.profile {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

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

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--dark-bg), transparent);
}

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

.featured-title {
    max-width: 100%;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.4vw;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.45);
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    transition: all 0.2s ease;
}

.btn-play {
    background-color: #fff;
    color: var(--dark-text);
}

.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 Section Styles */
.content-section {
    padding: 0 4%;
    margin-bottom: 40px;
}

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

.content-slider {
    position: relative;
    overflow: visible;
}

.slider-container {
    display: flex;
    gap: 5px;
    transition: transform 0.5s ease;
    padding: 0 4px;
}

.content-item {
    flex: 0 0 16.666%;
    position: relative;
    transition: transform 0.3s ease, z-index 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
}

.content-item:hover {
    transform: scale(1.5);
    z-index: 10;
}

.content-item img {
    width: 100%;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.content-item:hover img {
    border-radius: 4px 4px 0 0;
}

.content-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #181818;
    padding: 10px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    border-radius: 0 0 4px 4px;
}

.content-item:hover .content-item-info {
    opacity: 1;
    transform: translateY(0);
}

.content-item-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
}

.content-item-buttons {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.content-item-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(42, 42, 42, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
}

.content-item-button:hover {
    border-color: #fff;
    background-color: rgba(42, 42, 42, 0.9);
}

.content-item-button.play {
    background-color: #fff;
    color: #000;
    border: none;
}

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

.content-item-metadata {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #46d369;
}

.content-item-match {
    font-weight: 700;
}

.content-item-rating {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0 4px;
}

.content-item-duration {
    color: #fff;
}

.content-item-genres {
    display: flex;
    gap: 5px;
    font-size: 12px;
    margin-top: 5px;
}

.content-item-genre {
    position: relative;
}

.content-item-genre:not(:last-child)::after {
    content: '•';
    margin-left: 5px;
}

/* Footer Styles */
.footer {
    padding: 50px 4%;
    color: var(--gray-text);
    margin-top: 20px;
}

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

.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.social-link {
    font-size: 20px;
    color: var(--gray-text);
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--light-text);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.footer-links-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links-column a {
    font-size: 13px;
    color: var(--gray-text);
    transition: color 0.3s ease;
}

.footer-links-column a:hover {
    color: var(--light-text);
}

.service-code {
    margin-bottom: 20px;
}

.service-code-button {
    background: transparent;
    border: 1px solid var(--gray-text);
    color: var(--gray-text);
    padding: 8px 12px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.service-code-button:hover {
    color: var(--light-text);
    border-color: var(--light-text);
}

.copyright {
    font-size: 12px;
}

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

@media (max-width: 992px) {
    .nav-list {
        display: none;
    }
    
    .hero-content {
        width: 70%;
    }
    
    .content-item {
        flex: 0 0 25%;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-banner {
        height: 60vh;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .content-item {
        flex: 0 0 33.333%;
    }
}

@media (max-width: 576px) {
    .navbar-container {
        height: 50px;
    }
    
    .logo-container {
        height: 20px;
    }
    
    .hero-banner {
        height: 50vh;
    }
    
    .hero-content {
        width: 90%;
        bottom: 20%;
    }
    
    .content-item {
        flex: 0 0 50%;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}