/* Netflix Dashboard - Frontend Only CSS */
:root {
    --netflix-red: #e50914;
    --netflix-dark-red: #b20710;
    --netflix-black: #000000;
    --netflix-dark-gray: #141414;
    --netflix-medium-gray: #2f2f2f;
    --netflix-light-gray: #b3b3b3;
    --netflix-white: #ffffff;
    --sidebar-width: 60px;
    --sidebar-expanded-width: 240px;
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

body {
    background-color: var(--netflix-black);
    color: var(--netflix-white);
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Expandable Side Navigation */
.side-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: width var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.4);
}

.side-nav:hover {
    width: var(--sidebar-expanded-width);
}

/* Netflix Logo - Original N with expandable text */
.netflix-logo-container {
    margin-bottom: 40px;
    padding: 0 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 40px;
    position: relative;
}

.netflix-logo-icon {
    color: var(--netflix-red);
    font-size: 28px;
    font-weight: 900;
    font-family: "Poppins", sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    min-width: 28px;
    transition: all var(--transition-speed) ease;
}

.netflix-logo-text {
    color: var(--netflix-red);
    font-size: 24px;
    font-weight: 900;
    font-family: "Poppins", sans-serif;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-speed) ease;
    margin-left: 8px;
    white-space: nowrap;
}

.side-nav:hover .netflix-logo-text {
    opacity: 1;
    transform: translateX(0);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 8px;
    flex-grow: 1;
    width: 100%;
    padding: 0 16px;
}

.nav-menu li {
    width: 100%;
}

.nav-item {
    color: var(--netflix-light-gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: "Poppins", sans-serif;
    transition: all var(--transition-speed) ease;
    position: relative;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: var(--border-radius);
    margin-bottom: 4px;
}

.nav-icon {
    font-size: 18px;
    min-width: 18px;
    text-align: center;
    color: var(--netflix-light-gray);
    transition: all var(--transition-speed) ease;
}

.nav-label {
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-speed) ease;
    white-space: nowrap;
    font-weight: 500;
    font-family: "Poppins", sans-serif;
}

.side-nav:hover .nav-label {
    opacity: 1;
    transform: translateX(0);
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--netflix-white);
}

/* Always red icon for active, but no red on hover */
.nav-item .nav-icon {
    color: var(--netflix-light-gray);
    font-size: 18px;
    min-width: 18px;
    text-align: center;
    transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon is red ONLY for active */
.nav-item.active .nav-icon {
    color: var(--netflix-red);
    transform: scale(1.15);
}

/* On hover, icon stays its normal color (no red) */
.nav-item:hover .nav-icon {
    color: var(--netflix-light-gray);
    transform: scale(1.15);
}

.nav-item.active {
    background: rgba(229, 9, 20, 0.15);
}

.nav-item.active::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--netflix-red);
    border-radius: 0 2px 2px 0;
    z-index:1;
}

/* Bottom Navigation */
.nav-bottom {
    margin-top: auto;
    padding: 0 16px;
    width: 100%;
}

.add-container {
    padding: 12px 16px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.add-container:hover {
    background: rgba(255, 255, 255, 0.1);
}

.add-icon {
    font-size: 18px;
    color: var(--netflix-light-gray);
    transition: all var(--transition-speed) ease;
    min-width: 18px;
}

.add-label {
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-speed) ease;
    white-space: nowrap;
    font-weight: 500;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: var(--netflix-light-gray);
}

.side-nav:hover .add-label {
    opacity: 1;
    transform: translateX(0);
}

.add-container:hover .add-icon,
.add-container:hover .add-label {
    color: var(--netflix-white);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--netflix-black);
    transition: margin-left var(--transition-speed) ease;
}

/* Hero Section */
.hero-section {
    height: 70vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.5s ease;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        var(--netflix-black) 0%,
        rgba(0, 0, 0, 0.8) 30%,
        rgba(0, 0, 0, 0.4) 60%,
        transparent 100%
    ),
    linear-gradient(0deg, var(--netflix-black) 0%, transparent 50%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 60px;
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
}

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

.hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--netflix-red);
    color: var(--netflix-white);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    width: fit-content;
}

/* Reduced title size */
.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    font-family: "Poppins", sans-serif;
    margin-bottom: 12px;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    color: var(--netflix-white);
    letter-spacing: -1px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.hero-year,
.hero-rating,
.hero-seasons {
    color: var(--netflix-light-gray);
    font-size: 13px;
    font-weight: 500;
    font-family: "Poppins", sans-serif;
}

.hero-rating {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 6px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 11px;
}

.hero-genres {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.genre-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--netflix-white);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    font-family: "Poppins", sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-description {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    line-height: 1.4;
    margin-bottom: 24px;
    color: #e5e5e5;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Professional Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
    min-width: 120px;
    justify-content: center;
}

.btn-play {
    background: var(--netflix-white);
    color: var(--netflix-black);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-play:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-info {
    background: rgba(109, 109, 110, 0.7);
    color: var(--netflix-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-info:hover {
    background: rgba(109, 109, 110, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.btn-add {
    background: transparent;
    color: var(--netflix-white);
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-add:hover {
    background: var(--netflix-white);
    color: var(--netflix-black);
    transform: translateY(-2px);
}

/* Content Sections */
.content-sections {
    padding: 40px 60px 60px;
    position: relative;
    z-index: 10;
    background: var(--netflix-black);
}

.content-row {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
    margin-bottom: 16px;
    color: var(--netflix-white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    color: var(--netflix-red);
    font-size: 1.1rem;
}

.content-carousel {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--netflix-red) transparent;
}

.content-carousel::-webkit-scrollbar {
    height: 4px;
}

.content-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.content-carousel::-webkit-scrollbar-thumb {
    background: var(--netflix-red);
    border-radius: 2px;
}

.content-carousel::-webkit-scrollbar-thumb:hover {
    background: var(--netflix-dark-red);
}

/* Content Item */
.content-item {
    min-width: 160px;
    height: 240px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    position: relative;
    background: var(--netflix-dark-gray);
}

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

.content-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 20px 12px 12px;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.content-item:hover .content-overlay {
    opacity: 1;
}

.content-overlay h3 {
    font-size: 12px;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    color: var(--netflix-white);
    text-align: center;
    margin-bottom: 4px;
}

.content-rating {
    font-size: 10px;
    color: var(--netflix-light-gray);
    text-align: center;
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 50px;
        --sidebar-expanded-width: 200px;
    }

    .netflix-logo-icon {
        font-size: 24px;
    }

    .netflix-logo-text {
        font-size: 20px;
    }

    .nav-icon, .add-icon {
        font-size: 16px;
    }

    .hero-content {
        padding: 0 30px;
    }

    .content-sections {
        padding: 30px 30px 50px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 100px;
    }

    .content-item {
        min-width: 140px;
        height: 210px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 20px;
    }

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

    .content-item {
        min-width: 120px;
        height: 180px;
    }
}