/* index.css - O Estúdio do Diretor */

:root {
    --bg-dark: #121212;
    --bg-panel: #1a1a1a;
    --border-analog: #333;
    --text-primary: #e0e0e0;
    --text-muted: #888;
    --accent-gold: #d4af37;
    --accent-red: #c0392b;
    --led-green: #2ecc71;
    --led-red: #e74c3c;
    --font-title: 'Oswald', sans-serif;
    --font-script: 'Courier Prime', monospace;
}

body.studio-director {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    overflow-y: auto;
    font-family: var(--font-script);
}

/* Film Grain */
.film-grain {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

.projector-light {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200vw;
    height: 200vh;
    background: radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    animation: flicker 4s infinite alternate;
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.8; }
}

/* HERO SECTION */
#hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height, 60px);
    text-align: center;
    overflow: hidden;
}

.hero-content {
    z-index: 10;
    max-width: 1000px;
    width: 90%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slate-header {
    display: inline-flex;
    gap: 15px;
    border: 2px solid var(--text-muted);
    padding: 5px 15px;
    font-family: var(--font-title);
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.5);
}

.studio-title {
    font-family: var(--font-title);
    font-size: 5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 8px;
    margin: 0;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
    text-transform: uppercase;
}

.analog-tagline {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--accent-gold);
    letter-spacing: 4px;
    margin-top: 10px;
    margin-bottom: 30px;
    font-weight: 500;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.director-note {
    background: #eebd7812;
    padding: 15px 25px;
    border-left: 4px solid var(--accent-gold);
    max-width: 700px;
    margin: 0 auto 40px;
}

.typewriter-text {
    font-family: var(--font-script);
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}

/* HERO SKETCH CAROUSEL (Draft Mode) */
.hero-sketch-container {
    position: relative;
    width: 90%;
    max-width: 650px; /* Expandido para Escala Cinematográfica */
    aspect-ratio: 900 / 1273; /* PROPORÇÃO EXATA DA SUA PÁGINA */
    margin: 40px auto;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: #000;
}

.hero-sketch-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.sketch-page {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sketch-page.active {
    opacity: 0.8; /* Opacidade reforçada para destacar a arte */
}

.sketch-page img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none; /* REMOVIDOS OS FILTROS DE COR AZULADA */
}

.sketch-overlay-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 2;
}

/* EQUIPMENT PANEL / PROTOCOL GATE */
.equipment-panel {
    background: #1e1e1e;
    border: 2px solid #333;
    border-radius: 4px;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 10px 30px rgba(0,0,0,0.8),
        0 0 0 1px #000;
    position: relative;
}

.protocol-gate {
    margin: 40px auto;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    box-sizing: border-box;
    text-align: center;
}

.protocol-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.protocol-header h3 {
    font-family: var(--font-title);
    letter-spacing: 2px;
    color: #fff;
    margin: 0;
}

.status-led {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.status-led.online {
    background: var(--led-green);
    box-shadow: 0 0 8px var(--led-green), inset 0 2px 4px rgba(255,255,255,0.5);
}

.status-led.warning {
    background: var(--accent-gold);
    box-shadow: 0 0 8px var(--accent-gold), inset 0 2px 4px rgba(255,255,255,0.5);
}

.protocol-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.5;
}

.hardware-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ANALOG BUTTONS */
.analog-btn {
    font-family: var(--font-title);
    font-size: 1.1rem;
    letter-spacing: 1px;
    padding: 12px 24px;
    background: linear-gradient(to bottom, #4a4a4a, #2a2a2a);
    border: 1px solid #111;
    border-top-color: #666;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    transition: all 0.1s ease;
}

.analog-btn:hover {
    background: linear-gradient(to bottom, #555, #333);
}

.analog-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.6), inset 0 2px 5px rgba(0,0,0,0.5);
    border-top-color: #222;
}

.play-btn { color: var(--text-primary); }
.play-btn .btn-icon { color: var(--led-green); font-size: 0.9rem; }
.admin-btn .btn-icon { color: var(--text-muted); font-size: 1.2rem; }

/* FILM STRIP CAROUSEL (Infinite Rolling Mode) */
.film-strip-container {
    width: 100%;
    margin: 50px 0;
    padding: 0;
    position: relative;
    background-color: #050505;
    overflow: hidden;
    background-image: 
        radial-gradient(#222 30%, transparent 35%),
        radial-gradient(#222 30%, transparent 35%);
    background-size: 30px 25px;
    background-repeat: repeat-x;
    background-position: top center, bottom center;
}

.film-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 25px 0;
    display: flex;
    /* Efeito de fade nas bordas para o rolo de filme */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.film-strip {
    display: flex;
    gap: 0px;
    padding: 0;
    width: max-content;
    animation: roll-film 40s linear infinite; /* Rotação suave e constante */
    background-color: #1a1a1a;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

@keyframes roll-film {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-320px * 5)); } /* Desloca exatamente um set de 5 frames */
}

.film-frame {
    flex: 0 0 320px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-left: 2px solid #111;
    border-right: 2px solid #111;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    filter: sepia(0.3) opacity(0.8);
    overflow: hidden;
    position: relative;
}

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

.film-frame:hover {
    filter: sepia(0) opacity(1);
    z-index: 2;
    background: #111;
}

.film-frame:hover img {
    transform: scale(1.05);
}


/* THREE PILLARS */
#three-pillars {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 60px 20px;
    background: rgba(0,0,0,0.6);
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.pillar {
    text-align: center;
    max-width: 250px;
    padding: 20px;
}

.pillar-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.pillar h4 {
    font-family: var(--font-title);
    color: var(--accent-gold);
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-size: 1.2rem;
    text-transform: uppercase;
}

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

/* OBRAS SECTION - CAROUSEL MODE */
#obras-section {
    padding: 80px 0;
    background: var(--bg-dark);
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
}

.carousel-nav-controls {
    display: flex;
    gap: 15px;
}

.analog-nav-btn {
    background: #111;
    border: 1px solid #333;
    color: var(--accent-gold);
    width: 50px;
    height: 50px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.analog-nav-btn:hover {
    background: #222;
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.obras-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.obras-container {
    display: flex;
    gap: 30px;
    padding: 0 5vw; /* Margem de segurança para o início do carrossel */
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    width: max-content;
}

.obra-card {
    position: relative;
    cursor: pointer;
    border: 1px solid #333;
    overflow: hidden;
    width: 300px; /* Largura fixa para consistência do carrossel */
    aspect-ratio: 1 / 1.4;
    background: #000;
    flex-shrink: 0;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.obra-card:hover {
    transform: scale(1.05);
    border-color: var(--accent-gold);
    z-index: 10;
}


.obra-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--accent-gold);
    color: #000;
    font-family: var(--font-title);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 40px;
    transform: rotate(45deg);
    z-index: 5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.obra-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: none; /* REMOVIDO EFEITO SEPIA/QUEIMADO */
}

.obra-card:hover .obra-image {
    transform: scale(1.05);
    filter: brightness(1.1); /* Um leve brilho ao passar o mouse em vez de sepia */
}

.obra-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 80%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.obra-title {
    font-family: var(--font-title);
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.obra-genre {
    color: var(--accent-gold);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.read-portal-btn {
    background: var(--accent-gold);
    color: #000;
    text-decoration: none;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 8px 15px;
    border-radius: 4px;
    text-align: center;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    border: 1px solid #000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.read-portal-btn:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 20px var(--accent-gold);
    transform: translateY(-2px);
}

/* FOOTER */
#site-footer {
    position: relative !important;
    bottom: auto !important;
}

.footer-legal-bar {
    padding: 40px 20px;
    background: #0a0a0a;
    border-top: 1px solid #222;
    text-align: center;
    font-size: 0.8rem;
    color: #555;
    font-family: var(--font-script);
}

.status-box {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #888;
}

.legal-warning {
    max-width: 800px;
    margin: 10px auto 0;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    backdrop-filter: blur(5px);
}

.modal-size {
    max-width: 500px;
    width: 90%;
    padding: 30px;
}

.modal-header-analog {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-title {
    font-family: var(--font-title);
    color: #fff;
    font-size: 1.8rem;
    margin: 0;
    letter-spacing: 2px;
}

.vu-meter {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.vu-meter span {
    width: 6px;
    height: 18px;
    background: #333;
    border-radius: 1px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}
.vu-meter span:nth-child(1), .vu-meter span:nth-child(2) { background: var(--led-green); }
.vu-meter span:nth-child(3) { background: #f1c40f; }
.vu-meter span:nth-child(4), .vu-meter span:nth-child(5) { background: #333; }

.modal-divider {
    height: 2px;
    background: #333;
    margin-bottom: 20px;
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.modal-instructions {
    font-size: 0.95rem;
    color: #aaa;
    margin-bottom: 25px;
    line-height: 1.5;
}

.input-slot {
    background: #0a0a0a;
    padding: 10px;
    border: 1px solid #000;
    border-radius: 4px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.8);
    margin-bottom: 25px;
}

.analog-input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--accent-gold);
    font-family: var(--font-script);
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 4px;
    outline: none;
    text-transform: uppercase;
}

.analog-input::placeholder {
    color: #444;
}

.execute-btn {
    width: 100%;
    font-size: 1.2rem;
    padding: 15px;
    color: var(--accent-gold);
    border-color: #555;
    background: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
}

.execute-btn:hover {
    color: #fff;
    background: linear-gradient(to bottom, #333, #222);
}

.modal-footer {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    margin-top: 25px;
}

/* Overrides para hq.css conflitante se houver */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #666;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}
.modal-close:hover { color: #fff; }

/* PRICING SECTION */
#pricing-section {
    padding: 60px 20px;
    background-color: var(--bg-dark);
    max-width: 1400px; /* Aumentado para comportar 4 cards */
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 coluna */
    gap: 20px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet: 2 colunas */
    }
}

@media (min-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr); /* Desktop: 4 colunas lado a lado */
    }
}

.pricing-card {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border-color: var(--accent-gold);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 10px 40px rgba(212, 175, 55, 0.15), 0 0 0 1px var(--accent-gold);
    transform: scale(1.02);
    z-index: 10;
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-5px);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: #000;
    padding: 4px 15px;
    font-family: var(--font-title);
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.pricing-header {
    text-align: center;
    border-bottom: 1px solid #333;
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.pricing-header h3 {
    font-family: var(--font-title);
    color: #fff;
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin: 0 0 15px 0;
}

.pricing-header .price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.pricing-header .price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: normal;
}

.pricing-desc {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.5;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1;
}

.pricing-features li {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features .check {
    color: var(--led-green);
    font-weight: bold;
}

.pricing-features .cross {
    color: var(--led-red);
    opacity: 0.5;
}

.pricing-btn {
    width: 100%;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    font-size: 1rem;
}

.highlight-btn {
    background: linear-gradient(to bottom, #d4af37, #aa8c2c);
    color: #000;
    border-color: #ffd700;
}

.highlight-btn:hover {
    background: linear-gradient(to bottom, #e5be3c, #c5a333);
    color: #000;
}

@media (max-width: 768px) {
    .studio-title { font-size: 3.5rem; }
    .analog-tagline { font-size: 1.1rem; }
    .comic-grid-sketch { grid-template-columns: 1fr; grid-template-rows: repeat(4, 150px); }
    .p1 { grid-row: auto; }
    #three-pillars { flex-direction: column; align-items: center; gap: 30px; padding: 40px 20px;}
}

@media (max-width: 480px) {
    .studio-title { font-size: 2.5rem; letter-spacing: 4px; }
    .hardware-buttons { flex-direction: column; }
    .film-frame { flex: 0 0 260px; }
    .modal-size { padding: 20px; }
    .modal-title { font-size: 1.3rem; }
}
; }
}
