/* ==========================================================================
   PONTO DE VISTA GAY - ESTILOS GLOBAIS & DESIGN SYSTEM
   Performance First | Zero CLS | Dark/Light Mode Total | Responsivo
   ========================================================================== */

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

:root {
  /* =========================================================================
     DARK THEME (Default) - Suavizado (~15% menos escuro / Midnight Slate)
     ========================================================================= */
  --bg-primary: #161c28;
  --bg-secondary: #1e2638;
  --bg-card: rgba(30, 38, 56, 0.9);
  --bg-card-hover: rgba(38, 48, 70, 0.95);
  --border-color: rgba(255, 255, 255, 0.12);
  --border-color-focus: rgba(236, 72, 153, 0.6);
  
  /* Tipografia Dark */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  /* Acentos LGBTQIA+ Modernos */
  --accent-pink: #ec4899;
  --accent-purple: #8b5cf6;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  
  /* Gradientes */
  --gradient-pride: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #3b82f6 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
  --gradient-glow: radial-gradient(circle at 50% -20%, rgba(236, 72, 153, 0.18), transparent 70%);
  
  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.35), 0 8px 10px -6px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 25px rgba(236, 72, 153, 0.25);
  
  /* Transições */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================================
   LIGHT THEME - Totalmente redesenhado para máximo contraste e legibilidade
   ========================================================================= */
html[data-theme="light"] {
  --bg-primary: #f3f5f8;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --border-color: rgba(15, 23, 42, 0.12);
  --border-color-focus: rgba(236, 72, 153, 0.5);
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --gradient-card: linear-gradient(180deg, rgba(0, 0, 0, 0.01) 0%, rgba(0, 0, 0, 0) 100%);
  --gradient-glow: radial-gradient(circle at 50% -20%, rgba(236, 72, 153, 0.08), transparent 70%);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

/* Base Reset & Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  background-image: var(--gradient-glow);
  background-attachment: fixed;
  background-repeat: no-repeat;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility Containers */
.container-custom {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .container-custom {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Gradient Texts & Badges */
.text-gradient {
  background: var(--gradient-pride);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.badge-pride {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(236, 72, 153, 0.35);
  color: var(--accent-pink);
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Glassmorphism Card Style */
.card-glass {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.card-glass:hover {
  border-color: var(--border-color-focus);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  transform: translateY(-3px);
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 28, 40, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.nav-link {
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(236, 72, 153, 0.12);
  color: var(--accent-pink);
}

/* Filter Buttons & Pills */
.filter-pill {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-pill:hover {
  border-color: var(--accent-pink);
  color: var(--text-primary);
}

.filter-pill.active {
  background: var(--gradient-pride) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35);
}

/* Search Bar Input */
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-fast);
  outline: none;
}

.search-input:focus {
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
}

/* Grid Layouts */
.places-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .places-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .places-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Venue Image Styling */
.venue-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  background-color: var(--bg-secondary);
}

.venue-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.card-glass:hover .venue-image {
  transform: scale(1.06);
}

/* Dica de Ouro Box */
.dica-box {
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid var(--accent-amber);
  border-radius: 0.375rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: 0.75rem;
}

/* Curiosidade & Por Que Vale a Pena Box */
.curiosidade-box {
  background: rgba(139, 92, 246, 0.1);
  border-left: 3px solid var(--accent-purple);
  border-radius: 0.375rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: 0.65rem;
}

/* AdSense Slots */
.ad-slot-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
  width: 100%;
  text-align: center;
  position: relative;
}

.ad-slot-label {
  font-size: 0.675rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.ad-slot-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-color);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

.ad-slot-leaderboard {
  min-height: 90px;
  max-width: 728px;
}

.ad-card-feed {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.05), rgba(59, 130, 246, 0.05));
  border: 1px dashed var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}

@media (min-width: 640px) {
  .ad-card-feed {
    grid-column: span 2;
  }
}
@media (min-width: 1024px) {
  .ad-card-feed {
    grid-column: span 3;
  }
}

/* Buttons */
.btn-primary {
  background: var(--gradient-pride);
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.4);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  border-color: var(--accent-pink);
  color: var(--accent-pink);
}

/* Modal Overlay & Content */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  animation: slideIn 250ms ease forwards;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 3rem 0 2rem;
  color: var(--text-secondary);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-pink);
}

/* =========================================================================
   REGRAS ESPECÍFICAS DE SOBREPOSIÇÃO DO LIGHT MODE
   Garante contraste impecável mesmo com classes Tailwind presentes
   ========================================================================= */

html[data-theme="light"] body {
  background-color: #f3f5f8 !important;
  color: #0f172a !important;
}

html[data-theme="light"] .bg-gray-950,
html[data-theme="light"] .bg-gray-950\/95,
html[data-theme="light"] .bg-gray-950\/80,
html[data-theme="light"] .bg-gray-950\/60,
html[data-theme="light"] .bg-gray-950\/40 {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

html[data-theme="light"] .bg-gray-900,
html[data-theme="light"] .bg-gray-900\/90,
html[data-theme="light"] .bg-gray-900\/80,
html[data-theme="light"] .bg-gray-900\/60,
html[data-theme="light"] .bg-gray-900\/40 {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .bg-gray-800,
html[data-theme="light"] .bg-gray-800\/80 {
  background-color: #f1f5f9 !important;
  color: #1e293b !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

/* Textos em Light Mode */
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6,
html[data-theme="light"] .text-white,
html[data-theme="light"] .text-gray-100 {
  color: #0f172a !important;
}

html[data-theme="light"] .text-gray-200 {
  color: #1e293b !important;
}

html[data-theme="light"] .text-gray-300 {
  color: #334155 !important;
}

html[data-theme="light"] .text-gray-400 {
  color: #64748b !important;
}

html[data-theme="light"] .text-gray-500 {
  color: #94a3b8 !important;
}

/* Bordas em Light Mode */
html[data-theme="light"] .border-gray-800,
html[data-theme="light"] .border-gray-800\/80,
html[data-theme="light"] .border-gray-800\/60,
html[data-theme="light"] .border-gray-700,
html[data-theme="light"] .border-gray-700\/80 {
  border-color: rgba(15, 23, 42, 0.1) !important;
}

/* Header & Footer em Light Mode */
html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .site-footer {
  background: #ffffff !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #475569 !important;
}

/* Cards & Containers em Light Mode */
html[data-theme="light"] .card-glass {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03) !important;
}

html[data-theme="light"] .card-glass:hover {
  border-color: var(--border-color-focus) !important;
  box-shadow: 0 10px 25px -5px rgba(236, 72, 153, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.06) !important;
}

/* Inputs, Selects & Botões em Light Mode */
html[data-theme="light"] .search-input {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
}

html[data-theme="light"] .filter-pill {
  background: #ffffff !important;
  color: #334155 !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
}

html[data-theme="light"] .filter-pill:hover {
  border-color: var(--accent-pink) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .btn-secondary {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.18) !important;
}

html[data-theme="light"] select,
html[data-theme="light"] input[type="date"],
html[data-theme="light"] input[type="time"] {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
}

/* Caixas de Destaque */
html[data-theme="light"] .curiosidade-box {
  background: rgba(139, 92, 246, 0.08) !important;
  border-left: 3px solid #7c3aed !important;
  color: #334155 !important;
}

html[data-theme="light"] .curiosidade-box p,
html[data-theme="light"] .curiosidade-box span {
  color: #334155 !important;
}

html[data-theme="light"] .curiosidade-box h4,
html[data-theme="light"] .curiosidade-box .font-semibold {
  color: #6d28d9 !important;
}

html[data-theme="light"] .dica-box {
  background: rgba(245, 158, 11, 0.08) !important;
  border-left: 3px solid #d97706 !important;
  color: #334155 !important;
}

html[data-theme="light"] .dica-box p,
html[data-theme="light"] .dica-box span {
  color: #334155 !important;
}

html[data-theme="light"] .dica-box h4,
html[data-theme="light"] .dica-box .font-semibold {
  color: #b45309 !important;
}

/* Modais em Light Mode */
html[data-theme="light"] .modal-content {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

/* Quiz e Pajubá em Light Mode */
html[data-theme="light"] .alpha-btn {
  background: #ffffff !important;
  color: #334155 !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
}

html[data-theme="light"] .quiz-option-btn {
  background: #ffffff !important;
  color: #1e293b !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
}

html[data-theme="light"] .quiz-option-btn:hover {
  background: #f8fafc !important;
  border-color: var(--accent-pink) !important;
}

/* Artigos Prose em Light Mode */
html[data-theme="light"] .prose {
  color: #334155 !important;
}

html[data-theme="light"] .prose h1,
html[data-theme="light"] .prose h2,
html[data-theme="light"] .prose h3,
html[data-theme="light"] .prose h4 {
  color: #0f172a !important;
}

html[data-theme="light"] .prose p,
html[data-theme="light"] .prose li {
  color: #334155 !important;
}

html[data-theme="light"] .prose strong {
  color: #0f172a !important;
}

html[data-theme="light"] .badge-pride {
  background: rgba(236, 72, 153, 0.08) !important;
  border-color: rgba(236, 72, 153, 0.3) !important;
  color: #db2777 !important;
}

/* Calculadoras e Caixas Coloridas em Light Mode */
html[data-theme="light"] .bg-pink-950\/40 {
  background-color: #fdf2f8 !important;
  border-color: #fbcfe8 !important;
}

html[data-theme="light"] .bg-purple-950\/40 {
  background-color: #f5f3ff !important;
  border-color: #ddd6fe !important;
}

html[data-theme="light"] .bg-blue-950\/40 {
  background-color: #eff6ff !important;
  border-color: #bfdbfe !important;
}

html[data-theme="light"] .bg-amber-950\/30 {
  background-color: #fffbeb !important;
  border-color: #fde68a !important;
}

html[data-theme="light"] .bg-rose-950\/40,
html[data-theme="light"] .bg-rose-950\/60,
html[data-theme="light"] .bg-rose-950\/80 {
  background-color: #fff1f2 !important;
  border-color: #fecdd3 !important;
}

html[data-theme="light"] .bg-emerald-950\/40,
html[data-theme="light"] .bg-emerald-950\/60,
html[data-theme="light"] .bg-emerald-950\/80 {
  background-color: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
}

/* Textos de Destaque em Light Mode */
html[data-theme="light"] .text-pink-300 {
  color: #be185d !important;
}

html[data-theme="light"] .text-purple-300 {
  color: #6d28d9 !important;
}

html[data-theme="light"] .text-blue-300 {
  color: #1d4ed8 !important;
}

html[data-theme="light"] .text-amber-300 {
  color: #b45309 !important;
}

html[data-theme="light"] .text-rose-300 {
  color: #be123c !important;
}

html[data-theme="light"] .text-emerald-300 {
  color: #047857 !important;
}

/* Botões e Ícones em Light Mode */
html[data-theme="light"] .theme-toggle-btn {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
}

html[data-theme="light"] .fav-btn {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .modal-close-btn {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

html[data-theme="light"] .speak-btn {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

html[data-theme="light"] #mobile-menu-drawer {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}
