/*
 * Estica Férias - Premium Design System
 * Integrated with Numera Visual Model - Pure Teal & Minimalist
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
  --bg-main: #000000;
  --accent-teal: #00BFA5;
  --accent-teal-hover: #00E6C7;
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(0, 191, 165, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-weight: 300;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes orb-pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.65; }
}

@keyframes orb-spin {
  0%, 100% { transform: scale(1);    opacity: 0.4; }
  50%       { transform: scale(1.05); opacity: 0.6; }
}

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

@keyframes conclude-pop {
  0%   { transform: scale(0.98); opacity: 0; }
  100% { transform: scale(1);    opacity: 1; filter: drop-shadow(0 0 15px rgba(0,191,165,0.2)); }
}

.animate-fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.conclude-card {
  animation: conclude-pop 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ============================================================
   SHIMMER TEXT
   ============================================================ */

.shimmer-text {
  background: linear-gradient(90deg, #ffffff 0%, #a0a0a0 25%, #ffffff 50%, #a0a0a0 75%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 8s linear infinite;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.shimmer-teal {
  background: linear-gradient(90deg, #00BFA5 0%, #00E6C7 25%, #00BFA5 50%, #00E6C7 75%, #00BFA5 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s linear infinite;
}

.text-gradient {
  background: linear-gradient(135deg, #fff 0%, #8E8E93 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
}

/* ============================================================
   WELCOME SCREEN
   Block element — takes full viewport height on load.
   App body (#app-body) is hidden until dismissed.
   ============================================================ */

.welcome-screen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1.5rem;
  background: #000;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.welcome-screen.fade-out {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
}

/* Background layers (absolute within the welcome block) */
.welcome-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 80%, rgba(0,191,165,0.14) 0%, transparent 70%);
  pointer-events: none;
}

.welcome-bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(0,191,165,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,191,165,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* Mouse-following orb — no transform-animation so JS can reposition freely */
.welcome-orb {
  position: absolute;
  width: clamp(300px, 50vw, 600px);
  height: clamp(300px, 50vw, 600px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: left 0.8s ease, top 0.8s ease;
  pointer-events: none;
  mix-blend-mode: screen;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,191,165,0.35) 0%, rgba(0,191,165,0.18) 40%, transparent 70%);
  animation: orb-pulse 4s ease-in-out infinite;
}

/* Content block */
.welcome-content {
  position: relative;
  z-index: 10;
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Badge link */
.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #00BFA5;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  animation: fadeIn 0.6s ease-out forwards;
}

.welcome-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 191, 165, 0.4);
  box-shadow: 0 0 20px rgba(0, 191, 165, 0.25);
  transform: translateY(-2px);
}

/* Title */
.welcome-title {
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  animation: fadeIn 0.8s ease-out 0.1s both;
}

/* Subtitle */
.welcome-subtitle {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
  max-width: 28rem;
  margin-bottom: 2.5rem;
  animation: fadeIn 0.7s ease-out 0.2s both;
}

/* CTA button — standalone, no conflicting base classes */
.welcome-start-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border-radius: 9999px;
  border: 1px solid rgba(0, 191, 165, 0.4);
  padding: 0.8rem 2.25rem;
  background: linear-gradient(135deg, rgba(0,191,165,0.25) 0%, rgba(0,191,165,0.1) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,191,165,0.2), inset 0 1px 0 rgba(0,191,165,0.2);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: fadeIn 0.7s ease-out 0.3s both;
}

.welcome-start-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.welcome-start-btn:hover {
  border-color: rgba(0, 191, 165, 0.6);
  background: linear-gradient(135deg, rgba(0,191,165,0.35) 0%, rgba(0,191,165,0.2) 100%);
  box-shadow: 0 8px 40px rgba(0,191,165,0.35), inset 0 1px 0 rgba(0,191,165,0.3), 0 0 80px rgba(0,191,165,0.15);
  transform: translateY(-2px);
}

.welcome-start-btn:hover::before {
  left: 100%;
}

/* App body: hidden until welcome is dismissed */
.app-body-hidden {
  display: none;
}

.app-body-visible {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================================
   HEADER NUMERA BADGE
   ============================================================ */

.numera-header-badge {
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #00BFA5;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.numera-header-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 191, 165, 0.4);
  box-shadow: 0 0 20px rgba(0, 191, 165, 0.2);
  transform: translateY(-1px);
}

/* ============================================================
   PERSISTENT APP HEADER (mirrors Remunera's header pattern)
   ============================================================ */

.app-header {
  text-align: center;
  margin-bottom: 3rem;
  margin-top: 2rem;
  animation: fadeIn 0.6s ease-out forwards;
}

.app-author-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 7px 16px;
  color: #00BFA5;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.app-author-btn:hover {
  color: #00E6C7;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 191, 165, 0.4);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 191, 165, 0.2), 0 0 40px rgba(0, 191, 165, 0.1);
}

.app-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.app-subtitle {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.025em;
  line-height: 1.6;
}

/* Step progress bars (Remunera style) */
.app-step-bars {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2.5rem;
}

.app-step-bar {
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.app-step-bar.active {
  background: #00BFA5;
  box-shadow: 0 0 15px rgba(0, 191, 165, 0.3);
}

/* ============================================================
   BACKGROUND ORB (app view)
   ============================================================ */

.orb-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.orb-container::before,
.orb-container::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  animation: orb-spin 8s ease-in-out infinite;
}

.orb-container::before {
  width: 50vw;
  height: 50vw;
  top: -15%;
  right: -10%;
  background: radial-gradient(circle, rgba(0,191,165,0.12) 0%, transparent 70%);
}

.orb-container::after {
  width: 70vw;
  height: 70vw;
  bottom: -20%;
  left: -25%;
  background: radial-gradient(circle, rgba(0,191,165,0.08) 0%, transparent 70%);
  animation-delay: -4s;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4 {
  font-weight: 500;
}

/* ============================================================
   HEADER
   ============================================================ */

.glass-header {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 1.5rem;
}

.nav-link {
  color: var(--text-muted);
  transition: all 0.3s ease;
  position: relative;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-teal);
  box-shadow: 0 0 8px var(--accent-teal);
}

/* ============================================================
   MOBILE MENU
   ============================================================ */

#mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-link {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 1rem 0;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #fff;
  transform: scale(1.1);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer-minimalist {
  background: transparent;
  border-top: 1px solid var(--glass-border);
  padding: 4rem 1.5rem;
  margin-top: auto;
}

.footer-link {
  color: var(--text-muted);
  transition: color 0.3s ease;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.footer-link:hover {
  color: #fff;
}

/* ============================================================
   GLASS COMPONENTS
   ============================================================ */

.glass-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glass-card-interactive:hover {
  background: linear-gradient(135deg, rgba(0,191,165,0.08) 0%, rgba(0,191,165,0.03) 100%);
  border-color: var(--glass-border-hover);
  box-shadow: 0 8px 32px rgba(0,191,165,0.1);
  transform: translateY(-2px);
}

.glass-btn {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(0,191,165,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.8125rem;
  letter-spacing: 0.025em;
}

.glass-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.glass-btn:hover {
  border-color: rgba(0, 191, 165, 0.4);
  background: linear-gradient(135deg, rgba(0,191,165,0.12) 0%, rgba(0,191,165,0.06) 100%);
  box-shadow: 0 8px 40px rgba(0,191,165,0.25), inset 0 1px 0 rgba(0,191,165,0.2);
  transform: translateY(-2px);
}

.glass-btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(0,191,165,0.2) 0%, rgba(0,191,165,0.1) 100%);
  border: 1px solid rgba(0, 191, 165, 0.35);
  color: white;
  font-weight: 400;
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(0,191,165,0.3) 0%, rgba(0,191,165,0.2) 100%);
  border-color: rgba(0, 191, 165, 0.55);
  box-shadow: 0 8px 32px rgba(0,191,165,0.25);
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */

input[type="date"],
select {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid var(--glass-border) !important;
  color: white !important;
  border-radius: 10px !important;
  padding: 0.625rem 0.875rem !important;
  transition: all 0.3s ease !important;
  font-size: 0.875rem !important;
  font-family: 'Inter', sans-serif !important;
}

input[type="date"]:focus,
select:focus {
  border-color: var(--accent-teal) !important;
  box-shadow: 0 0 0 1px var(--accent-teal) !important;
  outline: none !important;
}

input[type="range"] {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  background: var(--accent-teal);
  border-radius: 50%;
  cursor: pointer;
}

/* ============================================================
   RESULT CARDS
   ============================================================ */

.op-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 1rem;
  border-radius: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.op-card:hover {
  border-color: var(--glass-border-hover);
}

/* ============================================================
   PREMIUM TOGGLE
   ============================================================ */

.premium-toggle {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

.premium-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.05);
  transition: .4s;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--accent-teal);
  border-color: var(--accent-teal);
}

input:checked + .toggle-slider:before {
  transform: translateX(18px);
  background-color: #000;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 191, 165, 0.4);
}

/* ============================================================
   AD LAYOUT
   ============================================================ */

/* Wrapper: coluna única no mobile, grid 3 colunas no desktop */
.ads-layout-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Sidebars ocultos no mobile */
.ad-sidebar {
  display: none;
}

/* Mobile horizontal ad: max-height evita empurrar conteúdo */
.ad-mobile-top {
  max-height: 120px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  display: block;
}

/* Desktop ≥ 1280px: ativa o grid de 3 colunas */
@media (min-width: 1280px) {
  .ads-layout-wrapper {
    display: grid;
    grid-template-columns: 160px 1fr 160px;
    align-items: start;
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .ad-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 3rem;
  }

  .ad-sidebar-inner {
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 160px;
  }

  /* Mobile ad oculto no desktop (sidebars cobrem) */
  .ad-mobile-top {
    display: none;
  }
}

/* Label "Anúncio" — conformidade AdSense, clearley visible */
.ad-label {
  display: block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  margin-bottom: 0.375rem;
}

/* Garante que os <ins> verticais tenham largura explícita */
.ad-sidebar .adsbygoogle {
  display: block;
  width: 160px;
  min-height: 300px;
}
