/* ===== CSS HOMEPAGE - DESIGN MODERNO COM ANIMAÇÕES SUAVES ===== */

/* Gradientes e Fundos Modernos */
.hero-section {
    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.05) 0%,
            rgba(139, 92, 246, 0.05) 50%,
            rgba(236, 72, 153, 0.05) 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
    min-height: 40vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 1rem 0;
}

/* Animações Suaves para Hero */
.hero-title {
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards de Rifa com Hover Suave */
.rifa-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
    background: var(--white);
}

.rifa-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
}

.rifa-card .card-img-top {
    transition: transform 0.3s ease;
    height: 200px;
    object-fit: cover;
}

.rifa-card:hover .card-img-top {
    transform: scale(1.05);
}

.rifa-card .card-body {
    position: relative;
    overflow: hidden;
}

.rifa-card .card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 100%);
    transition: left 0.5s ease;
}

.rifa-card:hover .card-body::before {
    left: 100%;
}

/* Progress Bar Animado */
.progress-animated {
    position: relative;
    overflow: hidden;
}

.progress-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Badges com Gradient Suave */
.badge-gradient-success {
    background: linear-gradient(135deg, var(--success-color), #10b981);
    color: var(--white);
    font-weight: 500;
}

.badge-gradient-warning {
    background: linear-gradient(135deg, var(--warning-color), #f59e0b);
    color: var(--white);
    font-weight: 500;
}

.badge-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    font-weight: 500;
}

/* Botões com Gradientes Suaves */
.btn-gradient-primary {
    background: linear-gradient(135deg, #64748b, #475569);
    border: none;
    color: var(--white);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-gradient-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.2),
            rgba(255, 255, 255, 0.1));
    transition: left 0.5s ease;
}

.btn-gradient-primary:hover::before {
    left: 0;
}

.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.3);
}

/* Seção de Features Simples */
.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: none;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-icon i {
    color: var(--primary-color);
}

/* Navbar com Glass Effect */
.navbar-modern {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.navbar-modern.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

/* Números com Animação Suave */
.numero-preview {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: var(--font-size-sm);
    margin: 2px;
    transition: all 0.2s ease;
}

.numero-preview.disponivel {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.numero-preview.vendido {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(5, 150, 105, 0.3);
}

.numero-preview:hover {
    transform: scale(1.1);
}

/* Estatísticas Animadas */
.stat-number {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer Moderno */
.footer-modern {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    color: var(--gray-300);
    position: relative;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--primary-color) 50%,
            transparent 100%);
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.loading-shimmer {
    background: linear-gradient(90deg,
            var(--gray-200) 25%,
            var(--gray-100) 50%,
            var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer-loading 1.5s infinite;
}

@keyframes shimmer-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ===== ELEMENTOS FLUTUANTES NO HERO ===== */
.hero-visual {
    position: relative;
    height: 250px;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center,
            rgba(99, 102, 241, 0.1) 0%,
            transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.floating-card {
    position: absolute;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: var(--spacing-3) var(--spacing-4);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray-700);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

.floating-card i {
    color: var(--primary-color);
}

.floating-card.card-1 {
    top: 20%;
    left: 10%;
    animation: float-1 6s ease-in-out infinite;
}

.floating-card.card-2 {
    top: 60%;
    right: 15%;
    animation: float-2 5s ease-in-out infinite;
}

.floating-card.card-3 {
    bottom: 25%;
    left: 20%;
    animation: float-3 7s ease-in-out infinite;
}

@keyframes float-1 {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(2deg);
    }

    66% {
        transform: translateY(10px) rotate(-1deg);
    }
}

@keyframes float-2 {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(-2deg);
    }
}

@keyframes float-3 {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(15px) rotate(1deg);
    }

    75% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

.hero-main-visual {
    position: relative;
    z-index: 2;
}

/* Ajustes adicionais para cores suaves */
.bg-primary-subtle {
    background-color: rgba(99, 102, 241, 0.1) !important;
    color: var(--primary-color) !important;
}

.bg-success-subtle {
    background-color: rgba(5, 150, 105, 0.1) !important;
    color: var(--success-color) !important;
}

.text-gray-900 {
    color: var(--gray-900) !important;
}

.text-gray-800 {
    color: var(--gray-800) !important;
}

.text-gray-700 {
    color: var(--gray-700) !important;
}

.text-gray-600 {
    color: var(--gray-600) !important;
}

.text-gray-500 {
    color: var(--gray-500) !important;
}

.text-gray-400 {
    color: var(--gray-400) !important;
}

.text-gray-300 {
    color: var(--gray-300) !important;
}

.border-gray-700 {
    border-color: var(--gray-700) !important;
}

.min-vh-75 {
    min-height: 60vh;
}

/* Fixed navbar adjustments */
.fixed-top+section {
    padding-top: 80px;
}

/* Hover effects for cards */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.15);
}

/* ===== NAVBAR ANIMADO ===== */
.navbar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95) !important;
}

.navbar-scrolled {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.navbar-nav .nav-link {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.navbar-brand {
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* ===== PROGRESS BAR ANIMADA ===== */
.progress-bar {
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ===== BADGES COM EFEITO PULSE ===== */
.badge {
    animation: subtle-pulse 2s ease-in-out infinite;
}

@keyframes subtle-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ===== SEÇÃO DE ESTATÍSTICAS ===== */
.stats-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.02) 0%, transparent 70%);
    opacity: 0.8;
}

.stat-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(99, 102, 241, 0.1);
    border-color: #e0e7ff;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 1px solid #e0f7fa;
}

.stat-icon i {
    font-size: 1.5rem;
    color: #0369a1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    display: block;
    line-height: 1;
}

.stat-label {
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

/* ===== SEÇÃO COMO FUNCIONA ===== */
.step-number {
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.step-number:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* ===== SEÇÃO RIFAS ATIVAS ===== */
#rifas-ativas {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.rifa-card {
    transition: all 0.3s ease;
    background: white;
    border-radius: 12px !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    overflow: hidden;
}

.rifa-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

.rifa-card .badge {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.rifa-card .card-title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rifa-card .progress {
    background-color: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.rifa-card .progress-bar {
    transition: width 0.8s ease;
    border-radius: 10px;
}

.rifa-card .btn-primary {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.rifa-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
}

/* Animação para os cards */
.rifa-card {
    animation: fadeInUp 0.6s ease-out;
}

.rifa-card:nth-child(1) {
    animation-delay: 0.1s;
}

.rifa-card:nth-child(2) {
    animation-delay: 0.2s;
}

.rifa-card:nth-child(3) {
    animation-delay: 0.3s;
}

.rifa-card:nth-child(4) {
    animation-delay: 0.4s;
}

.rifa-card:nth-child(5) {
    animation-delay: 0.5s;
}

.rifa-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Estado vazio das rifas */
.rifas-empty {
    background: white;
    border-radius: 16px;
    padding: 3rem 2rem;
    border: 2px dashed #cbd5e1;
    transition: all 0.3s ease;
}

.rifas-empty:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        padding: 1rem 0;
    }

    .hero-visual {
        height: 200px !important;
    }

    .floating-elements {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    .floating-elements {
        display: none;
    }
}