/* Arte Play Produtora - Custom Styles & Typography Engine */
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-display: 'Cinzel', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --grid-gap: 8px;
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================= 6 TIPOGRAFIAS SMARTALBUMS ================= */
.tipo-simples {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  letter-spacing: normal !important;
}

.tipo-elegante {
  font-family: 'Playfair Display', Georgia, serif !important;
  letter-spacing: 0.02em !important;
}

.tipo-classico {
  font-family: 'Cinzel', 'Times New Roman', serif !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
}

.tipo-moderno {
  font-family: 'Montserrat', sans-serif !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
}

.tipo-audacioso {
  font-family: 'Bodoni Moda', serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

.tipo-mono {
  font-family: 'Space Mono', monospace !important;
  letter-spacing: 0.05em !important;
}

/* ================= 5 PALETAS DE CORES ================= */
/* 1. Branco / Claro Editorial */
.theme-palette-light {
  --theme-bg: #ffffff;
  --theme-card: #f9f9fb;
  --theme-text: #121217;
  --theme-sub: #636374;
  --theme-border: rgba(0, 0, 0, 0.08);
  --theme-nav: rgba(255, 255, 255, 0.88);
  --theme-accent: #b89467;
}

/* 2. Preto / Cinema Luxury */
.theme-palette-dark {
  --theme-bg: #0c0c0e;
  --theme-card: #15151a;
  --theme-text: #f4f4f7;
  --theme-sub: #9494a3;
  --theme-border: rgba(255, 255, 255, 0.08);
  --theme-nav: rgba(18, 18, 22, 0.82);
  --theme-accent: #e5b97d;
}

/* 3. Champagne & Nude */
.theme-palette-champagne {
  --theme-bg: #f8f5f0;
  --theme-card: #ffffff;
  --theme-text: #2d2824;
  --theme-sub: #7d736a;
  --theme-border: rgba(90, 75, 60, 0.12);
  --theme-nav: rgba(248, 245, 240, 0.9);
  --theme-accent: #b8864e;
}

/* 4. Areia & Terra */
.theme-palette-sand {
  --theme-bg: #efe8de;
  --theme-card: #e5dcce;
  --theme-text: #28211b;
  --theme-sub: #695e54;
  --theme-border: rgba(60, 45, 30, 0.14);
  --theme-nav: rgba(239, 232, 222, 0.9);
  --theme-accent: #945f3a;
}

/* 5. Verde Sálvia & Mineral */
.theme-palette-sage {
  --theme-bg: #141b18;
  --theme-card: #1c2522;
  --theme-text: #eaf2ee;
  --theme-sub: #8fa69a;
  --theme-border: rgba(143, 166, 154, 0.15);
  --theme-nav: rgba(20, 27, 24, 0.9);
  --theme-accent: #78a88f;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0f0f11;
}
::-webkit-scrollbar-thumb {
  background: #2a2a30;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f48;
}

/* Glassmorphism */
.glass-panel {
  background: var(--theme-nav, rgba(18, 18, 22, 0.75));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--theme-border, rgba(255, 255, 255, 0.08));
}

/* Masonry Columns */
.masonry-grid {
  column-gap: var(--grid-gap, 8px);
}
@media (min-width: 640px) {
  .masonry-grid-2 { column-count: 2; }
  .masonry-grid-3 { column-count: 3; }
  .masonry-grid-4 { column-count: 4; }
  .masonry-grid-5 { column-count: 5; }
}
@media (max-width: 639px) {
  .masonry-grid { column-count: 1; }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: var(--grid-gap, 8px);
}

/* Spacing classes */
.grid-spacing-fino {
  --grid-gap: 6px;
  gap: 6px !important;
}

.grid-spacing-largo {
  --grid-gap: 20px;
  gap: 20px !important;
}

/* Album Spread (Lâmina Encadernada) */
.album-spread-container {
  perspective: 1600px;
}

.album-spread-book {
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  background: #fbfbfa;
}

.album-gutter {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 40px;
  transform: translateX(-50%);
  background: linear-gradient(to right, 
    rgba(0,0,0,0) 0%, 
    rgba(0,0,0,0.08) 35%, 
    rgba(0,0,0,0.22) 50%, 
    rgba(0,0,0,0.08) 65%, 
    rgba(0,0,0,0) 100%
  );
  pointer-events: none;
  z-index: 10;
}

/* Ken Burns effect for Slideshow */
@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.06) translate(-1%, -1%); }
  100% { transform: scale(1) translate(0, 0); }
}

.ken-burns-active {
  animation: kenburns 14s infinite alternate ease-in-out;
}
