/* ==========================================================================
   BooklyCast — Media Kit Dinâmico
   Estilos Públicos (Dark / Light) & Painel de Edição (Admin)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Integração Total com a Página (Fundo 100% Preto ou 100% Branco)
   -------------------------------------------------------------------------- */
body:has(.bc-theme-dark),
body.bc-has-dark {
    background-color: #0a0a0a !important;
    color: #ffffff !important;
}

body:has(.bc-theme-dark) #wrapper,
body:has(.bc-theme-dark) #content,
body:has(.bc-theme-dark) .content-wrap,
body:has(.bc-theme-dark) #header,
body:has(.bc-theme-dark) #header-wrap,
body:has(.bc-theme-dark) #footer,
body:has(.bc-theme-dark) #copyrights {
    background-color: #0a0a0a !important;
    border-color: #1f1f1f !important;
}

body:has(.bc-theme-dark) #header.transparent-header:not(.sticky-header) .menu-link {
    color: rgba(255, 255, 255, 0.9) !important;
}
body:has(.bc-theme-dark) #header.transparent-header:not(.sticky-header) .menu-link:hover {
    color: #ffffff !important;
}

body:has(.bc-theme-light),
body.bc-has-light {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

body:has(.bc-theme-light) #wrapper,
body:has(.bc-theme-light) #content,
body:has(.bc-theme-light) .content-wrap {
    background-color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   2. Container Público do Media Kit
   -------------------------------------------------------------------------- */
.bc-mediakit-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 80vh;
    padding: 3rem 1.5rem 5rem 1.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Tema Preto (Dark) */
.bc-mediakit-wrapper.bc-theme-dark {
    background-color: #0a0a0a;
    color: #ffffff;
    --bc-bg: #0a0a0a;
    --bc-card-bg: #141414;
    --bc-border: #262626;
    --bc-text-main: #ffffff;
    --bc-text-muted: #a3a3a3;
    --bc-btn-bg: #ffffff;
    --bc-btn-text: #000000;
}

/* Tema Branco (Light) */
.bc-mediakit-wrapper.bc-theme-light {
    background-color: #ffffff;
    color: #0f172a;
    --bc-bg: #ffffff;
    --bc-card-bg: #f8fafc;
    --bc-border: #e2e8f0;
    --bc-text-main: #0f172a;
    --bc-text-muted: #64748b;
    --bc-btn-bg: #0f172a;
    --bc-btn-text: #ffffff;
}

.bc-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   3. Barra Superior (Idiomas & Unidades Métrico/Imperial)
   -------------------------------------------------------------------------- */
.bc-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--bc-border);
    flex-wrap: wrap;
    gap: 1rem;
}

.bc-lang-selector {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    font-weight: 700;
}

.bc-lang-btn {
    background: transparent;
    border: none;
    color: var(--bc-text-muted);
    cursor: pointer;
    padding: 3px 6px;
    transition: color 0.2s ease;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
}

.bc-lang-btn.active,
.bc-lang-btn:hover {
    color: var(--bc-text-main);
    font-weight: 800;
}

.bc-unit-toggle {
    display: inline-flex;
    background: var(--bc-card-bg);
    border: 1px solid var(--bc-border);
    border-radius: 4px;
    padding: 3px;
}

.bc-unit-btn {
    background: transparent;
    border: none;
    color: var(--bc-text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    padding: 5px 12px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.bc-unit-btn.active {
    background: var(--bc-text-main);
    color: var(--bc-bg);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   4. Layout 1: Coluna Fixa (Split)
   -------------------------------------------------------------------------- */
.bc-layout-split {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 960px) {
    .bc-layout-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.bc-split-sticky-col {
    position: sticky;
    top: 2rem;
}

.bc-split-photo-frame {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--bc-card-bg);
    border: 1px solid var(--bc-border);
    border-radius: 4px;
}

.bc-split-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --------------------------------------------------------------------------
   5. Layout 2: Centralizado (Hero)
   -------------------------------------------------------------------------- */
.bc-layout-hero .bc-hero-centered {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3.5rem auto;
}

.bc-layout-hero .bc-hero-photo-banner {
    width: 100%;
    max-height: 550px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 2.5rem;
    border: 1px solid var(--bc-border);
    border-radius: 4px;
}

.bc-layout-hero .bc-hero-photo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   6. Layout 3: Mosaico (Comp Card)
   -------------------------------------------------------------------------- */
.bc-layout-compcard .bc-compcard-mosaic {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

@media (max-width: 768px) {
    .bc-layout-compcard .bc-compcard-mosaic {
        grid-template-columns: 1fr;
    }
}

.bc-compcard-mosaic-main {
    grid-row: span 2;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid var(--bc-border);
}

.bc-compcard-mosaic-slot {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid var(--bc-border);
}

.bc-compcard-mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   7. Tipografia Editorial
   -------------------------------------------------------------------------- */
.bc-model-tagline {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bc-text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.bc-model-name {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 0.8rem 0;
    color: var(--bc-text-main);
    text-transform: uppercase;
}

.bc-model-base {
    font-size: 0.95rem;
    color: var(--bc-text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.bc-model-bio {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--bc-text-main);
    margin-bottom: 2.5rem;
    max-width: 650px;
}

/* --------------------------------------------------------------------------
   8. Grid de Medidas Corporais
   -------------------------------------------------------------------------- */
.bc-section-title {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--bc-text-muted);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--bc-border);
}

.bc-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1.5rem 1rem;
    margin-bottom: 3rem;
}

.bc-stat-item {
    border-left: 1px solid var(--bc-border);
    padding-left: 1rem;
}

.bc-stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bc-text-muted);
    margin-bottom: 0.35rem;
}

.bc-stat-val {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--bc-text-main);
}

/* --------------------------------------------------------------------------
   9. Agências & Botões
   -------------------------------------------------------------------------- */
.bc-agencies-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.bc-agency-box {
    padding: 1.5rem;
    background: var(--bc-card-bg);
    border: 1px solid var(--bc-border);
    border-radius: 4px;
}

.bc-agency-city {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bc-text-muted);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.bc-agency-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--bc-text-main);
}

.bc-agency-link {
    color: var(--bc-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.bc-agency-link:hover {
    color: var(--bc-text-main);
    text-decoration: underline;
}

.bc-action-btn {
    display: inline-block;
    background: var(--bc-btn-bg);
    color: var(--bc-btn-text);
    padding: 0.85rem 2rem;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 2px;
    transition: opacity 0.2s ease;
}

.bc-action-btn:hover {
    opacity: 0.85;
    color: var(--bc-btn-text);
}

