/* Custom CSS para Index com Bootstrap 5 */

/* Variáveis CSS - Nova Paleta Vibrante */
:root {
    /* Cores Primárias - Vermelho Vibrante */
    --primary-red: #e74c3c;
    --primary-red-dark: #c0392b;
    --primary-red-light: #ff6b5b;
    
    /* Cores Secundárias - Laranja e Dourado */
    --secondary-orange: #f39c12;
    --secondary-orange-dark: #e67e22;
    --secondary-gold: #f1c40f;
    --secondary-gold-dark: #f39c12;
    
    /* Tons Neutros Modernos */
    --neutral-dark: #2c3e50;
    --neutral-gray: #7f8c8d;
    --neutral-light: #ecf0f1;
    --primary-white: #ffffff;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary-red), var(--secondary-orange));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-orange), var(--secondary-gold));
    --gradient-hero: linear-gradient(135deg, var(--primary-red), var(--secondary-orange), var(--secondary-gold));
    
    /* Sombras */
    --shadow-primary: 0 8px 32px rgba(231, 76, 60, 0.3);
    --shadow-secondary: 0 8px 32px rgba(243, 156, 18, 0.3);
    
    /* Bordas */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    
    --hero-overlay-color: rgba(44, 62, 80, 0.8);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
}

.hero-bg {
    background-image: url('../images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-overlay-color);
}

/* Backdrop Blur Effect */
.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Stat Cards */
.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Event Cards */
.event-card-inner {
    transition: all 0.3s ease;
    border-radius: 1rem;
    overflow: hidden;
}

.event-card-inner:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

/* Estilos movidos para event_images.css */

/* Filter Buttons */
.filter-btn {
    transition: all 0.3s ease;
    border-radius: 2rem;
    font-weight: 600;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.filter-btn.active {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

/* Scroll Indicator */
.scroll-indicator {
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1 !important;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Feature Icons */
.feature-icon {
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom Button Styles */
.btn {
    border-radius: 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.75rem 2rem;
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Badge Styles */
.badge {
    font-weight: 600;
    border-radius: 1rem;
}

/* Text Styles */
.display-2 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.display-4 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .display-2 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .filter-btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .display-2 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .bg-light {
        background-color: #f8f9fa !important;
    }
}

/* Print Styles */
@media print {
    .hero-section,
    .scroll-indicator,
    .filter-btn {
        display: none !important;
    }
    
    .event-card-inner {
        break-inside: avoid;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
.btn:focus,
.filter-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Custom Utilities */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
}

/* Event Card Specific Styles */
.event-card {
    transition: all 0.3s ease;
}

.event-card:hover .card-title {
    color: var(--primary-red);
}

/* Section Spacing */
section {
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(220, 53, 69, 0.3), transparent);
}

/* ===========================================
   CARDS LIMPOS E FUNCIONAIS - DESIGN SOU COMPETIDOR
   =========================================== */

.event-card-clean {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card-clean:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-red);
}

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

.event-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Container da Imagem */
.event-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.event-card-clean:hover .event-image {
    transform: scale(1.05);
}

/* Fallback para quando a imagem não carrega */
.event-image-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fallback-content {
    text-align: center;
    color: #e74c3c;
}

.fallback-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.fallback-content span {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.fallback-content small {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    opacity: 0.8;
}

/* Badge de Data */
.event-date-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-red);
    padding: 8px 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    min-width: 45px;
}

.date-day {
    display: block;
    font-size: 16px;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Badge de Status */
.event-status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-red);
    color: white;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-status-badge i {
    font-size: 12px;
}

/* Corpo do Card */
.event-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-info {
    margin-bottom: 16px;
    flex: 1;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
}

.info-item i {
    color: var(--primary-red);
    margin-right: 8px;
    margin-top: 2px;
    width: 16px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

.info-item span {
    flex: 1;
}

/* Footer do Card */
.event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.event-price {
    flex: 1;
}

.price-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    background: var(--primary-red);
    color: white;
}

.price-consult {
    background: #28a745;
    color: white;
}

.event-arrow {
    color: var(--primary-red);
    font-size: 16px;
    transition: transform 0.3s ease;
    margin-left: 12px;
}

.event-card-clean:hover .event-arrow {
    transform: translateX(4px);
}

/* ===========================================
   RESPONSIVIDADE MOBILE-FIRST
   =========================================== */

/* Mobile (até 576px) */
@media (max-width: 576px) {
    .event-card-clean {
        margin-bottom: 16px;
    }
    
    .event-image-container {
        height: 180px;
    }
    
    .event-date-badge {
        top: 10px;
        right: 10px;
        padding: 6px 8px;
        min-width: 40px;
    }
    
    .date-day {
        font-size: 14px;
    }
    
    .date-month {
        font-size: 9px;
    }
    
    .event-status-badge {
        top: 10px;
        left: 10px;
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .event-status-badge i {
        font-size: 11px;
    }
    
    .event-card-body {
        padding: 12px;
    }
    
    .event-card-title {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .info-item {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .info-item i {
        font-size: 13px;
        width: 14px;
    }
    
    .event-card-footer {
        padding-top: 10px;
    }
    
    .price-badge {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .event-arrow {
        font-size: 14px;
        margin-left: 8px;
    }
    
    /* Responsividade para fallback no mobile */
    .fallback-content i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .fallback-content span {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .fallback-content small {
        font-size: 0.8rem;
    }
}

/* Tablet (577px a 768px) */
@media (min-width: 577px) and (max-width: 768px) {
    .event-image-container {
        height: 190px;
    }
    
    .event-card-body {
        padding: 14px;
    }
    
    .event-card-title {
        font-size: 15px;
    }
    
    .info-item {
        font-size: 13px;
    }
}

/* Desktop (769px+) */
@media (min-width: 769px) {
    .event-image-container {
        height: 200px;
    }
    
    .event-card-body {
        padding: 16px;
    }
    
    .event-card-title {
        font-size: 16px;
    }
    
    .info-item {
        font-size: 14px;
    }
}

/* Footer Styles */
.site-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* WhatsApp FAB */
.whatsapp-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Dashboard de Eventos Interativo - Otimizado para Palmas-TO */
.events-dashboard {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.event-card {
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.filter-btn {
    transition: all 0.3s ease;
    border-radius: 2rem;
    font-weight: 600;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.filter-btn.active {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

/* Animação de entrada */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: slideInUp 0.5s ease-out;
}

/* Animação de entrada alternativa */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Melhorias nos cards de eventos */
.event-card-inner {
    transition: all 0.3s ease;
    border-radius: 1rem;
    overflow: hidden;
}

.event-card-inner:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

/* Badges de status melhorados */
.badge {
    font-weight: 600;
    border-radius: 1rem;
    font-size: 0.75rem;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-red);
}