/* ====================================================
   Self-Hosted Photo Album - Estilo Editorial Luxuoso
   Inspirado em referências editoriais e Albuns.Online
   ==================================================== */

:root {
  --bg-color: #FAF6F0;
  --bg-surface: #FFFFFF;
  --text-main: #2B211E;
  --text-muted: #7E6E68;
  --text-light: #A89B95;
  --border-color: #EAE0D5;
  --border-light: #F3ECE4;
  --accent: #8E4A49;
  --accent-hover: #733736;
  --accent-soft: rgba(142, 74, 73, 0.08);
  --gold: #C5A059;
  --gold-soft: rgba(197, 160, 89, 0.12);
  --shadow-sm: 0 4px 12px rgba(43, 33, 30, 0.04);
  --shadow-md: 0 10px 30px rgba(43, 33, 30, 0.07);
  --shadow-lg: 0 20px 50px rgba(43, 33, 30, 0.12);
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ====================================================
   CORTINA DE BOAS-VINDAS (CURTAIN)
   ==================================================== */
#curtain {
  position: fixed;
  inset: 0;
  background-color: var(--bg-color);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.8s;
}

#curtain.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.curtain-card {
  max-width: 520px;
  width: 100%;
  text-align: center;
  background: var(--bg-surface);
  padding: 3.5rem 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  animation: curtainCardIn 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes curtainCardIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.curtain-avatar-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 1.8rem;
}

.curtain-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-surface);
  box-shadow: 0 8px 24px rgba(43, 33, 30, 0.15);
}

.curtain-badge {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.curtain-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.curtain-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.curtain-message {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.2rem;
  padding: 0 1rem;
  font-style: italic;
}

.btn-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.95rem 2.2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(142, 74, 73, 0.28);
  transition: var(--transition);
}

.btn-open:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(142, 74, 73, 0.35);
}

.btn-open svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.btn-open:hover svg {
  transform: translateY(3px);
}

/* ====================================================
   BARRA SUPERIOR (HEADER)
   ==================================================== */
.top-nav {
  position: sticky;
  top: 0;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 90;
  border-bottom: 1px solid var(--border-color);
  padding: 0.9rem 2rem;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
}

.brand-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

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

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

.badge-count {
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-weight: 600;
}

/* ====================================================
   HERO / CABEÇALHO DO ENSAIO
   ==================================================== */
.album-hero {
  max-width: 900px;
  margin: 3.5rem auto 2.5rem;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--text-main);
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.hero-meta-strip {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-instructions {
  background: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* ====================================================
   GRID DE FOTOGRAFIAS (MASONRY ADAPTATIVO)
   ==================================================== */
.gallery-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem 1.5rem 6rem;
}

.photo-grid {
  columns: 4 280px;
  column-gap: 1.4rem;
}

@media (max-width: 1024px) {
  .photo-grid {
    columns: 3 240px;
  }
}

@media (max-width: 768px) {
  .photo-grid {
    columns: 2 160px;
    column-gap: 0.8rem;
  }
  .album-hero {
    margin: 2rem auto 1.5rem;
  }
  .hero-title {
    font-size: 2rem;
  }
}

.photo-card {
  break-inside: avoid;
  margin-bottom: 1.4rem;
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .photo-card {
    margin-bottom: 0.8rem;
  }
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-color);
}

.photo-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
}

.photo-card:hover .photo-img {
  transform: scale(1.025);
}

/* Botão de Coração Flutuante no Card */
.card-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  z-index: 5;
}

.card-fav-btn:hover {
  transform: scale(1.15);
  background: #FFFFFF;
  color: var(--accent);
}

.card-fav-btn.active {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.card-fav-btn svg {
  width: 18px;
  height: 18px;
}

/* ====================================================
   LIGHTBOX EM TELA CHEIA
   ==================================================== */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 15, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  color: #FFFFFF;
}

.lb-counter {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.lb-tools {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.lb-tool-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.lb-tool-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.lb-tool-btn.active {
  background: var(--accent);
  border-color: var(--accent);
}

.lb-tool-btn svg {
  width: 20px;
  height: 20px;
}

.lb-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 4rem;
  overflow: hidden;
}

@media (max-width: 768px) {
  .lb-stage {
    padding: 1rem;
  }
}

.lb-image {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  user-select: none;
  transition: transform 0.2s ease;
}

.lb-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.lb-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }

@media (max-width: 768px) {
  .lb-nav-btn {
    display: none; /* No mobile usamos swipe por toque */
  }
}

/* ====================================================
   BARRA FLUTUANTE DE FAVORITAS (BOTTOM PILL)
   ==================================================== */
.floating-favorites-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: rgba(43, 33, 30, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFFFFF;
  border-radius: 50px;
  padding: 0.6rem 0.8rem 0.6rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  z-index: 80;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-favorites-bar.visible {
  transform: translateX(-50%) translateY(0);
}

.fav-bar-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.fav-bar-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.fav-bar-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.04);
}

/* ====================================================
   DRAWER / MODAL DE FAVORITAS
   ==================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
  z-index: 510;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.drawer-backdrop.active .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.5rem 1.8rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-main);
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1.8rem;
}

.fav-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.fav-thumb-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.fav-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fav-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-footer {
  padding: 1.5rem 1.8rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-color);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
  transition: var(--transition);
}

.btn-whatsapp:hover {
  background: #1EBE5B;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: #FAF6F0;
  border-color: var(--text-muted);
}

/* ====================================================
   MODAL DE SENHA
   ==================================================== */
.password-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 24, 22, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.password-modal {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.password-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-family: var(--font-sans);
  font-size: 1rem;
  margin: 1.2rem 0;
  text-align: center;
  outline: none;
  transition: var(--transition);
}

.password-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ====================================================
   TOAST NOTIFICATION
   ==================================================== */
.toast-msg {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-60px);
  background: rgba(43, 33, 30, 0.94);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 0.75rem 1.6rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  z-index: 2000;
  opacity: 0;
  transition: var(--transition);
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ====================================================
   RODAPÉ ELEGANTE
   ==================================================== */
footer {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-color);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

/* ====================================================
   TEMAS VISUAIS / MODELOS DE ÁLBUNS
   ==================================================== */

/* 1. CORPORATIVO & EXECUTIVO */
body[data-theme="corporativo"] {
  --bg-color: #F8FAFC;
  --bg-surface: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-light: #94A3B8;
  --border-color: #E2E8F0;
  --border-light: #F1F5F9;
  --accent: #1D4ED8;
  --accent-hover: #1E40AF;
  --accent-soft: rgba(29, 78, 216, 0.08);
  --font-serif: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}
body[data-theme="corporativo"] .curtain-card {
  border-radius: var(--radius-md);
  border-top: 4px solid var(--accent);
}
body[data-theme="corporativo"] .curtain-badge {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

/* 2. FESTA & ANIMADO (NIGHT / FESTIVAL - DARK MODE) */
body[data-theme="animado"] {
  --bg-color: #0E0E12;
  --bg-surface: #181820;
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --text-light: #6B7280;
  --border-color: #272732;
  --border-light: #1F1F28;
  --accent: #D946EF;
  --accent-hover: #C026D3;
  --accent-soft: rgba(217, 70, 239, 0.15);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.8);
}
body[data-theme="animado"] .curtain-card {
  border: 1px solid rgba(217, 70, 239, 0.3);
  box-shadow: 0 0 35px rgba(217, 70, 239, 0.15);
}
body[data-theme="animado"] .curtain-badge {
  background: rgba(217, 70, 239, 0.15);
  color: #F0ABFC;
  border: 1px solid rgba(217, 70, 239, 0.4);
}
body[data-theme="animado"] .top-nav {
  background: rgba(14, 14, 18, 0.92);
}
body[data-theme="animado"] .hero-instructions {
  background: #181820;
  border-color: #374151;
}

/* 3. INFANTIL & LÚDICO */
body[data-theme="infantil"] {
  --bg-color: #FFFDF9;
  --bg-surface: #FFFFFF;
  --text-main: #3F2E2C;
  --text-muted: #7A6966;
  --text-light: #A39491;
  --border-color: #F3EAE3;
  --border-light: #FAF3EE;
  --accent: #E11D48;
  --accent-hover: #BE123C;
  --accent-soft: rgba(225, 29, 72, 0.08);
  --radius-sm: 16px;
  --radius-md: 22px;
  --radius-lg: 32px;
}
body[data-theme="infantil"] .curtain-badge {
  background: #FFF1F2;
  color: #E11D48;
  border: 1px dashed #FECDD3;
}

/* 4. PRAIA & SOLAR (SUNSET) */
body[data-theme="praia"] {
  --bg-color: #FAF8F5;
  --bg-surface: #FFFFFF;
  --text-main: #164E63;
  --text-muted: #52798A;
  --text-light: #8BA8B5;
  --border-color: #E2ECEF;
  --border-light: #EEF5F7;
  --accent: #0891B2;
  --accent-hover: #0E7490;
  --accent-soft: rgba(8, 145, 178, 0.08);
  --gold: #D97706;
}
body[data-theme="praia"] .curtain-badge {
  background: #ECFEFF;
  color: #0891B2;
  border: 1px solid #A5F3FC;
}

/* 5. EXTERNO PADRÃO (PARQUE & NATUREZA) */
body[data-theme="externo"] {
  --bg-color: #F6F5EE;
  --bg-surface: #FFFFFF;
  --text-main: #1C2E24;
  --text-muted: #56685E;
  --text-light: #8B9C92;
  --border-color: #E0E2D6;
  --border-light: #EBECE2;
  --accent: #2F5D44;
  --accent-hover: #234633;
  --accent-soft: rgba(47, 93, 68, 0.09);
}
body[data-theme="externo"] .curtain-badge {
  background: #F0FDF4;
  color: #166534;
  border: 1px solid #BBF7D0;
}

/* 6. INTERNO PADRÃO (ESTÚDIO & LIFESTYLE) */
body[data-theme="interno"] {
  --bg-color: #F4F4F5;
  --bg-surface: #FFFFFF;
  --text-main: #18181B;
  --text-muted: #52525B;
  --text-light: #A1A1AA;
  --border-color: #E4E4E7;
  --border-light: #F4F4F5;
  --accent: #C2410C;
  --accent-hover: #9A3412;
  --accent-soft: rgba(194, 65, 12, 0.08);
  --font-serif: 'Fraunces', Georgia, serif;
}
body[data-theme="interno"] .curtain-badge {
  background: #FAFAFA;
  color: #18181B;
  border: 1px solid #D4D4D8;
}

/* ====================================================
   PAINEL DE ADMINISTRAÇÃO & EDITOR DE ÁLBUNS
   ==================================================== */
.admin-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 6rem;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.admin-tabs {
  display: flex;
  gap: 0.6rem;
  background: var(--border-light);
  padding: 0.4rem;
  border-radius: 50px;
}

.admin-tab-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.admin-tab-btn.active {
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

/* Grid de Modelos (Templates) */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.template-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.template-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.template-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.template-palette {
  display: flex;
  gap: 6px;
}

.color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.template-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.template-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.template-meta-box {
  background: var(--bg-color);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Modal e Formulário de Edição */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  animation: modalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { transform: scale(0.95) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 1.2rem 2rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-help {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.3rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.theme-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.theme-radio-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  background: var(--bg-surface);
}

.theme-radio-card:hover {
  border-color: var(--accent);
}

.theme-radio-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
