/* ==================== TEMAS ==================== */
body {
  font-family: 'Lexend', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-theme {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border-color: #e2e8f0;
  --sidebar-bg: #ffffff;
  --card-bg: #ffffff;
  --hover-bg: #eff6ff;
  --hover-text: #2563eb;
  --menu-section-color: #94a3b8;
  --logo-gradient-start: #3b82f6;
  --logo-gradient-end: #1e3a8a;
  --accent: #2563eb;
  --accent-light: #eff6ff;
  --btn-primary-bg: #2563eb;
  --btn-primary-hover: #1d4ed8;
  --input-bg: #f8fafc;
  --stat-bg: #f1f5f9;
  --phrase-bg: linear-gradient(135deg, #eff6ff, #e0f2fe);
  --cta-bg: linear-gradient(135deg, #eff6ff, #dbeafe);
  --story-bg: #f8fafc;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body.dark-theme {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --border-color: #334155;
  --sidebar-bg: #1e293b;
  --card-bg: #1e293b;
  --hover-bg: #334155;
  --hover-text: #60a5fa;
  --menu-section-color: #64748b;
  --logo-gradient-start: #60a5fa;
  --logo-gradient-end: #3b82f6;
  --accent: #60a5fa;
  --accent-light: #1e3a5f;
  --btn-primary-bg: #2563eb;
  --btn-primary-hover: #3b82f6;
  --input-bg: #0f172a;
  --stat-bg: #1e293b;
  --phrase-bg: linear-gradient(135deg, #1e3a5f, #0f2a4a);
  --cta-bg: linear-gradient(135deg, #1e293b, #1e3a5f);
  --story-bg: #1e293b;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

/* ==================== LAYOUT ==================== */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: 280px;
  height: 100vh;
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  padding: 1.25rem;
  z-index: 1030;
  transition: transform 0.3s ease, background-color 0.3s ease;
  overflow-y: auto;
}

@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); }
}

.main-content {
  margin-left: 280px;
  transition: margin-left 0.3s ease;
  min-height: 100vh;
}
@media (max-width: 991.98px) {
  .main-content { margin-left: 0; }
}

/* ==================== TOP BAR ==================== */
.top-bar {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0; z-index: 1020;
  transition: background-color 0.3s ease;
}

/* ==================== SIDEBAR NAV ==================== */
.nav-link-custom {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 1rem;
  border-radius: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
}
.nav-link-custom:hover,
.nav-link-custom.active {
  background-color: var(--hover-bg);
  color: var(--hover-text);
}
.nav-link-custom i { font-size: 1.15rem; min-width: 22px; }

.menu-section { margin-bottom: 1.5rem; }
.menu-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: var(--menu-section-color);
  padding: 0.5rem 1rem 0.25rem;
}

/* ==================== TOP BAR BUTTONS ==================== */
.language-btn, .theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Lexend', sans-serif;
}
.language-btn:hover, .theme-toggle-btn:hover {
  background-color: var(--hover-bg);
  color: var(--hover-text);
}

/* ==================== DROPDOWN DARK ==================== */
body.dark-theme .dropdown-menu {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}
body.dark-theme .dropdown-item { color: var(--text-primary); }
body.dark-theme .dropdown-item:hover { background-color: var(--hover-bg); color: var(--hover-text); }
body.dark-theme .dropdown-divider { border-top-color: var(--border-color); }

/* ==================== LOGO ==================== */
.logo-gradient {
  background: linear-gradient(135deg, var(--logo-gradient-start), var(--logo-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================== MOBILE BOTTOM NAV ==================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 0.5rem 0;
  z-index: 1040;
  transition: background-color 0.3s ease;
}
@media (min-width: 992px) { .mobile-bottom-nav { display: none; } }

.mobile-nav-item {
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none;
  font-size: 0.7rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.mobile-nav-item i { font-size: 1.25rem; margin-bottom: 0.2rem; }
.mobile-nav-item.active, .mobile-nav-item:hover { color: var(--hover-text); }

/* ==================== OVERLAY MOBILE ==================== */
.sidebar-overlay {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1025; display: none;
}
.sidebar-overlay.show { display: block; }

/* Scrollbar sidebar */
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: var(--bg-primary); }
.sidebar::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

/* ==================== CONTENT CARD ==================== */
.content-card {
  background: var(--card-bg);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: background-color 0.3s ease;
}

/* ==================== BUTTONS ==================== */
.btn-primary-custom {
  background: var(--btn-primary-bg);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  font-family: 'Lexend', sans-serif;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.btn-primary-custom:hover {
  background: var(--btn-primary-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-custom {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 0.75rem;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  font-family: 'Lexend', sans-serif;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.btn-outline-custom:hover {
  background: var(--accent-light);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ==================== INÍCIO — HERO ==================== */
.hero-section { padding: 2rem 0 1rem; }

.hero-badge {
  display: inline-flex; align-items: center;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 2rem;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}

/* Hero Visual — orbs flutuantes */
.hero-visual {
  position: relative;
  width: 100%;
  height: 280px;
  display: flex; align-items: center; justify-content: center;
}

.hero-center-orb {
  width: 100px; height: 100px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(37,99,235,0.15);
  z-index: 2;
}

.lang-orb {
  position: absolute;
  width: 52px; height: 52px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  animation: float 4s ease-in-out infinite;
}
.orb-1 { top: 20px; left: 20px; animation-delay: 0s; }
.orb-2 { top: 20px; right: 20px; animation-delay: 1s; }
.orb-3 { bottom: 20px; left: 20px; animation-delay: 2s; }
.orb-4 { bottom: 20px; right: 20px; animation-delay: 3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Stats */
.stat-card {
  background: var(--stat-bg);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}
.stat-number { font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.2rem; }

/* Section title */
.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Feature cards */
.feature-card {
  background: var(--card-bg);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  transition: box-shadow 0.2s, transform 0.2s, background-color 0.3s;
}
.feature-card:hover {
  box-shadow: 0 6px 24px rgba(37,99,235,0.10);
  transform: translateY(-3px);
}
.feature-icon { font-size: 2rem; }

/* Phrase banner */
.phrase-banner {
  background: var(--phrase-bg);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}
.phrase-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); }
.phrase-text { font-size: 1rem; font-weight: 500; color: var(--text-primary); font-style: italic; }

/* ==================== SOBRE ==================== */
.page-header { padding: 1rem 0; }
.page-title-hero { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--text-primary); }
.page-subtitle { font-size: 1rem; color: var(--text-secondary); }

.value-card {
  background: var(--stat-bg);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  transition: transform 0.2s;
}
.value-card:hover { transform: translateY(-3px); }
.value-icon { font-size: 2rem; }

.story-section {
  background: var(--story-bg);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

.cta-banner {
  background: var(--cta-bg);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

/* ==================== CONTATO ==================== */
.form-control-custom {
  width: 100%;
  background: var(--input-bg);
  border: 1.5px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.6rem 0.9rem;
  color: var(--text-primary);
  font-family: 'Lexend', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.3s;
  outline: none;
}
.form-control-custom:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.form-control-custom.with-icon { padding-left: 2.5rem; }

.input-icon-group { position: relative; }
.input-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1rem;
  pointer-events: none;
}

.contact-channel {
  background: var(--card-bg);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  transition: box-shadow 0.2s, transform 0.2s;
}
.contact-channel:hover {
  box-shadow: 0 4px 16px rgba(37,99,235,0.08);
  transform: translateX(4px);
}
.contact-icon { font-size: 1.75rem; }

.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }

/* ==================== LOGIN ==================== */
.login-wrapper { width: 100%; max-width: 460px; }

.login-title { font-size: 1.6rem; font-weight: 700; color: var(--text-primary); }

.login-card {
  background: var(--card-bg);
  border-radius: 1.25rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.login-tabs {
  display: flex;
  background: var(--stat-bg);
  border-radius: 0.75rem;
  padding: 4px;
}
.login-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 0.6rem;
  padding: 0.5rem;
  font-weight: 600;
  font-family: 'Lexend', sans-serif;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.login-tab.active {
  background: var(--card-bg);
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.link-small {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}
.link-small:hover { text-decoration: underline; }

.divider-text {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  position: relative;
  margin: 0.5rem 0;
}
.divider-text::before, .divider-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border-color);
}
.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

.btn-social {
  background: var(--stat-bg);
  border: 1.5px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-family: 'Lexend', sans-serif;
  font-size: 0.85rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-social:hover {
  background: var(--hover-bg);
  border-color: var(--accent);
  color: var(--accent);
}

/* ==================== MISC ==================== */
.btn-link { color: var(--text-secondary); }
.btn-link:hover { color: var(--hover-text); }
.text-secondary { color: var(--text-secondary) !important; }
