/* Netflix Style Overrides for Landing Page */

/* Navbar Overrides */
.landing-header {
    background: transparent !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.landing-header.scrolled {
    background: rgba(5, 5, 5, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5) !important;
}

/* Remove padding from main so hero goes under navbar */
main {
    padding-top: 0 !important;
}

/* Netflix Hero Section */
.netflix-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding-left: 50px;
    /* Pushed to top */
    margin-top: 0;
}

.netflix-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #0a0a0a;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.netflix-hero-bg--loaded {
    opacity: 1;
}

.netflix-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5,5,5,1) 0%, rgba(5,5,5,0.4) 50%, rgba(5,5,5,0) 100%), 
                linear-gradient(0deg, rgba(5,5,5,1) 0%, rgba(5,5,5,0) 25%);
    z-index: -1;
}

.netflix-hero-content {
    max-width: 600px;
    z-index: 1;
    animation: fadeIn 1.5s ease;
    margin-top: 50px; /* offset for navbar visually */
}

.netflix-hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    color: #f3f1ea;
}

.netflix-hero-description {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 30px;
    color: #d1d1d1;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

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

.btn-netflix {
    padding: 8px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', 'Inter', sans-serif;
    transition: transform 0.2s, background-color 0.2s;
    text-decoration: none;
}

.btn-play {
    background-color: #f3f1ea;
    color: #050505;
}

.btn-play:hover {
    background-color: #e6e6e6;
    transform: scale(1.05);
}

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

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

/* Netflix Content Rows */
.netflix-content {
    margin-top: -80px;
    padding-bottom: 50px;
    position: relative;
    z-index: 10;
}

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

.netflix-row-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-left: 50px;
    margin-bottom: 15px;
    color: #f3f1ea;
}

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

.netflix-row-posters {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 20px 50px;
    scroll-behavior: smooth;
}

.netflix-row-posters::-webkit-scrollbar {
    display: none;
}

.poster-item {
    min-width: 350px;
    height: 197px; 
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poster-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.poster-item:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
    z-index: 2;
}

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

.poster-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.poster-item:hover .poster-info {
    opacity: 1;
}

.poster-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #f3f1ea;
}

.poster-actions i {
    font-size: 2rem;
    color: #f3f1ea;
    transition: color 0.2s;
}

.poster-actions i:hover {
    color: #d6ba47;
}

.scroll-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    background: rgba(0,0,0,0.5);
    color: #f3f1ea;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.2s;
}

.netflix-row-container:hover .scroll-btn {
    opacity: 1;
}

.scroll-btn:hover {
    background: rgba(0,0,0,0.8);
}

.scroll-btn.left { left: 0; }
.scroll-btn.right { right: 0; }

.badge-premium {
    position: absolute; 
    top: 10px; 
    right: 10px; 
    background: #d6ba47; 
    color: #050505; 
    font-size: 0.7rem; 
    font-weight: bold; 
    padding: 3px 8px; 
    border-radius: 3px; 
    z-index: 10;
}

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

@media (max-width: 768px) {
    .netflix-hero-title { font-size: 2.5rem; }
    .netflix-hero { padding-left: 20px; }
    .netflix-row-title { margin-left: 20px; }
    .netflix-row-posters { padding: 20px; }
    .poster-item { min-width: 250px; height: 140px; }
    .netflix-hero-buttons { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
    .btn-netflix { justify-content: center; }
    .trilha-card { min-width: 80vw !important; }
}

@media (max-width: 480px) {
    .netflix-hero-content { text-align: center; max-width: 90%; margin: 50px auto 0; }
}

/* Trilhas - estilo Globoplay */
.trilhas-row {
    max-width: 100%;
}

.trilhas-headline-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin: 0 50px 24px;
}

.trilhas-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #f3f1ea;
    transition: color 0.2s ease;
}

.trilhas-headline-link:hover .trilhas-headline {
    color: #d6ba47;
}

.trilhas-headline__navigation {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #d6ba47;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.trilhas-headline-link:hover .trilhas-headline__navigation {
    opacity: 1;
    transform: translateX(0);
}

.trilhas-chevron {
    display: block;
}

.trilhas-slider {
    position: relative;
}

.trilhas-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 50px;
    scrollbar-width: none;
}

.trilhas-list::-webkit-scrollbar {
    display: none;
}

.trilha-card {
    display: block;
    text-decoration: none;
    flex: 0 0 calc(33.333% - 12px);
    min-width: 280px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.trilha-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.trilha-card__container {
    position: relative;
    aspect-ratio: 16 / 17;
    overflow: hidden;
    border-radius: 14px;
    background: #111;
}

.trilha-card__background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.3s ease;
    filter: brightness(0.75);
}

.trilha-card:hover .trilha-card__background {
    transform: scale(1.08);
    filter: brightness(0.85);
}

.trilha-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 75%);
    transition: background 0.3s ease;
}

.trilha-card:hover .trilha-card__overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.25) 45%, transparent 75%);
}

.trilha-card__headline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    margin: 0;
    padding: 0 20px;
    color: #f5f2ea;
    font-size: 1.25rem;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.01em;
}

.trilhas-arrow {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    height: 80%;
}

@media (max-width: 1024px) {
    .trilha-card {
        flex: 0 0 calc(50% - 8px);
        min-width: 240px;
    }
}

@media (max-width: 768px) {
    .trilhas-headline-link {
        margin: 0 20px 18px;
    }

    .trilhas-list {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .trilha-card {
        flex: 0 0 calc(50% - 8px);
        min-width: 140px;
    }

    .trilha-card__headline {
        font-size: 0.95rem;
        padding: 0 12px;
        bottom: 12px;
    }

    .trilhas-headline__navigation {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 480px) {
    .trilha-card {
        flex: 0 0 calc(80% - 8px);
        min-width: 0;
    }

    .trilha-card__headline {
        font-size: 0.9rem;
    }
}

/* Planos / Ofertas */
.offers-section {
    padding: 60px 0 80px;
    background: transparent;
    scroll-margin-top: calc(var(--landing-header-height) + 16px);
}

.offers-section__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #f3f1ea;
    text-align: center;
    margin-bottom: 8px;
}

.offers-section__title span {
    color: #d6ba47;
}

.offers-section__subtitle {
    text-align: center;
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 30px;
}

.offers__toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    padding: 4px;
    border: 1px solid rgba(214, 186, 71, 0.2);
}

.toggle__button {
    padding: 10px 28px;
    border: none;
    background: transparent;
    color: #ccc;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.toggle__button.active {
    background: linear-gradient(135deg, #f6e27a 0%, #e0c44b 100%);
    color: #050505;
    font-weight: 700;
}

.offers__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.offer-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(125.47% 125.47% at 50% -19.72%, rgba(40, 40, 40, 0.9) 0%, rgba(25, 25, 25, 0.95) 70%, rgba(38, 38, 38, 1) 100%);
    display: flex;
    flex-direction: column;
}

.offer-card--free {
    background: radial-gradient(125.47% 125.47% at 50% -19.72%, rgba(50, 35, 15, 0.9) 0%, rgba(25, 25, 25, 0.95) 70%, rgba(38, 38, 38, 1) 100%);
}

.offer-card--monthly {
    border: 1px solid rgba(214, 186, 71, 0.3);
    background: radial-gradient(125.47% 125.47% at 50% -19.72%, rgba(128, 56, 4, 0.6) 0%, rgba(25, 25, 25, 0.95) 70%, rgba(38, 38, 38, 1) 100%);
}

.offer-card--annual {
    border: 1px solid rgba(214, 186, 71, 0.45);
    background: radial-gradient(125.47% 125.47% at 50% -19.72%, rgba(120, 0, 33, 0.6) 0%, rgba(25, 25, 25, 0.95) 70%, rgba(38, 38, 38, 1) 100%);
}

.offer-card--current {
    border-color: #f0d652;
    box-shadow: 0 0 0 2px rgba(240, 214, 82, 0.15);
}

.offer-card__badge {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(214, 186, 71, 0.9);
    color: #050505;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 0 18px 0 12px;
}

.offer-card__badge--fire {
    background: linear-gradient(135deg, #f6e27a 0%, #e0c44b 100%);
}

.offer-card__content {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.offer-card__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #f3f1ea;
    margin-bottom: 8px;
}

.offer-card__description {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 20px;
    min-height: 40px;
}

.offer-card__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.offer-card__price-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #d6ba47;
}

.offer-card__price-period {
    font-size: 0.85rem;
    color: #999;
}

.offer-card__price-detail {
    font-size: 0.78rem;
    color: #777;
    margin-bottom: 20px;
    min-height: 18px;
}

.offer-card__benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.offer-card__benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #ddd;
}

.offer-card__benefits svg {
    color: #d6ba47;
    flex-shrink: 0;
}

.offer-card__button {
    display: block;
    text-align: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

.offer-card__button:disabled {
    cursor: default;
    transform: none;
    box-shadow: none;
    opacity: 0.62;
}

.offers-section__feedback {
    max-width: 720px;
    margin: 0 auto 24px;
}

.plan-change-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 560px) {
    .plan-change-actions {
        grid-template-columns: 1fr;
    }
}

.offer-card__button--primary {
    background: linear-gradient(135deg, #f6e27a 0%, #e0c44b 100%);
    color: #050505;
}

.offer-card__button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(214, 186, 71, 0.3);
}

.offer-card__button--outline {
    background: transparent;
    color: #f3f1ea;
    border: 1px solid rgba(243, 241, 234, 0.3);
}

.offer-card__button--outline:hover {
    border-color: #d6ba47;
    color: #d6ba47;
}

@media (max-width: 768px) {
    .offers__list {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .offers-section__title {
        font-size: 2rem;
    }
}
