/*
Theme Name: Mapa Astral - Bia Siqueira
Theme URI: https://biasiqueira.com.br
Author: Bia Siqueira
Author URI: https://biasiqueira.com.br
Description: Tema WordPress para o Mini Guia de Interpretação de Mapa Astral
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mapa-astral
*/

/* ========================================
   Google Fonts - Carregado via functions.php
   Fallback abaixo caso não carregue
======================================== */

/* ========================================
   CSS Variables (Tokens de Design)
======================================== */
:root {
    /* Cores de Fundo - usando valores HEX para maior compatibilidade */
    --background: #050714;
    --background-secondary: #0a0f1c;
    --background-tertiary: #101729;
    
    /* Cores de Texto */
    --foreground: #f0f2f5;
    --foreground-muted: #a5adb8;
    
    /* Cards */
    --card: #141c33;
    --card-secondary: #171f38;
    
    /* Dourado (Primary) */
    --primary: #E4A21B;
    --primary-glow: #f5c558;
    --primary-foreground: #050714;
    
    /* Bordas */
    --border: #2a3454;
    
    /* Gradientes */
    --gold-gradient: linear-gradient(135deg, #E4A21B, #f5c558);
    
    /* Estrelas */
    --star-color: #f5c558;
    
    /* Tipografia */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Espaçamentos */
    --radius: 0.75rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--foreground);
}

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

/* Em muitos sites WordPress há CSS global que força link azul/underline.
   Garantimos aqui que botões do tema não herdem esses estilos. */
a.btn,
a.btn:link,
a.btn:visited {
    text-decoration: none;
    color: inherit;
}

a.btn:hover,
a.btn:active,
a.btn:focus {
    text-decoration: none;
}

a.btn svg {
    display: block;
    flex-shrink: 0;
}

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

/* ========================================
   Container
======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-sm {
    max-width: 768px;
}

.container-md {
    max-width: 1024px;
}

/* ========================================
   Estrelas Animadas (Background)
======================================== */
.stars-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--star-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: twinkle var(--duration, 3s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.star::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: var(--star-color);
    opacity: 0.3;
    border-radius: 50%;
    filter: blur(1px);
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ========================================
   Utilidades
======================================== */
.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Fallback para navegadores que não suportam background-clip */
@supports not (background-clip: text) {
    .gold-text {
        color: var(--primary);
        background: none;
        -webkit-text-fill-color: unset;
    }
}

.gold-glow {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
}

.text-muted {
    color: var(--foreground-muted);
}

.text-center {
    text-align: center;
}

/* ========================================
   Seções
======================================== */
.section-padding {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 6rem 0;
    }
}

.section-bg-alt {
    background-color: var(--background-secondary);
}

/* ========================================
   Cards
======================================== */
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(228, 162, 27, 0.15);
    border-color: rgba(228, 162, 27, 0.5);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background-color: rgba(228, 162, 27, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}

.card:hover .card-icon {
    background-color: rgba(228, 162, 27, 0.2);
}

.card-icon svg,
.card-icon span {
    color: var(--primary);
    font-size: 1.5rem;
}

/* ========================================
   Botões
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-sans);
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1;
}

.btn-gold {
    background: var(--gold-gradient);
    color: var(--primary-foreground);
    box-shadow: 0 0 20px rgba(228, 162, 27, 0.3);
}

a.btn.btn-gold,
a.btn.btn-gold:link,
a.btn.btn-gold:visited {
    color: var(--primary-foreground);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(228, 162, 27, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(228, 162, 27, 0.5);
    color: var(--primary);
}

a.btn.btn-outline,
a.btn.btn-outline:link,
a.btn.btn-outline:visited {
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(228, 162, 27, 0.1);
    border-color: var(--primary);
}

.btn-xl {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-lg {
    padding: 0.875rem 1.5rem;
}

/* ========================================
   Badge
======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(228, 162, 27, 0.3);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(8px);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground-muted);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ========================================
   Animações
======================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.6s ease-out forwards;
}

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

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(228, 162, 27, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(228, 162, 27, 0.6);
    }
}

.animate-pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* ========================================
   Grid Layouts
======================================== */
.grid {
    display: grid;
    gap: 1.25rem;
}

.grid-2 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-5 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-6 {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-5 { grid-template-columns: repeat(2, 1fr); }
    .grid-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
    .grid-6 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1280px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .grid-5 { grid-template-columns: repeat(5, 1fr); }
    .grid-6 { grid-template-columns: repeat(6, 1fr); }
}

/* ========================================
   Flexbox Utilities
======================================== */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* ========================================
   Spacing
======================================== */
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

/* ========================================
   Typography Sizes
======================================== */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }

@media (min-width: 768px) {
    .md-text-4xl { font-size: 2.25rem; }
    .md-text-5xl { font-size: 3rem; }
    .md-text-xl { font-size: 1.25rem; }
}

@media (min-width: 1024px) {
    .lg-text-6xl { font-size: 3.75rem; }
}

/* ========================================
   Footer
======================================== */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.footer-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(228, 162, 27, 0.3);
    margin-bottom: 1rem;
}

.footer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* ========================================
   CTA Section
======================================== */
.cta-box {
    background: linear-gradient(135deg, var(--card), var(--card-secondary));
    border: 1px solid rgba(228, 162, 27, 0.2);
    border-radius: 1rem;
    padding: 2rem;
}

@media (min-width: 768px) {
    .cta-box {
        padding: 3rem;
    }
}

/* ========================================
   Scroll e seleção
======================================== */
::selection {
    background: rgba(228, 162, 27, 0.3);
    color: var(--foreground);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(228, 162, 27, 0.5);
}
