/* 
    CineScope - Design System & Navigation Styles
    Fonte: Roboto Mono
*/

:root {
    /* Paleta Dark Premium */
    --primary: #8e44ad;
    --primary-light: #9b59b6;
    --bg-dark: #0f0f13;
    --header-bg-dark: rgba(15, 15, 19, 0.85);
    --text-main-dark: #ffffff;
    --text-muted-dark: #b3b3b3;
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Paleta Light */
    --bg-light: #f8f9fa;
    --header-bg-light: rgba(248, 249, 250, 0.85);
    --text-main-light: #1a1a1a;
    --text-muted-light: #666666;
    --glass-border-light: rgba(0, 0, 0, 0.1);

    /* Dimensões */
    --header-height: 80px;
    --container-max: 1200px;
    
    /* Font Weight */
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-bold: 700;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Modos de Tema */
body.dark-theme {
    --bg: var(--bg-dark);
    --header-bg: var(--header-bg-dark);
    --text-main: var(--text-main-dark);
    --text-muted: var(--text-muted-dark);
    --border: var(--glass-border);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    background-color: var(--bg);
    color: var(--text-main);
}

body.light-theme {
    --bg: var(--bg-light);
    --header-bg: var(--header-bg-light);
    --text-main: var(--text-main-light);
    --text-muted: var(--text-muted-light);
    --border: var(--glass-border-light);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    background-color: var(--bg);
    color: var(--text-main);
}

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

body {
    font-family: 'Roboto Mono', monospace;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Header */
.main-header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    background-color: var(--header-bg);
}

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

/* Logo */
.logo a {
    font-size: 1.8rem;
    font-weight: var(--fw-bold);
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

/* Nav Menu (Desktop) */
.nav-menu ul {
    display: flex;
    gap: 2.5rem;
}

.nav-menu a {
    font-size: 1rem;
    font-weight: var(--fw-medium);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--primary);
}

/* Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.icon-btn {
    font-size: 1.2rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

.icon-btn:hover {
    background: rgba(142, 68, 173, 0.1);
    color: var(--primary);
}

/* Hamburger */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    z-index: 1001;
}

.bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
    transform-origin: left;
}

/* Search Overlay */
.search-overlay {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--bg);
    display: flex;
    align-items: center;
    transition: var(--transition);
    z-index: 1002;
    border-bottom: 1px solid var(--primary);
}

.search-overlay.active {
    top: 0;
}

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

#search-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    font-family: inherit;
    padding: 1rem 0;
    outline: none;
}

#search-close {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-left: 1rem;
}

/* Responsive Tablet */
@media (max-width: 1024px) {
    .nav-menu ul {
        gap: 1.5rem;
    }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .nav-menu a {
        font-size: 1.8rem;
    }

    /* Animação Hamburger -> X */
    .hamburger-btn.active .bar-1 {
        transform: rotate(45deg);
    }
    .hamburger-btn.active .bar-2 {
        opacity: 0;
    }
    .hamburger-btn.active .bar-3 {
        transform: rotate(-45deg);
    }
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.carousel-track {
    height: 100%;
    width: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.carousel-slide .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(15, 15, 19, 0.9) 0%,
        rgba(15, 15, 19, 0.4) 50%,
        rgba(15, 15, 19, 0.1) 100%
    );
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    padding: 0 2rem;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 0.3s;
}

.carousel-slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.4);
}

.slide-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: var(--fw-bold);
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.slide-description {
    font-size: 1.1rem;
    color: var(--text-muted-dark);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.8;
}

.slide-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: var(--fw-medium);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(142, 68, 173, 0.3);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Carousel Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 100;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.carousel-control:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.carousel-control.prev {
    left: 2rem;
}

.carousel-control.next {
    right: 2rem;
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 100;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slide-title {
        font-size: 2.2rem;
    }
    
    .slide-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .carousel-control {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .carousel-control.prev {
        left: 1rem;
    }
    
    .carousel-control.next {
        right: 1rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        width: 100%;
        justify-content: center;
    }
    
    .carousel-slide .overlay {
        background: linear-gradient(
            to top,
            rgba(15, 15, 19, 0.95) 0%,
            rgba(15, 15, 19, 0.7) 40%,
            rgba(15, 15, 19, 0.3) 100%
        );
    }
    
    .slide-content {
        align-self: flex-end;
        padding-bottom: 6rem;
        text-align: center;
        max-width: 100%;
    }
    
    .slide-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .slide-actions {
        justify-content: center;
    }
}

/* Proposal Section */
.proposal-section {
    padding: 100px 0;
    background-color: var(--bg);
}

.proposal-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: var(--fw-bold);
    color: var(--text-main);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 1.5rem auto 0;
}

/* Interactive Highlights */
.interactive-highlights {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.highlights-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.highlight-item:hover {
    background: rgba(142, 68, 173, 0.05);
    border-color: rgba(142, 68, 173, 0.3);
    transform: translateX(10px);
}

.highlight-item.active {
    background: rgba(142, 68, 173, 0.1);
    border-color: var(--primary);
    box-shadow: var(--glass-shadow);
}

.highlight-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.highlight-item.active .highlight-icon {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary);
}

.highlight-info h3 {
    font-size: 1.25rem;
    font-weight: var(--fw-bold);
    margin-bottom: 0.3rem;
    color: var(--text-main);
    transition: var(--transition);
}

.highlight-item.active .highlight-info h3 {
    color: var(--primary-light);
}

.highlight-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Highlight Display Area */
.highlight-display {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--border);
}

.display-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
    transform: scale(1.05);
}

.display-content.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.image-wrapper {
    width: 100%;
    height: 100%;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.display-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    color: white;
}

.display-overlay h3 {
    font-size: 1.8rem;
    font-weight: var(--fw-bold);
    color: #fff;
    background: var(--primary);
    display: inline-table; /* Fit content with padding */
    padding: 0.6rem 2rem;
    margin-bottom: 1.2rem;
    margin-left: -2.5rem; /* Aligns with the container edge */
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    box-shadow: 10px 0 20px rgba(0, 0, 0, 0.3);
    clip-path: polygon(0 0, 100% 0, 95% 50%, 100% 100%, 0 100%); /* Ribbon effect */
}

.display-overlay p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e0e0e0;
    max-width: 90%;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Better readability */
}

/* Responsive Highlights */
@media (max-width: 1024px) {
    .interactive-highlights {
        grid-template-columns: 1fr;
    }
    
    .highlight-display {
        height: 400px;
        order: -1;
    }
    
    .highlight-item:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .highlight-display {
        height: 300px;
    }
    
    .display-overlay {
        padding: 1.5rem;
    }
    
    .display-overlay h3 {
        font-size: 1.4rem;
    }
    
    .display-overlay p {
        font-size: 0.95rem;
    }
}

/* Content Grid Sections */
.content-grid-section {
    padding: 80px 0;
    background-color: var(--bg);
}

.content-grid-section.alt-bg {
    background-color: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.section-header-flex .section-title {
    margin-bottom: 0;
}

/* Filter Group */
.filter-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.filter-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-scroll {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding-bottom: 5px;
}

.filter-scroll::-webkit-scrollbar {
    height: 3px;
}

.filter-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.filter-chip {
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-size: 0.85rem;
    white-space: nowrap;
    transition: var(--transition);
}

.filter-chip:hover {
    background: rgba(142, 68, 173, 0.1);
    border-color: var(--primary);
}

.filter-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.3);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2.5rem;
}

/* Content Card */
.content-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.content-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.card-image {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.content-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 19, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

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

.action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    transform: translateY(20px);
}

.content-card:hover .action-btn {
    transform: translateY(0);
}

.action-btn:nth-child(2) {
    background: rgba(255, 255, 255, 0.2);
    transition-delay: 0.1s;
}

.action-btn:hover {
    transform: scale(1.1) !important;
}

.card-year {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: var(--fw-bold);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-badges {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.card-badge {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: var(--fw-bold);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-badge.highlight {
    background: var(--primary);
    border-color: var(--primary);
}

/* Card Info */
.card-info {
    padding: 1.5rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.genre-tag {
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rating {
    color: #f1c40f;
    font-size: 0.9rem;
    font-weight: var(--fw-bold);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card-info h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: var(--fw-bold);
    transition: var(--transition);
}

.content-card:hover .card-info h3 {
    color: var(--primary-light);
}

/* Responsive Grid */
@media (max-width: 768px) {
    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .card-info {
        padding: 1rem;
    }
}


