/*
Theme Name: Estranhos Encontros
Theme URI: https://estranhosencontros.com
Author: Estranhos Encontros
Description: Tema personalizado para o Festival de Cinema Independente de São Paulo
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: estranhos-encontros
*/

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #000000;
    --text: #d4cfbf;
    --text-dim: #8a8578;
    --led: #c8d44e;
    --led-dim: #7a8230;
    --accent-blue: #7b8cff;
    --accent-green: #c8d44e;
    --border: rgba(212, 207, 191, 0.15);
    --font-mono: 'Space Mono', 'Courier New', monospace;
    --font-led: 'VT323', monospace;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =============================================
   LAYOUT
   ============================================= */
.site-wrapper {
    min-height: 100vh;
    position: relative;
}

.site-content {
    padding: 0;
}

/* =============================================
   NAVIGATION
   ============================================= */
.site-nav {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.site-nav a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1.4;
    transition: opacity 0.2s;
}

.site-nav a:hover {
    text-decoration: none;
    opacity: 0.7;
}

.site-nav a .checkbox {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 1px solid var(--text);
    flex-shrink: 0;
}

.site-nav a.current-menu-item .checkbox,
.site-nav a.active .checkbox {
    background-color: var(--text);
}

/* =============================================
   LOGO (top right)
   ============================================= */
.site-logo {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    z-index: 100;
}

.site-logo a {
    display: block;
}

.site-logo svg {
    width: 48px;
    height: 48px;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.site-logo a:hover svg {
    opacity: 1;
}

/* =============================================
   HOME PAGE
   ============================================= */
.page-home {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 4rem 2rem;
}

.home-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    text-align: center;
}

.home-logo-svg {
    width: min(280px, 80vw);
}

.home-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

.home-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    transition: opacity 0.2s;
}

.home-nav a:hover {
    text-decoration: none;
    opacity: 0.65;
}

.home-nav .checkbox {
    display: inline-block;
    width: 11px;
    height: 11px;
    border: 1px solid var(--text);
    flex-shrink: 0;
}

.home-nav-row {
    display: flex;
    gap: 1.5rem;
}

/* =============================================
   INNER PAGES — COMMON
   ============================================= */
.page-inner {
    padding: 7rem 2rem 4rem;
    max-width: 960px;
    margin: 0 auto;
}

.page-inner-wide {
    padding: 7rem 2rem 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Page section header (bilingual) */
.section-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 0;
}

.section-header .label-left {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.3;
}

.section-header .label-right {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: right;
    line-height: 1.3;
}

.section-header .logo-center svg {
    width: 56px;
    height: 56px;
    display: block;
    margin: 0 auto;
}

/* =============================================
   FILME DO MÊS
   ============================================= */
.page-filme {
    padding: 6rem 2rem 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.filme-embed {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #d6ddb8;
    margin-bottom: 2rem;
}

.filme-embed iframe,
.filme-embed video {
    width: 100%;
    height: 100%;
    border: none;
}

.filme-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.filme-title {
    font-family: var(--font-led);
    font-size: 3.2rem;
    letter-spacing: 0.08em;
    color: var(--led);
    line-height: 1;
    text-transform: uppercase;
}

.filme-doc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--text);
    font-size: 0.6rem;
    flex-shrink: 0;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.filme-doc-icon:hover { opacity: 1; }

.filme-meta {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.filme-sinopse {
    font-size: 0.82rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.filme-creditos {
    font-size: 0.65rem;
    line-height: 1.6;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}

.filme-nav-lateral {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}

.filme-nav-lateral .prev { text-align: left; }
.filme-nav-lateral .next { text-align: right; }

.filme-embed-2 {
    width: 60%;
    aspect-ratio: 4/3;
    background-color: #d6ddb8;
    margin-top: 2rem;
}

/* =============================================
   CHAMADA POR FILMES
   ============================================= */
.page-chamada {
    padding: 5rem 2rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.chamada-bilingual {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.chamada-lang-block {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.chamada-lang-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    padding-top: 0.1rem;
}

.chamada-lang-text {
    font-size: 0.78rem;
    line-height: 1.75;
    text-align: justify;
}

.chamada-categories-title {
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 0.03em;
    color: var(--text);
    margin: 2rem 0 1.5rem;
    font-family: var(--font-mono);
    font-weight: 700;
}

.chamada-categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

.chamada-category h3 {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.chamada-category p {
    font-size: 0.7rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.chamada-deadline {
    font-family: var(--font-led);
    font-size: 1.6rem;
    color: var(--led);
    letter-spacing: 0.08em;
    align-self: center;
    text-align: right;
}

.chamada-deadline span {
    display: block;
    font-size: 2.2rem;
}

.chamada-submit-btn {
    display: inline-block;
    background-color: #9ba3ff;
    color: #000;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.9rem 2.5rem;
    cursor: pointer;
    border: none;
    margin: 1.5rem 0;
    transition: opacity 0.2s;
}

.chamada-submit-btn:hover {
    opacity: 0.8;
    text-decoration: none;
}

.chamada-poster {
    margin-top: 2rem;
    width: 120px;
}

/* =============================================
   ARQUIVO
   ============================================= */
.page-arquivo {
    padding: 6rem 2rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.arquivo-table {
    width: 100%;
    border-collapse: collapse;
}

.arquivo-table thead th {
    font-family: var(--font-led);
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    color: var(--led);
    text-transform: uppercase;
    text-align: left;
    padding: 0.5rem 1rem 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-weight: normal;
}

.arquivo-table tbody td {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.7rem 1rem 0.7rem 0;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    line-height: 1.3;
}

.arquivo-table tbody tr:hover td {
    color: var(--led);
}

/* =============================================
   SOBRE
   ============================================= */
.page-sobre {
    padding: 6rem 2rem 4rem;
    max-width: 960px;
    margin: 0 auto;
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.sobre-images {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sobre-img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #c8d4b0;
}

.sobre-img-placeholder-sm {
    width: 65%;
    aspect-ratio: 4/3;
    background-color: #c8d4b0;
}

.sobre-text p {
    font-size: 0.8rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    text-align: justify;
}

.sobre-text p strong {
    font-weight: 700;
}

.sobre-email {
    display: inline-block;
    font-size: 0.78rem;
    margin-bottom: 2rem;
    text-decoration: underline;
    color: var(--text);
}

.expediente-title {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    color: var(--text);
}

.expediente-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.expediente-item {
    font-size: 0.72rem;
    line-height: 1.4;
}

.expediente-item .name {
    font-weight: 700;
    display: block;
}

.expediente-item .role {
    color: var(--text-dim);
    font-size: 0.68rem;
}

/* =============================================
   APOIE
   ============================================= */
.page-apoie {
    padding: 6rem 2rem 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.apoie-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.apoie-header .label { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.apoie-header .label.right { text-align: right; }

.apoie-text {
    font-size: 0.8rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: justify;
}

.apoie-pix {
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.75rem;
}

.apoie-pix h3 {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .site-nav {
        display: none; /* Handled by home nav on mobile */
    }

    .sobre-grid {
        grid-template-columns: 1fr;
    }

    .chamada-categories-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-header .label-right {
        text-align: center;
    }

    .filme-title {
        font-size: 2.2rem;
    }

    .arquivo-table thead th {
        font-size: 1rem;
    }

    .arquivo-table tbody td {
        font-size: 0.65rem;
    }

    .site-logo {
        top: 1rem;
        right: 1rem;
    }
}
