/* ============================================
   Canal Advento — Custom Styles
   Complementa o Tailwind CSS via CDN
   ============================================ */

/* Smooth scroll global */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}

/* ---- Particle / Glow Hero Effect ---- */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 50%, rgba(201, 168, 76, 0.06) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(2%, -2%) scale(1.05); }
}

/* Floating gold particles */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #f59e0b;
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-duration: 15s; animation-delay: 2s; }
.particle:nth-child(3) { left: 35%; animation-duration: 10s; animation-delay: 4s; }
.particle:nth-child(4) { left: 50%; animation-duration: 14s; animation-delay: 1s; }
.particle:nth-child(5) { left: 65%; animation-duration: 11s; animation-delay: 3s; }
.particle:nth-child(6) { left: 75%; animation-duration: 13s; animation-delay: 5s; }
.particle:nth-child(7) { left: 85%; animation-duration: 16s; animation-delay: 2s; }
.particle:nth-child(8) { left: 92%; animation-duration: 12s; animation-delay: 6s; }

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

/* ---- Fade-in on scroll ---- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---- Navigation ---- */
.nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s, background-color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: #f59e0b;
  background-color: rgba(245, 158, 11, 0.1);
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: #94a3b8;
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #f59e0b;
  background-color: rgba(245, 158, 11, 0.1);
}

/* ---- Cards ---- */
.card {
  background: #1e293b;
  border: 1px solid rgba(245, 158, 11, 0.1);
  border-radius: 1rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.1);
}

/* ---- Gold gradient text ---- */
.gold-gradient {
  background: linear-gradient(135deg, #f59e0b 0%, #C9A84C 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Gold shimmer button ---- */
.btn-gold {
  background: linear-gradient(135deg, #f59e0b, #C9A84C);
  color: #0f172a;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 60%
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ---- Outline button ---- */
.btn-outline {
  border: 2px solid #f59e0b;
  color: #f59e0b;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 0.75rem;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.btn-outline:hover {
  background-color: #f59e0b;
  color: #0f172a;
  transform: translateY(-2px);
}

/* ---- Filter tabs ---- */
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  border: 1px solid #334155;
  transition: all 0.2s;
  cursor: pointer;
  background: transparent;
}

.filter-btn:hover {
  border-color: #f59e0b;
  color: #f59e0b;
}

.filter-btn.active {
  background: linear-gradient(135deg, #f59e0b, #C9A84C);
  color: #0f172a;
  border-color: transparent;
  font-weight: 700;
}

/* ---- Verse card ---- */
.verse-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(201, 168, 76, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 1rem;
  position: relative;
}

.verse-card::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 5rem;
  color: rgba(245, 158, 11, 0.15);
  font-family: Georgia, serif;
  line-height: 1;
}

/* ---- YouTube embed responsive ---- */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0.75rem;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0.75rem;
}

/* ---- Cookie Banner ---- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1e293b;
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  padding: 1rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

/* ---- WhatsApp floating button ---- */
.whatsapp-float {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 998;
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ---- Divider ---- */
.gold-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, #f59e0b, transparent);
}

/* ---- Form styles ---- */
.form-input {
  width: 100%;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: white;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-input::placeholder {
  color: #64748b;
}

/* ---- Article content ---- */
.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f59e0b;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fbbf24;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.article-content blockquote {
  border-left: 3px solid #f59e0b;
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #94a3b8;
  font-style: italic;
}

.article-content ul,
.article-content ol {
  color: #cbd5e1;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* ---- Crença / Belief card ---- */
.belief-card {
  background: linear-gradient(135deg, #1e293b, rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: border-color 0.3s;
}

.belief-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
}

/* ---- Social icon hover ---- */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  font-size: 1.25rem;
  transition: background-color 0.2s, transform 0.2s;
}

.social-icon:hover {
  background: #f59e0b;
  color: #0f172a;
  transform: scale(1.1);
}

/* ---- Logo monogram ---- */
.logo-monogram {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b 0%, #C9A84C 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.05em;
  line-height: 1;
}

.logo-monogram-hero {
  font-size: 6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b 0%, #C9A84C 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.05em;
  line-height: 1;
  text-shadow: none;
}

@media (min-width: 768px) {
  .logo-monogram-hero {
    font-size: 8rem;
  }
}

/* ---- Study article detail ---- */
.study-detail {
  display: none;
}

.study-detail.active {
  display: block;
}

/* ---- Page banner ---- */
.page-banner {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, transparent 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

/* ---- Pulse animation for live indicator ---- */
.pulse-dot {
  width: 8px;
  height: 8px;
  background: #f59e0b;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
