/* ========== Imports ========== */
/* base */
@import "./base/animations.css";
@import "./base/reset.css";
@import "./base/typography.css";
@import "./base/variables.css";
/* components */
@import "./components/alerts.css";
@import "./components/buttons.css";
@import "./components/cards.css";
/* layout */
@import "./layout/footer.css";
@import "./layout/header.css";
@import "./layout/layout.css";
@import "./layout/navigation.css";
/* pages */
@import "./pages/ministerios-louvor.css";
@import "./pages/ministerios-jovens.css";
/* sections */
@import "./sections/about.css";
@import "./sections/ministries.css";
@import "./sections/offering.css";
@import "./sections/prayer.css";
@import "./sections/social.css";
/* utilities */
@import "./utilities/helpers.css";
@import "./utilities/responsive.css";

/* ========== HOME PAGE - TEMA ESCURO ========== */
.home-page {
    width: 100%;
}

/* ========== SEPARADORES ENTRE SEÇÕES ========== */
/* Linha com brilho sutil — elegante em dark themes */
.section-glow-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(96, 165, 250, 0.08) 15%,
        rgba(96, 165, 250, 0.35) 50%,
        rgba(96, 165, 250, 0.08) 85%,
        transparent 100%
    );
}

/* ========== TEXTURA NOISE NOS BACKGROUNDS ========== */
/* Grain SVG sutil — dá profundidade a fundos lisos */
.about-section,
.schedule-section,
.offering-section,
.prayer-section,
.ministries-section,
.social-section {
    position: relative;
}

.about-section::after,
.schedule-section::after,
.offering-section::after,
.prayer-section::after,
.ministries-section::after,
.social-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.028;
    pointer-events: none;
    z-index: 0;
}

/* Garante que o conteúdo das seções fique acima do noise */
.about-section > *,
.schedule-section > *,
.offering-section > *,
.prayer-section > *,
.ministries-section > *,
.social-section > * {
    position: relative;
    z-index: 1;
}

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

/* Imagem de fundo da hero (substitui o vídeo) */
.video-container picture.hero-picture {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-container picture.hero-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-section {
    position: relative;
    height: calc(100svh - var(--altura-min-navbar));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 15, 18, 0.4), rgba(15, 15, 18, 0.8));
    /*backdrop-filter: blur(15px);*/ /* Desfoca o vídeo atrás da camada */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: var(--space-8);
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: rgba(39, 39, 42, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
    animation: fadeInDown 1s ease-out;
}

.badge-icon {
    font-size: 1.25rem;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    margin-bottom: var(--space-6);
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: var(--space-8);
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    margin-bottom: var(--space-10);
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.3));
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--white);
    z-index: 3;
    animation: fadeIn 1s ease-out 1s both;
}

.scroll-text {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

/* ========== MANAGE LAYOUT (ÁREA DE CONTA) ========== */
.manage-layout {
    padding: var(--space-16) 0;
    min-height: 70vh;
    background: var(--bg-primary);
}

.manage-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.page-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--space-2);
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
}

.manage-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-8);
    margin-top: var(--space-12);
}

.manage-sidebar {
    background: var(--bg-tertiary);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.manage-main {
    background: var(--bg-tertiary);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 400px;
}

/* Manage Nav Menu */
.manage-nav {
    width: 100%;
}

.manage-nav-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.manage-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.manage-nav-item {
    margin: 0;
}

.manage-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--gray-600);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    font-weight: 500;
    font-size: 0.9375rem;
}

    .manage-nav-link:hover {
        background: rgba(96, 165, 250, 0.1);
        color: var(--primary);
        transform: translateX(4px);
    }

    .manage-nav-link.active {
        background: var(--gradient-blue);
        color: var(--white);
        font-weight: 600;
    }

        .manage-nav-link.active .manage-nav-icon {
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
        }

.manage-nav-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    flex-shrink: 0;
}

/* Recovery Codes */
.recovery-code {
    display: inline-block;
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 1rem;
    color: var(--gray-800);
    margin: var(--space-1) 0;
}

/* Forms */
.manage-main .form-group {
    margin-bottom: var(--space-6);
}

.manage-main .form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.manage-main .form-control,
.manage-main .form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-elevated);
    color: var(--gray-800);
}

    .manage-main .form-control:focus,
    .manage-main .form-input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: var(--glow-primary);
    }

.manage-main .btn-primary {
    background: var(--gradient-blue);
    color: var(--white);
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

    .manage-main .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

/* ========== SLIDESHOW DOTS ========== */
.slideshow-dots {
    position: absolute;
    bottom: 0.875rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.375rem;
    z-index: 10;
}

.slideshow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.slideshow-dot.active {
    background: white;
    border-color: white;
    transform: scale(1.3);
}

.slideshow-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
    border-color: white;
}

/* ========== SLIDESHOW ========== */
.image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    .slide:first-child {
        opacity: 1;
    }

    .slide.active {
        opacity: 1;
    }

/* ========== LEADERSHIP / PASTOR SECTION ========== */
.leadership-section {
    padding: var(--space-24) 0;
    background: var(--bg-secondary);
}

.leadership-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.leadership-img-wrapper {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    aspect-ratio: 4 / 5;
}

.leadership-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s ease;
}

.leadership-img-wrapper:hover img {
    transform: scale(1.04);
}

.leadership-content {
    max-width: 560px;
}

.leadership-text {
    font-size: 1.0625rem;
    color: var(--gray-300);
    line-height: 1.8;
    margin-bottom: var(--space-5);
}

.leadership-quote {
    margin-top: var(--space-8);
    padding: var(--space-6);
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--primary);
}

.quote-mark {
    width: 28px;
    height: 28px;
    color: var(--primary);
    opacity: 0.5;
    margin-bottom: var(--space-3);
}

.leadership-quote p {
    font-size: 1rem;
    color: var(--gray-200);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: var(--space-3);
}

.leadership-quote cite {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    font-style: normal;
}

@media (max-width: 1024px) {
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .leadership-img-wrapper {
        aspect-ratio: 16 / 7;
    }

    .leadership-content {
        max-width: 100%;
    }
}

/* ========== BOTÃO FLUTUANTE WHATSAPP ========== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 58px;
    height: 58px;
    background: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.25);
    z-index: 998;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    color: #ffffff;
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 52px;
        height: 52px;
    }
}

