/* ============================================
   Espiritismo em Pauta - Estilos Customizados
   Design Profissional e Espiritual
   ============================================ */

:root {
    --primary-color: #7C3AED;
    --primary-dark: #5B21B6;
    --primary-light: #C4B5FD;
    --secondary-color: #D97706;
    --accent-color: #FCD34D;
    --text-dark: #1E1B4B;
    --text-medium: #4B5563;
    --text-light: #9CA3AF;
    --bg-light: #F5F3FF;
    --shadow-sm: 0 1px 3px rgba(109, 40, 217, 0.1);
    --shadow-md: 0 4px 12px rgba(109, 40, 217, 0.15);
    --shadow-lg: 0 10px 25px rgba(109, 40, 217, 0.2);
    --shadow-xl: 0 20px 40px rgba(109, 40, 217, 0.25);
    --transition: all 0.3s ease;
    --border-radius: 1rem;
}

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

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    background: linear-gradient(135deg, #ffffff 0%, #FAF5FF 100%);
    box-shadow: 0 2px 20px rgba(109, 40, 217, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 2px solid rgba(124, 58, 237, 0.08);
}

.site-header:hover { box-shadow: var(--shadow-lg); }

.logo-link { transition: var(--transition); text-decoration: none; }
.logo-link:hover { transform: scale(1.03); }

.logo-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-dark);
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.68rem;
    color: var(--secondary-color);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

.nav-link {
    position: relative;
    font-weight: 600;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
}

.nav-link:hover {
    background-color: rgba(124, 58, 237, 0.08);
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after { width: 80%; }

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, #2D0066 0%, #4C1D95 40%, #6D28D9 70%, #7C3AED 100%);
    color: white;
    padding: 5rem 1rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.9) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.6) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.3) 1.5px, transparent 1.5px);
    background-size: 180px 180px, 120px 120px, 90px 90px;
    background-position: 0 0, 60px 60px, 30px 30px;
    opacity: 0.35;
    animation: starsFloat 25s ease-in-out infinite alternate;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -60px; left: 50%;
    transform: translateX(-50%);
    width: 70%; height: 120px;
    background: radial-gradient(ellipse, rgba(217, 119, 6, 0.25) 0%, transparent 70%);
    filter: blur(25px);
    pointer-events: none;
}

@keyframes starsFloat {
    0%   { transform: translateY(0px) translateX(0px); }
    100% { transform: translateY(-20px) translateX(8px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 0 auto;
}

.hero-symbol {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(252,211,77,0.5)); transform: scale(1); }
    50%       { filter: drop-shadow(0 0 30px rgba(252,211,77,1)) drop-shadow(0 0 60px rgba(252,211,77,0.4)); transform: scale(1.07); }
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out;
    color: #fff;
}

.hero-divider {
    width: 90px; height: 3px;
    background: linear-gradient(90deg, transparent, #FCD34D, transparent);
    margin: 0.75rem auto 1.5rem;
    border-radius: 2px;
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    opacity: 0.92;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.35s both;
    color: #FCD34D;
    opacity: 0.9;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    padding: 0.6rem 1.25rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.88rem;
}

.hero-feature:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    border-color: rgba(252,211,77,0.5);
}

/* ============================================
   SECTION STYLES
   ============================================ */

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px; height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* ============================================
   CARDS & GRID
   ============================================ */

.post-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: 1px solid rgba(124, 58, 237, 0.07);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(124, 58, 237, 0.2);
}

.post-card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: linear-gradient(135deg, #4C1D95 0%, #7C3AED 100%);
}

.post-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card-image img { transform: scale(1.08); }

.post-card-badge {
    position: absolute;
    top: 0.85rem; right: 0.85rem;
    background: rgba(255,255,255,0.96);
    padding: 0.25rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.02em;
}

.post-card-badge.badge-mensagem { color: var(--secondary-color); }

.post-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.post-card-excerpt {
    color: var(--text-medium);
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.6;
    font-size: 0.95rem;
}

.post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    font-family: 'Nunito', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
    color: white;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem; height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--primary-color);
    background: #fff;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) { background: var(--primary-color); color: #fff; }

.pagination-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: #d1d5db;
    color: #9ca3af;
}

.pagination-btn-active { background: var(--primary-color); color: #fff; pointer-events: none; }

.pagination-ellipsis {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; color: #6b7280; font-size: 1.1rem; user-select: none;
}

/* ============================================
   AD BANNER
   ============================================ */

.ad-banner {
    width: 100%;
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(124, 58, 237, 0.08);
    transition: var(--transition);
}

.ad-banner:hover { box-shadow: var(--shadow-xl); border-color: rgba(124, 58, 237, 0.2); }

.ad-banner-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; }

.ad-banner-image {
    width: 100%; background: #fff;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}

.ad-banner-image img { width: 100%; height: auto; display: block; object-fit: cover; transition: transform 0.5s ease; }
.ad-banner:hover .ad-banner-image img { transform: scale(1.02); }

.ad-banner-content {
    width: 100%; padding: 1rem 1.5rem;
    background: rgba(124, 58, 237, 0.03);
    display: flex; align-items: center; justify-content: center;
}

.ad-banner-content p {
    font-size: 1rem; color: var(--primary-dark); line-height: 1.6; font-weight: 500; text-align: center;
}

.ad-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%; display: flex; flex-direction: column;
    border: 1px solid rgba(124, 58, 237, 0.08);
}

.ad-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: rgba(124, 58, 237, 0.25); }

.ad-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }

.ad-card-image {
    overflow: hidden; height: 220px; background: #fff;
    display: flex; align-items: center; justify-content: center;
}

.ad-card-image img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s ease; }
.ad-card:hover .ad-card-image img { transform: scale(1.05); }

.ad-card-content {
    padding: 1.25rem 1.5rem 1.5rem; flex-grow: 1;
    display: flex; align-items: center; background: rgba(124, 58, 237, 0.03);
}

.ad-card-content p { font-size: 0.9rem; color: var(--primary-dark); line-height: 1.55; font-weight: 500; text-align: center; }

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

.site-footer {
    background: linear-gradient(135deg, #1E1B4B 0%, #2D1B69 60%, #1a1033 100%);
    color: white;
    padding: 3.5rem 1rem 1.5rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #7C3AED, #D97706, #FCD34D, #7C3AED);
    background-size: 200% auto;
    animation: shimmer 4s linear infinite;
}

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

.footer-content { max-width: 1200px; margin: 0 auto; }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-section h4 {
    color: #FCD34D;
    margin-bottom: 1rem; font-size: 1rem;
    font-family: 'Cinzel', serif; font-weight: 600; letter-spacing: 0.05em;
}

.footer-section p { color: #c4b5fd; font-size: 0.88rem; line-height: 1.7; }

.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }

.footer-section a {
    color: #c4b5fd; text-decoration: none; transition: var(--transition);
    display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.88rem;
}

.footer-section a:hover { color: #FCD34D; transform: translateX(5px); }

.footer-quote {
    background: rgba(255,255,255,0.04);
    border-left: 3px solid #FCD34D;
    padding: 0.85rem 1.1rem;
    border-radius: 0 0.5rem 0.5rem 0;
    font-family: 'Playfair Display', serif;
    font-style: italic; font-size: 0.85rem; color: #e9d5ff;
    margin-top: 0.75rem; line-height: 1.6;
}

.footer-quote cite {
    display: block; font-style: normal; font-size: 0.75rem;
    color: #FCD34D; margin-top: 0.35rem; font-family: 'Nunito', sans-serif; font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem; text-align: center; color: #9ca3af;
}

.footer-bottom strong { color: #FCD34D; font-family: 'Cinzel', serif; }

.social-links { display: flex; gap: 1rem; justify-content: center; margin-top: 1rem; }

.social-link {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); text-decoration: none; font-size: 1.1rem; color: white;
}

.social-link:hover {
    background: var(--primary-color); border-color: var(--primary-color);
    transform: translateY(-3px); box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
}

/* ============================================
   POST PAGE
   ============================================ */

.post-header { max-width: 900px; margin: 0 auto 2rem; }

.post-content { max-width: 800px; margin: 0 auto; font-size: 1.1rem; line-height: 1.85; }

.post-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem; font-weight: 700; margin: 2.5rem 0 1rem; color: var(--text-dark);
}

.post-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem; font-weight: 600; margin: 2rem 0 0.75rem; color: var(--primary-color);
}

.post-content p { margin-bottom: 1.4rem; }

.post-content ul, .post-content ol { margin: 1rem 0; padding-left: 2rem; }
.post-content li { margin-bottom: 0.65rem; }

.post-content img { border-radius: 0.75rem; box-shadow: var(--shadow-lg); margin: 2rem 0; }

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem 1.5rem; margin: 2rem 0;
    font-style: italic; color: var(--text-medium);
    background: rgba(124, 58, 237, 0.04); border-radius: 0 0.5rem 0.5rem 0;
}

.share-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.share-btn {
    padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 600;
    text-decoration: none; color: white; transition: var(--transition);
    display: flex; align-items: center; gap: 0.5rem;
}

.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ============================================
   SPIRITUAL CARD
   ============================================ */

.spiritual-card {
    background: linear-gradient(135deg, #FAF5FF 0%, #F5F3FF 100%);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: var(--border-radius);
    padding: 2rem; text-align: center; transition: var(--transition);
}

.spiritual-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-lg);
    border-color: rgba(124, 58, 237, 0.25);
}

.spiritual-card .card-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }

.spiritual-card h3 {
    font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700;
    color: var(--primary-dark); margin-bottom: 0.75rem;
}

.spiritual-card p { color: var(--text-medium); font-size: 0.95rem; line-height: 1.7; }

/* ============================================
   BADGES
   ============================================ */

.badge { display: inline-block; padding: 0.3rem 0.85rem; border-radius: 2rem; font-size: 0.75rem; font-weight: 700; }
.badge-estudo { background: rgba(124, 58, 237, 0.1); color: var(--primary-dark); }
.badge-mensagem { background: rgba(217, 119, 6, 0.1); color: #92400e; }

/* ============================================
   MAGALU BANNER
   ============================================ */

.magalu-banner-wrapper { width: 100%; }

.magalu-banner {
    display: flex; align-items: center; gap: 1.5rem;
    background: linear-gradient(135deg, #0086FF 0%, #005BB5 100%);
    border-radius: var(--border-radius);
    padding: 1.5rem 2rem; text-decoration: none; color: #fff;
    box-shadow: 0 8px 24px rgba(0, 134, 255, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 2px solid rgba(255, 230, 0, 0.4); position: relative;
}

.magalu-banner:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0, 134, 255, 0.45); border-color: rgba(255, 230, 0, 0.7); }

.magalu-banner-img { width: 90px; height: 90px; object-fit: contain; flex-shrink: 0; }
.magalu-banner-text { display: flex; flex-direction: column; gap: 0.75rem; }
.magalu-banner-msg { font-size: 1rem; font-weight: 500; line-height: 1.55; color: #fff; margin: 0; }

.magalu-banner-cta {
    display: inline-block; background: #FFE600; color: #0033A0;
    font-weight: 700; font-size: 0.9rem; padding: 0.45rem 1.25rem;
    border-radius: 9999px; align-self: flex-start;
}

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

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

.animate-fade-in { animation: fadeInUp 0.6s ease-out; }
.animate-slide-in { animation: slideInRight 0.6s ease-out; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-title { font-size: 1.9rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 1.75rem; }
    .post-content { font-size: 1rem; }
    .footer-grid { grid-template-columns: 1fr; }

    .magalu-banner { flex-direction: column; align-items: stretch; text-align: center; padding: 1.25rem 1rem; }
    .magalu-banner-img { margin: 0 auto; }
    .magalu-banner-cta { align-self: center; display: block; width: fit-content; margin: 0 auto; }
}

/* ============================================
   UTILITIES
   ============================================ */

.page-transition { animation: fadeInUp 0.5s ease-out; }
.hover-lift { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-5px); }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

button:focus, a:focus { outline: 2px solid var(--primary-color); outline-offset: 2px; }
