/* ===== ESTILOS OFICIAIS — GUIFERREIRA.PT ===== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Paleta Oficial guiferreira.pt: Fundo Carbon/Zinc Graphite */
  --bg-main: #121214;
  --bg-card: #18181b;
  --bg-card-glass: rgba(24, 24, 27, 0.75);
  --bg-card-hover: rgba(39, 39, 42, 0.8);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-card-hover: rgba(255, 255, 255, 0.18);
  
  /* Acentos de Cor Quentes & Vivos */
  --accent-gold: #f59e0b;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --accent-purple: #a855f7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-main);
  color: #f4f4f5;
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

/* Fundo com malha de linhas subtil */
.bg-grid-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  --mx: 50vw;
  --my: 30vh;
  background:
    radial-gradient(600px circle at var(--mx) var(--my), rgba(245, 158, 11, 0.13), transparent 60%),
    radial-gradient(900px circle at calc(100vw - var(--mx)) calc(100vh - var(--my)), rgba(139, 92, 246, 0.08), transparent 65%);
  transition: background 0.08s linear;
}
/* Manchas de cor animadas (também no telemóvel) */
.bg-grid-mesh::before, .bg-grid-mesh::after {
  content: "";
  position: absolute;
  width: 55vmax; height: 55vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  animation: floatBlob 18s ease-in-out infinite alternate;
}
.bg-grid-mesh::before { background: #f59e0b; top: -20vmax; left: -15vmax; }
.bg-grid-mesh::after { background: #7c3aed; bottom: -25vmax; right: -20vmax; animation-delay: -9s; opacity: 0.16; }
@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8vw, 6vh) scale(1.1); }
  100% { transform: translate(-6vw, 10vh) scale(0.95); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-grid-mesh::before, .bg-grid-mesh::after { animation: none; }
}

/* Orbe de luz subtil no topo central */
.hero-glow-light {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 450px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(244, 63, 94, 0.08) 40%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

/* Avatar Hero com Anel Gradiente Dinâmico */
.avatar-gradient-ring {
  padding: 4px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #8b5cf6 100%);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar-gradient-ring:hover {
  transform: scale(1.04);
  box-shadow: 0 0 45px rgba(245, 158, 11, 0.4);
}

.avatar-inner {
  border-radius: 9999px;
  border: 4px solid var(--bg-main);
  overflow: hidden;
  background-color: #27272a;
}

/* Card Spotlight Dinâmico com foco suave */
.spotlight-card {
  position: relative;
  border-radius: 1.5rem;
  background-color: var(--bg-card-glass);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.spotlight-card:hover {
  border-color: var(--border-card-hover);
  background-color: var(--bg-card-hover);
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.07),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* Efeito de Destaque Gradiente no Texto (Quente e vibrante) */
.gradient-text-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 50%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-emerald {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Faixa Superior de Cor em cada Card de Parceiro */
.card-top-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 1.5rem 1.5rem 0 0;
  opacity: 0.85;
  transition: opacity 0.3s ease, height 0.3s ease;
}

.spotlight-card:hover .card-top-stripe {
  opacity: 1;
  height: 5px;
}

/* Acordeão "Info" Expansível nos cartões de parceiros */
.info-accordion-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

.info-accordion-content.expanded {
  max-height: 900px;
  opacity: 1;
}

/* Pulsing Live indicator */
.pulse-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulseRing 1.8s infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Mega Giveaway Highlight Box */
.mega-giveaway-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(24, 24, 27, 0.95) 40%, rgba(244, 63, 94, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 10px 40px -10px rgba(245, 158, 11, 0.15);
}

/* Floating Dock Mac-Style Adaptado ao Dark Carbon */
.floating-dock-container {
  position: sticky;
  bottom: 1.25rem;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 1rem;
}

.floating-dock {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.8rem;
  background: rgba(24, 24, 27, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.dock-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease;
}

.dock-item:hover {
  transform: scale(1.22) translateY(-6px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.dock-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
  background: rgba(24, 24, 27, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.dock-item:hover .dock-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Toast Notification */
#toast {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(24, 24, 27, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fff;
  padding: 10px 22px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 100;
}

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

/* Scrollbar Minimalista */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #121214;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Telemóvel: barra de ícones cabe no ecrã sem deslizar para o lado */
html, body { overflow-x: hidden; }
@media (max-width: 480px) {
  .floating-dock { gap: 0.3rem; padding: 0.4rem 0.5rem; max-width: 100%; }
  .dock-item { width: 34px; height: 34px; flex-shrink: 0; }
  .dock-item svg { width: 16px; height: 16px; }
  .dock-item:hover { transform: scale(1.1) translateY(-3px); }
}

/* Telemóvel: evita zoom automático do iPhone nos campos e ajusta tamanhos */
@media (max-width: 640px) {
  input, select, textarea { font-size: 16px !important; }
  #live-status-badge span { font-size: 10px; }
  .spotlight-card { padding: 1.1rem !important; }
}
html { -webkit-text-size-adjust: 100%; }
a, button { -webkit-tap-highlight-color: transparent; }
