/* ========================================
   AYAHU - VIVÊNCIAS PWA - ESTILO INSTAGRAM FEED
   Conectando Consciências, Expandindo Horizontes 🌿
   ======================================== */

/* ========================================
   VARIÁVEIS CSS - BASEADAS NO SITE AYAHU
   ======================================== */
:root {
    --ayahu-primary: #2d5016;
    --ayahu-secondary: #4a7c59;
    --ayahu-light: #6ba368;
    --ayahu-accent: #8bc34a;
    --ayahu-gold: #d4af37;
    --ayahu-earth: #8b4513;
    --ayahu-purple: #6a4c93;
    --ayahu-gradient: linear-gradient(135deg, #2d5016 0%, #4a7c59 50%, #6ba368 100%);
    --cosmic-gradient: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    --earth-gradient: linear-gradient(135deg, #8b4513 0%, #d4af37 50%, #6ba368 100%);
    --forest-gradient: linear-gradient(135deg, #2d5016 0%, #4a7c59 30%, #6ba368 60%, #8bc34a 100%);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Border radius */
    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 25px;
    --radius-xl: 50px;
    
    /* Shadows */
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.2);
    --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.4);
    --shadow-instagram: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* ========================================
   RESET E BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 25%, #2c5364 50%, #2d5016 75%, #4a7c59 100%);
    min-height: 100vh;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 500px; /* Largura estilo Instagram */
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

@media (max-width: 380px) {
    .container {
        padding: 0 var(--spacing-xs);
    }
}

/* ========================================
   LOADING SCREEN
   ======================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 25%, #2c5364 50%, #2d5016 75%, #4a7c59 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    animation: breathe 2s ease-in-out infinite;
}

.loading-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: var(--spacing-sm);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
}

.loading-title {
    font-family: 'Comfortaa', cursive;
    color: var(--ayahu-gold);
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

.loading-spinner {
    display: flex;
    justify-content: center;
}

.spinner-circle {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-top: 3px solid var(--ayahu-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ========================================
   PARTÍCULAS FLUTUANTES
   ======================================== */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(212, 175, 55, 0.6);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.particle:nth-child(odd) {
    background: rgba(139, 195, 74, 0.4);
    animation-duration: 10s;
}

.particle:nth-child(3n) {
    background: rgba(106, 76, 147, 0.5);
    animation-duration: 12s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0; 
    }
    10% { opacity: 1; }
    50% { 
        transform: translateY(-150px) rotate(180deg); 
        opacity: 1; 
    }
    90% { opacity: 1; }
    100% { 
        transform: translateY(-300px) rotate(360deg); 
        opacity: 0; 
    }
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: sticky;
    top: 0;
    background: rgba(45, 80, 22, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    padding: var(--spacing-sm) 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.title-primary {
    font-family: 'Comfortaa', cursive;
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--earth-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.btn-icon {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--ayahu-gold);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.1);
}

.btn-icon:active {
    transform: scale(0.95);
}

/* ========================================
   BOTÕES
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--forest-gradient);
    color: white;
    box-shadow: var(--shadow-soft);
}

.btn-secondary {
    background: transparent;
    color: var(--ayahu-gold);
    border: 2px solid var(--ayahu-gold);
}

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

.btn-secondary:hover {
    background: var(--ayahu-gold);
    color: #1a1a2e;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    position: relative;
    z-index: 10;
    min-height: calc(100vh - 120px);
    padding: var(--spacing-md) 0;
}

/* ========================================
   SEÇÃO DE FILTROS
   ======================================== */
.filters-section {
    margin-bottom: var(--spacing-md);
}

.filter-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-medium);
}

.filter-title {
    font-family: 'Comfortaa', cursive;
    color: var(--ayahu-gold);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.2rem;
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.filters-grid {
    display: grid;
    gap: var(--spacing-lg);
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-group label {
    font-size: 1rem;
    color: var(--ayahu-gold);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.filter-select,
.filter-input {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    background: rgba(45, 80, 22, 0.6);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.filter-select option {
    background: rgba(45, 80, 22, 0.95);
    color: white;
    padding: 8px;
}

.filter-select option:hover,
.filter-select option:checked {
    background: var(--ayahu-gold);
    color: #1a1a2e;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--ayahu-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    background: rgba(45, 80, 22, 0.8);
    transform: translateY(-1px);
}


/* ========================================
   FEED DE VIVÊNCIAS - ESTILO INSTAGRAM
   ======================================== */
.feed-section {
    margin-bottom: var(--spacing-xl);
}

.vivencias-feed {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Post estilo Instagram */
.vivencia-post {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

.vivencia-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(212, 175, 55, 0.4);
}

/* Header do post */
.post-header {
    padding: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.post-user-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.post-institute-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--forest-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.post-institute-info h4 {
    font-family: 'Comfortaa', cursive;
    color: white;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.post-location {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Imagem do post */
.post-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(45deg, #2d5016, #4a7c59);
}

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

.vivencia-post:hover .vivencia-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

.status-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: var(--ayahu-accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.agendada {
    background: var(--ayahu-accent);
}

.status-badge.em_andamento {
    background: var(--ayahu-gold);
}

/* Conteúdo do post */
.post-content {
    padding: var(--spacing-sm);
}

.post-title {
    font-family: 'Comfortaa', cursive;
    color: white;
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
}

.post-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* ===== Ver Mais Button & Modal Styles ===== */
.ver-mais-btn-inline {
    background: none;
    border: none;
    color: var(--accent-orange);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s ease;
    text-decoration: none;
    vertical-align: baseline;
}

.ver-mais-btn-inline:hover {
    background: rgba(255, 140, 0, 0.1);
    color: var(--primary-green);
    text-decoration: underline;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
    /* Garantir que funcione em todos os dispositivos */
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.7) translateY(50px);
    transition: all 0.3s ease;
    overflow: hidden;
    /* Melhorias para mobile */
    margin: auto;
    position: relative;
    z-index: 10000;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .modal-container {
        margin: 1rem;
        max-height: 85vh;
        border-radius: 15px;
    }
    
    .modal-overlay {
        align-items: flex-start;
        padding-top: 2rem;
    }
}

.modal-overlay.show .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    margin: 0;
    color: rgb(23, 65, 15);
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: rgb(23, 65, 15);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 60vh;
}

.modal-description {
    color: rgb(23, 65, 15);
    line-height: 1.6;
    font-size: 1rem;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
    /* Mobile webkit fix */
    position: fixed;
    width: 100%;
}

/* Garantir que modal apareça acima de TUDO no mobile */
@media (max-width: 768px) {
    body.modal-open {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow: hidden;
    }
    
    .modal-overlay {
        position: fixed !important;
        z-index: 999999 !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }
}

/* Informações da vivência */
.vivencia-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.info-icon {
    color: var(--ayahu-gold);
    width: 16px;
    text-align: center;
}

.info-text {
    color: rgba(255, 255, 255, 0.9);
}

/* Ações do post */
.post-actions {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inscricao-btn {
    background: var(--forest-gradient);
    color: white;
    border: none;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-xl);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.inscricao-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 80, 22, 0.4);
}

.inscricao-btn:active {
    transform: translateY(0);
}

.inscricao-btn.disabled {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    transform: none !important;
    box-shadow: none !important;
}

.inscricao-btn.disabled:hover {
    background: #ccc !important;
    transform: none !important;
    box-shadow: none !important;
}

.detalhes-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border: none;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-right: var(--spacing-sm);
}

.detalhes-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(23, 162, 184, 0.4);
}

.detalhes-btn:active {
    transform: translateY(0);
}

/* Estilos para o modal de detalhes */
#vivencia-details-modal .modal-container {
    background: white;
    color: #333;
}

#vivencia-details-modal .modal-header {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

#vivencia-details-modal .modal-body {
    background: white;
    color: #333;
    padding: 2rem;
}

#vivencia-details-modal .modal-body h4 {
    color: #17a2b8 !important;
    font-weight: 600;
}

#vivencia-details-modal .modal-body p {
    color: #333 !important;
}

#vivencia-details-modal .modal-body strong {
    color: #2d5016 !important;
    font-weight: 600;
}

#vivencia-details-modal .modal-body a {
    color: #17a2b8 !important;
    text-decoration: underline;
}

#vivencia-details-modal .modal-body a:hover {
    color: #138496 !important;
}

#vivencia-details-modal .modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 20px 20px;
}

#vivencia-details-modal .modal-footer .btn {
    color: #333;
}

.vagas-info {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ========================================
   ESTADOS VAZIOS E DE ERRO
   ======================================== */
.empty-state,
.error-state {
    text-align: center;
    padding: var(--spacing-xl);
    margin: var(--spacing-lg) 0;
}

.empty-content,
.error-content {
    max-width: 300px;
    margin: 0 auto;
}

.empty-icon,
.error-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.7;
}

.empty-icon {
    color: var(--ayahu-accent);
}

.error-icon {
    color: #ff6b6b;
}

.empty-title,
.error-title {
    font-family: 'Comfortaa', cursive;
    color: white;
    margin-bottom: var(--spacing-sm);
    font-size: 1.3rem;
}

.empty-description,
.error-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.hidden {
    display: none !important;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: rgba(45, 80, 22, 0.5);
    backdrop-filter: blur(15px);
    padding: var(--spacing-lg) 0;
    text-align: center;
    border-top: 1px solid rgba(139, 195, 74, 0.3);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.highlight {
    color: var(--ayahu-gold);
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--ayahu-gold);
}

/* Área de anúncios no rodapé removida para uso de Auto Ads */

/* ========================================
   ANIMAÇÕES
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Efeito de shimmer nos cards */
.vivencia-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(212, 175, 55, 0.05) 50%, transparent 70%);
    animation: shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

/* ========================================
   MODAL DE LOGIN
   ======================================== */
#login-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(45, 80, 22, 0.8) !important;
    backdrop-filter: blur(10px);
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
}

#login-modal.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    display: none !important;
}

.modal-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-strong);
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(1);
    transition: all 0.3s ease;
}

.modal-overlay.hidden .modal-container {
    transform: scale(0.9);
}

.modal-header {
    background: var(--ayahu-gradient);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
    border-bottom: none;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 100"><defs><pattern id="dots-modal" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots-modal)"/></svg>');
    pointer-events: none;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--ayahu-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(45, 80, 22, 0.1);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
    outline: none;
    border-color: var(--ayahu-light);
    box-shadow: 0 0 0 0.25rem rgba(107, 163, 104, 0.25);
    background: white;
}

.input-group {
    display: flex;
    position: relative;
}

.input-group .form-control {
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.input-group .btn {
    border: 2px solid rgba(45, 80, 22, 0.1);
    border-left: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: rgba(255, 255, 255, 0.8);
    color: var(--ayahu-primary);
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.input-group .btn:hover {
    background: var(--ayahu-light);
    color: white;
    border-color: var(--ayahu-light);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 4px;
    border: 2px solid rgba(45, 80, 22, 0.2);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--ayahu-light);
    border-color: var(--ayahu-light);
}

.form-check-label {
    color: #666;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
}

.forgot-password {
    color: var(--ayahu-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: var(--ayahu-primary);
    text-decoration: underline;
}

.btn-primary {
    background: var(--ayahu-gradient);
    border: none;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(45, 80, 22, 0.4);
    background: var(--ayahu-gradient);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
}

.modal-footer p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.register-link {
    color: var(--ayahu-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.register-link:hover {
    color: var(--ayahu-primary);
    text-decoration: underline;
}

/* Loading state */
.btn-primary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.5rem;
    height: 1.5rem;
    margin: -0.75rem 0 0 -0.75rem;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-container {
        margin: 1rem;
        max-width: none;
    }
    
    .modal-header {
        padding: 1.25rem 1.5rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* ========================================
   LOADING MORE INDICATOR
   ======================================== */
.loading-more-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    margin: 1rem 0;
}

.loading-more-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.loading-more-content .loading-spinner {
    width: 30px;
    height: 30px;
}

.loading-more-content .spinner-circle {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid var(--ayahu-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */
@media (max-width: 380px) {
    .container {
        max-width: 100%;
    }
    
    .filters-grid {
        grid-template-columns: 1fr !important;
    }
    
    .vivencia-info {
        grid-template-columns: 1fr;
    }
    
    .post-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: stretch;
    }
    
    .inscricao-btn {
        justify-content: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .post-image {
        height: 250px;
    }
}

/* ========================================
   SCROLLBAR PERSONALIZADA
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--ayahu-gold);
}

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

/* Focus styles */
button:focus,
select:focus,
input:focus,
a:focus {
    outline: 2px solid var(--ayahu-gold);
    outline-offset: 2px;
}

/* ========================================
   ANÚNCIOS GOOGLE ADS
   ======================================== */
.ad-container {
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ad-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ayahu-gradient);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.ad-wrapper {
    position: relative;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-wrapper ins {
    display: block !important;
    width: 100%;
    max-width: 100%;
}

/* Placeholders de anúncios */
.ad-placeholder {
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--radius-md);
    border: 2px dashed var(--ayahu-secondary);
}

.ad-placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--ayahu-secondary);
}

.ad-placeholder-content i {
    font-size: 2.5rem;
    color: var(--ayahu-gold);
    opacity: 0.7;
}

.ad-placeholder-content span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ayahu-primary);
}

.ad-placeholder-content small {
    font-size: 0.9rem;
    color: var(--ayahu-secondary);
    opacity: 0.8;
}

/* Responsividade para anúncios */
@media (max-width: 768px) {
    .ad-container {
        margin: 1.5rem 0;
        padding: 0.8rem;
    }
    
    .ad-wrapper {
        min-height: 80px;
    }
    
    .ad-placeholder {
        padding: 2rem 1rem;
    }
    
    .ad-placeholder-content i {
        font-size: 2rem;
    }
    
    .ad-placeholder-content span {
        font-size: 1rem;
    }
}

@media (max-width: 380px) {
    .ad-container {
        margin: 1rem 0;
        padding: 0.5rem;
    }
    
    .ad-wrapper {
        min-height: 60px;
    }
}

/* ========================================
   BADGES DE TIPOS DE VIVÊNCIAS
   ======================================== */
.vivencia-tipos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 0;
}

.tipo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: default;
    white-space: nowrap;
}

.tipo-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tipo-badge i {
    font-size: 0.875rem;
}

/* Responsividade para badges */
@media (max-width: 768px) {
    .vivencia-tipos {
        gap: 0.375rem;
    }
    
    .tipo-badge {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 380px) {
    .vivencia-tipos {
        gap: 0.25rem;
    }
    
    .tipo-badge {
        padding: 0.15rem 0.5rem;
        font-size: 0.65rem;
    }
}

/* ========================================
   BADGES DE FILTRO POR TIPOS
   ======================================== */
.tipos-filtro-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--spacing-sm);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tipos-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.tipo-badge-filtro {
    display: inline-flex !important;
    align-items: center !important;
    padding: var(--spacing-sm) var(--spacing-md) !important;
    border-radius: 25px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    user-select: none !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.tipo-badge-filtro:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4) !important;
    border-color: var(--ayahu-gold) !important;
    background: rgba(212, 175, 55, 0.2) !important;
}

.tipo-badge-filtro.ativo {
    background-color: #FFD700 !important;
    color: #8B4513 !important;
    border: 2px solid #DAA520 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    font-weight: 600 !important;
}

.tipo-badge-filtro.ativo::before {
    content: '✓';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    border: 2px solid white;
}

.badge-count {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-left: 0.25rem;
}

/* Responsividade para badges de filtro */
@media (max-width: 768px) {
    .tipos-badges {
        gap: 0.4rem;
    }
    
    .tipo-badge-filtro {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 380px) {
    .tipos-badges {
        gap: 0.3rem;
    }
    
    .tipo-badge-filtro {
        padding: 0.35rem 0.7rem;
        font-size: 0.75rem;
    }
    
    .badge-count {
        font-size: 0.7rem;
    }
}

/* ========================================
   MODAL DE FILTROS
   ======================================== */
.modal-filters {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
    /* Garantir que o modal funcione no mobile */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.modal-filters.active {
    display: block;
}

.modal-filters-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-filters-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.98) 0%, rgba(74, 124, 89, 0.98) 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translate(-50%, -40%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.modal-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.modal-filters-title {
    font-family: 'Comfortaa', cursive;
    color: var(--ayahu-gold);
    font-size: 1.3rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.btn-close-modal {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.btn-close-modal:hover {
    background: rgba(255, 0, 0, 0.3);
    color: white;
    transform: rotate(90deg);
}

.modal-filters-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
}

.modal-filters-body::-webkit-scrollbar {
    width: 8px;
}

.modal-filters-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.modal-filters-body::-webkit-scrollbar-thumb {
    background: var(--ayahu-gold);
    border-radius: 4px;
}

.modal-filters-body::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.8);
}

.modal-filters-footer {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(0, 0, 0, 0.2);
    border-top: 2px solid rgba(212, 175, 55, 0.3);
}

.modal-filters-footer .btn {
    flex: 1;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1rem;
}

/* Responsividade do modal */
@media (max-width: 768px) {
    .modal-filters-content {
        width: 95%;
        max-height: 90vh;
        /* Garantir que o modal seja visível no mobile */
        position: relative;
        z-index: 1001;
    }
    
    .modal-filters-header {
        padding: var(--spacing-sm) var(--spacing-md);
        /* Melhorar a área de toque no mobile */
        min-height: 50px;
    }
    
    .modal-filters-title {
        font-size: 1.1rem;
    }
    
    .modal-filters-body {
        padding: var(--spacing-md);
        /* Garantir scroll suave no mobile */
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-filters-footer {
        flex-direction: column;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .modal-filters-footer .btn {
        width: 100%;
        /* Melhorar área de toque dos botões */
        min-height: 44px;
        font-size: 1rem;
    }
    
    /* Garantir que o botão de fechar seja clicável no mobile */
    .btn-close-modal {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Melhorar o botão de filtros no header */
    #filters-modal-btn {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        /* Garantir que o botão seja clicável no mobile */
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        cursor: pointer;
    }
    
    /* Garantir que todos os botões do modal sejam clicáveis no mobile */
    .modal-filters .btn,
    .modal-filters button {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        cursor: pointer;
    }
}

/* ========================================
   TOAST DE BOAS-VINDAS
   ======================================== */
.welcome-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.welcome-toast.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.toast-content {
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.95) 0%, rgba(74, 124, 89, 0.95) 100%);
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    position: relative;
    overflow: hidden;
}

.toast-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ayahu-gold), #FFD700, var(--ayahu-gold));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.toast-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ayahu-gold);
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.toast-message {
    flex: 1;
    color: white;
}

.toast-message h4 {
    margin: 0 0 var(--spacing-xs) 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ayahu-gold);
    font-family: 'Comfortaa', cursive;
}

.toast-message p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.toast-message i {
    color: var(--ayahu-gold);
    margin: 0 2px;
}

.toast-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.toast-close:hover {
    background: rgba(255, 0, 0, 0.3);
    color: white;
    transform: rotate(90deg);
}

/* Responsividade do toast */
@media (max-width: 768px) {
    .welcome-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast-content {
        padding: var(--spacing-sm);
    }
    
    .toast-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .toast-message h4 {
        font-size: 0.9rem;
    }
    
    .toast-message p {
        font-size: 0.85rem;
    }
}

@media (max-width: 380px) {
    .welcome-toast {
        top: 5px;
        right: 5px;
        left: 5px;
    }
    
    .toast-content {
        padding: var(--spacing-xs);
        gap: var(--spacing-xs);
    }
    
    .toast-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

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