/* ============================================
   VIAGEM BULGÁRIA — Design System
   Inspirado nas referências 3 e 4:
   tons teal/verde, ilustrações flat, cards limpos
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Playfair+Display:ital,wght@0,700;1,400&display=swap');

/* ---------- Variáveis ---------- */
:root {
  --teal:        #2ABFAA;
  --teal-dark:   #1A9E8C;
  --teal-light:  #E8F9F6;
  --orange:      #F4845F;
  --orange-light:#FEF0EB;
  --sand:        #F9F4ED;
  --dark:        #1C2B2A;
  --mid:         #4A6360;
  --light-text:  #8AA5A2;
  --white:       #FFFFFF;
  --card-shadow: 0 4px 24px rgba(28,43,42,0.10);
  --card-radius: 20px;
  --font-title:  'Playfair Display', serif;
  --font-body:   'Nunito', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--sand);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ---------- Tela de Senha ---------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-dark);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  top: -100px; right: -100px;
}

.auth-page::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(244,132,95,0.15);
  border-radius: 50%;
  bottom: -80px; left: -80px;
}

.auth-card {
  background: var(--white);
  border-radius: 28px;
  padding: 48px 40px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.auth-ilustracao {
  font-size: 56px;
  margin-bottom: 16px;
}

.auth-titulo {
  font-family: var(--font-title);
  font-size: 26px;
  color: var(--dark);
  margin-bottom: 6px;
}

.auth-subtitulo {
  font-size: 14px;
  color: var(--light-text);
  margin-bottom: 32px;
}

.auth-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #E0EDED;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
  background: var(--teal-light);
  margin-bottom: 12px;
  letter-spacing: 3px;
  text-align: center;
}

.auth-input:focus { border-color: var(--teal); }

.auth-btn {
  width: 100%;
  padding: 14px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.auth-btn:hover { background: var(--teal-dark); }
.auth-btn:active { transform: scale(0.98); }

.auth-erro {
  font-size: 13px;
  color: var(--orange);
  margin-top: 10px;
  opacity: 0;
  transition: opacity 0.3s;
  height: 18px;
}

/* ---------- App Principal ---------- */
.app-wrap {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
}

/* ---------- Header / Hero ---------- */
.hero {
  background: var(--teal);
  min-height: 280px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 0 32px 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-datas {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 1px;
}

/* ---------- Cards de Seção ---------- */
.secoes {
  padding: 24px 20px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.card-secao {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: var(--dark);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.card-secao:hover, .card-secao:active {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(28,43,42,0.15);
  border-color: var(--teal-light);
}

.card-secao-icon {
  font-size: 36px;
  line-height: 1;
}

.card-secao-label {
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-secao-desc {
  font-size: 11px;
  color: var(--light-text);
  text-align: center;
  line-height: 1.4;
}

/* Cores de destaque por seção */
.card-secao.teal   { border-top: 4px solid var(--teal); }
.card-secao.orange { border-top: 4px solid var(--orange); }
.card-secao.green  { border-top: 4px solid #6DBF82; }
.card-secao.purple { border-top: 4px solid #A78BFA; }
.card-secao.pink   { border-top: 4px solid #F472B6; }
.card-secao.yellow { border-top: 4px solid #FBBF24; }

/* ---------- Telas internas ---------- */
.tela {
  display: none;
  padding: 0 0 100px 0;
  animation: fadeIn 0.25s ease;
}

.tela.ativa { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Header interno ---------- */
.tela-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 0;
  margin-bottom: 20px;
}

.btn-voltar {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--card-shadow);
  flex-shrink: 0;
  transition: transform 0.15s;
}

.btn-voltar:active { transform: scale(0.92); }

.tela-titulo {
  font-family: var(--font-title);
  font-size: 24px;
  color: var(--dark);
}

/* ---------- Seção de conteúdo ---------- */
.conteudo-bloco {
  padding: 0 20px;
  margin-bottom: 28px;
}

.bloco-titulo {
  font-size: 12px;
  font-weight: 800;
  color: var(--light-text);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

/* ---------- Cards de item ---------- */
.card-item {
  background: var(--white);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: 0 2px 12px rgba(28,43,42,0.07);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.card-item-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.card-item-body { flex: 1; min-width: 0; }

.card-item-nome {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 2px;
}

.card-item-desc {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.5;
  margin-bottom: 6px;
}

.card-item-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--teal-light);
  color: var(--teal-dark);
}

.tag.orange { background: var(--orange-light); color: var(--orange); }

.card-item-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.link-btn {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--teal-light);
  color: var(--teal-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s;
}

.link-btn:hover { background: var(--teal); color: var(--white); }
.link-btn.instagram { background: #FEE2E2; color: #DC2626; }
.link-btn.instagram:hover { background: #DC2626; color: var(--white); }

/* ---------- Card de aviso ---------- */
.card-aviso {
  background: var(--orange-light);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 20px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--dark);
  line-height: 1.5;
}

/* ---------- Transporte ---------- */
.card-transporte {
  background: var(--white);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: 0 2px 12px rgba(28,43,42,0.07);
}

.transporte-rota {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.transporte-origem, .transporte-destino {
  font-size: 14px;
  font-weight: 800;
  color: var(--dark);
}

.transporte-seta { color: var(--teal); font-size: 16px; }

.transporte-info {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.transporte-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--teal-light);
  color: var(--teal-dark);
}

/* ---------- Apps ---------- */
.card-app {
  background: var(--white);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 2px 12px rgba(28,43,42,0.07);
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.app-body { flex: 1; }

.app-nome {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 2px;
}

.app-desc {
  font-size: 12px;
  color: var(--mid);
  line-height: 1.4;
}

.app-download {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--dark);
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}

/* ---------- Frases ---------- */
.card-frase {
  background: var(--white);
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 10px;
  box-shadow: 0 2px 12px rgba(28,43,42,0.07);
}

.frase-bulgaro {
  font-family: var(--font-title);
  font-size: 20px;
  color: var(--teal-dark);
  margin-bottom: 4px;
}

.frase-fonetica {
  font-size: 13px;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 4px;
}

.frase-pt {
  font-size: 13px;
  color: var(--mid);
}

/* ---------- Saudades ---------- */
.saudades-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px;
}

.saudades-item {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  cursor: pointer;
}

.saudades-item img, .saudades-item video {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ---------- Infos Práticas ---------- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px;
  margin-bottom: 16px;
}

.card-info {
  background: var(--white);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(28,43,42,0.07);
  text-align: center;
}

.info-icon { font-size: 32px; margin-bottom: 8px; }
.info-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--light-text);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.info-valor {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
}

/* Tomada imagem visual */
.tomada-visual {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.tomada-svg {
  width: 32px; height: 32px;
}

/* ---------- Adicionar nota ---------- */
.add-nota-wrap {
  padding: 0 20px;
  margin-bottom: 20px;
}

.btn-add {
  width: 100%;
  padding: 14px;
  background: var(--teal-light);
  color: var(--teal-dark);
  border: 2px dashed var(--teal);
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-add:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* Modal de adição */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28,43,42,0.6);
  z-index: 100;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.aberto {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-box {
  background: var(--white);
  border-radius: 24px 24px 0 0;
  padding: 28px 24px 40px;
  width: 100%;
  max-width: 430px;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.modal-titulo {
  font-family: var(--font-title);
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 16px;
}

.modal-textarea {
  width: 100%;
  min-height: 100px;
  padding: 14px;
  border: 2px solid #E0EDED;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark);
  resize: vertical;
  outline: none;
  background: var(--teal-light);
  margin-bottom: 14px;
}

.modal-textarea:focus { border-color: var(--teal); }

.modal-acoes {
  display: flex;
  gap: 10px;
}

.btn-salvar {
  flex: 1;
  padding: 13px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-salvar:hover { background: var(--teal-dark); }

.btn-cancelar {
  padding: 13px 20px;
  background: var(--sand);
  color: var(--mid);
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Nota salva ---------- */
.card-nota-usuario {
  background: var(--teal-light);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  position: relative;
  border-left: 4px solid var(--teal);
}

.nota-texto {
  font-size: 14px;
  color: var(--dark);
  line-height: 1.6;
  white-space: pre-wrap;
}

.nota-data {
  font-size: 11px;
  color: var(--light-text);
  margin-top: 6px;
}

.btn-remover-nota {
  position: absolute;
  top: 10px; right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--light-text);
  padding: 4px;
  transition: color 0.15s;
}

.btn-remover-nota:hover { color: #EF4444; }

/* ---------- Nav Bar ---------- */
.navbar {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--white);
  border-top: 1px solid #E8F0EF;
  display: flex;
  justify-content: space-around;
  padding: 8px 0 20px;
  z-index: 50;
  box-shadow: 0 -4px 20px rgba(28,43,42,0.08);
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 12px;
  transition: background 0.15s;
}

.nav-btn:hover { background: var(--teal-light); }
.nav-btn.ativo .nav-icon { filter: none; }
.nav-btn.ativo .nav-label { color: var(--teal); }

.nav-icon { font-size: 22px; line-height: 1; }
.nav-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--light-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Utilities ---------- */
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.px-20 { padding: 0 20px; }
.separador {
  height: 1px;
  background: #E8F0EF;
  margin: 16px 20px;
}
