/**
 * Estilos de LAYOUT DE PÁGINA apenas.
 *
 * Os Web Components (upload-foto, editor-recorte, galeria-templates,
 * compartilhar-imagem, formulario-login) encapsulam seu próprio estilo
 * via Shadow DOM, dentro do respectivo arquivo .js — eles não aparecem
 * aqui. Este arquivo cuida só da estrutura da página ao redor deles.
 */

/**
 * Estilos de LAYOUT DA PÁGINA (Single-Screen 100vh Hero Pattern).
 *
 * Exatamente como o modelo de referência (brrt.com.br/flavio-bolsonaro/):
 * Toda a aplicação (Branding + Canvas + Controles + Footer) vive dentro
 * de uma única tela de 100vh sem rolagem vertical no desktop.
 */

body {
  background: linear-gradient(135deg, rgba(9, 14, 26, 0.7) 0%, rgba(11, 19, 41, 0.85) 60%, rgba(0, 85, 255, 0.25) 100%),
              url('../img/bg-chapa2.jpg') no-repeat center center / cover fixed !important;
  color: #ffffff !important;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

body.pagina-admin-body {
  height: auto !important;
  min-height: 100vh !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

@media (max-height: 720px), (max-width: 960px) {
  body {
    height: auto;
    max-height: none;
    overflow-y: auto;
  }
}

/* Background Ambient Glow Effects */
.glow-bg {
  position: fixed;
  top: -20%;
  right: -10%;
  width: 65vw;
  height: 65vw;
  background: radial-gradient(circle, rgba(0, 85, 255, 0.3) 0%, rgba(22, 48, 138, 0.12) 50%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

.glow-bg-left {
  position: fixed;
  bottom: -20%;
  left: -10%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(22, 48, 138, 0.35) 0%, rgba(0, 85, 255, 0.08) 50%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

.app-container {
  max-width: 1240px;
  margin-inline: auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

@media (max-height: 720px), (max-width: 960px) {
  .app-container {
    height: auto;
    min-height: 100vh;
  }
}

/* Header Navbar */
.cabecalho {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 0.5rem;
  flex-shrink: 0;
}

.cabecalho__logo {
  font-family: var(--fonte-titulo);
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cabecalho__logo-destaque {
  color: #60a5fa;
  font-weight: 800;
  text-shadow: 0 0 15px rgba(96, 165, 250, 0.6);
}

.cabecalho__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cabecalho__admin-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  transition: all 200ms ease;
}

.cabecalho__admin-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: #0055ff;
}

/* Main Workspace 2-Column Hero Grid */
.app-workspace {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: center;
  flex: 1;
  min-height: 0;
  padding: 0.5rem 0;
}

@media (max-width: 960px) {
  .app-workspace {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem 0;
  }
}

/* Left Column: Campaign Brand Typography */
.campaign-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.brand-number-badge {
  font-family: var(--fonte-titulo);
  font-size: clamp(6rem, 14vw, 12rem);
  line-height: 0.75;
  color: #ffffff;
  text-shadow: 0 0 50px rgba(0, 85, 255, 0.6), 0 10px 30px rgba(0, 0, 0, 0.8);
  margin-bottom: -1rem;
  user-select: none;
  letter-spacing: -0.05em;
}

.brand-name {
  font-family: var(--fonte-titulo);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}

.brand-name-line1 {
  display: block;
  color: #60a5fa;
  text-shadow: 0 0 35px rgba(96, 165, 250, 0.8), 0 4px 15px rgba(0, 0, 0, 0.9);
}

.brand-name-line2 {
  display: block;
  color: #ffffff;
  text-shadow: 0 6px 25px rgba(0, 0, 0, 0.8);
}

.brand-title {
  font-family: var(--fonte-titulo);
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.5rem;
  margin-top: 0.4rem;
}

.brand-slogan-desc {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #cbd5e1;
  max-width: 480px;
}

/* Right Column: Generator Container */
.generator-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

/* Footer Bar */
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  font-size: 0.78rem;
  color: #94a3b8;
  flex-wrap: wrap;
}

.disclaimer-text {
  max-width: 650px;
  line-height: 1.4;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.coffee-badge {
  background: #eab308;
  color: #000000;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.75rem;
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3);
  transition: transform 200ms ease;
}

.coffee-badge:hover {
  transform: scale(1.05);
}

/* Admin Page Layout & Card */
.pagina-admin {
  max-width: 860px;
  margin-inline: auto;
  padding: 3rem 1.5rem;
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  z-index: 10;
}

.painel-admin-card {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.painel-admin-card[hidden] {
  display: none !important;
}

.admin-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
}

.admin-header-bar h1 {
  font-family: var(--fonte-corpo);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.25rem 0;
}

.admin-header-bar p {
  color: #cbd5e1;
  font-size: 0.85rem;
  margin: 0;
}

.btn-admin-logout {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 200ms ease;
}

.btn-admin-logout:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ffffff;
}

.painel-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-section {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-section h2 {
  font-family: var(--fonte-corpo);
  font-size: 1rem;
  font-weight: 800;
  color: #60a5fa;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.grid-2-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .grid-2-col, .grid-3-col {
    grid-template-columns: 1fr;
  }
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.campo label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cbd5e1;
}

.select-admin,
.painel-form input[type="text"],
.painel-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
  width: 100%;
}

.select-admin option {
  background: #0f172a;
  color: #ffffff;
}

.select-admin:focus,
.painel-form input[type="text"]:focus,
.painel-form textarea:focus {
  outline: none;
  border-color: #0055ff;
  box-shadow: 0 0 0 3px rgba(0, 85, 255, 0.3);
}

.painel-form input[type="color"] {
  height: 44px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

/* Image Upload Cards in Admin */
.image-upload-box {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.img-preview-wrapper {
  width: 100%;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  background: #090e1a;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.img-preview-wrapper.portrait-banner {
  height: 280px;
  width: auto;
  aspect-ratio: 9/16;
  margin: 0 auto;
}

.img-preview-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-btn-group {
  display: flex;
  gap: 0.4rem;
  width: 100%;
}

.btn-mini-upload {
  flex: 1;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 85, 255, 0.2);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 200ms ease;
}

.btn-mini-upload:hover {
  background: rgba(0, 85, 255, 0.4);
}

.btn-mini-reset {
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
}

.btn-mini-reset:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.admin-actions-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.admin-actions-bar button {
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 200ms ease;
}

.admin-actions-bar button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.admin-actions-bar button.botao--primario {
  background: linear-gradient(135deg, var(--cor-primaria, #16308a), var(--cor-destaque, #0055ff));
  border: none;
  box-shadow: 0 4px 15px rgba(0, 85, 255, 0.35);
  flex: 1;
}

.link-ver-site {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 200ms ease;
}

.grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 0.5rem;
}

.square-banner {
  aspect-ratio: 1 / 1;
  height: 180px;
}

.portrait-banner {
  aspect-ratio: 9 / 16;
  height: 220px;
}

.landscape-banner {
  aspect-ratio: 16 / 9;
  height: 120px;
}




