/* Custom Color Palette */
:root {
    --dark-brown: #3B2E2A;
    --gold: #C5A059;
    --gold-dark: #B08F4A;
    --light-beige: #F5E6D3;
    --white: #FFFFFF;
}

/* Custom Tailwind Classes */
.bg-dark-brown {
    background-color: var(--dark-brown);
}

.bg-gold {
    background-color: var(--gold);
}

.bg-gold-dark {
    background-color: var(--gold-dark);
}

.bg-light-beige {
    background-color: var(--light-beige);
}

.text-dark-brown {
    color: var(--dark-brown);
}

.text-gold {
    color: var(--gold);
}

.text-light-beige {
    color: var(--light-beige);
}

/* Custom Button Styles */
.quiz-btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.quiz-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.quiz-btn:hover::before {
    left: 100%;
}

/* Quiz Specific Styles */
.quiz-question {
    transition: all 0.3s ease-in-out;
}

.quiz-question:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -12px rgba(59, 46, 42, 0.15);
}

.quiz-option {
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.quiz-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.15);
}

.quiz-option input[type="radio"] {
    accent-color: var(--gold);
    transform: scale(1.2);
}

.quiz-option input[type="radio"]:checked + span {
    color: var(--gold);
    font-weight: 600;
}

.quiz-option:has(input[type="radio"]:checked) {
    border-color: var(--gold);
    background-color: rgba(197, 160, 89, 0.05);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

/* Progress Bar Animation */

/* Animações para os gatilhos da página de sucesso */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(197, 160, 89, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(197, 160, 89, 0.8);
        transform: scale(1.02);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Classes para os gatilhos */
.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

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

/* Efeitos de hover para botões */
.btn-urgency {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-urgency:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 40px rgba(197, 160, 89, 0.3);
}

/* Status inativo com efeito de destaque */
.status-inactive {
    transition: all 0.3s ease;
    cursor: pointer;
}

.status-inactive:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}



/* Notificação de escassez */
.scarcity-alert {
    background: linear-gradient(45deg, #fef2f2, #fee2e2);
    border: 2px solid #fecaca;
    animation: fade-in-up 0.5s ease-out;
}

/* Removido o efeito de entrada da página pois estava causando problemas de exibição */

body.loaded {
    opacity: 1;
}
.progress-bar {
    transition: width 0.5s ease-out;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

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

/* Enhanced Shadows */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(59, 46, 42, 0.25);
}

/* Hover Effects */
.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* Focus States for Accessibility */
.quiz-btn:focus {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.quiz-option:focus-within {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Loading State */
.quiz-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

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

::-webkit-scrollbar-track {
    background: var(--light-beige);
}

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

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

/* Loading Page Specific Styles */
.loading-page {
    overflow-x: hidden;
}

.loading-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid var(--gold);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 75%;
    height: 75%;
    top: 12.5%;
    left: 12.5%;
    animation-delay: 0.4s;
    border-top-color: var(--gold-dark);
    border-width: 2.5px;
}

.spinner-ring:nth-child(3) {
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    animation-delay: 0.8s;
    border-top-color: var(--dark-brown);
    border-width: 2px;
}

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

.camarao-float {
    position: absolute;
    font-size: 24px;
    opacity: 0.7;
    z-index: 1;
    transition: all 0.3s ease-in-out;
}

.camarao-1 { top: 20%; left: 10%; }
.camarao-2 { top: 30%; right: 15%; }
.camarao-3 { bottom: 25%; left: 20%; }
.camarao-4 { bottom: 35%; right: 25%; }
.camarao-5 { top: 50%; left: 50%; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(-15px) rotate(3deg); }
}

.circle-float {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--gold), var(--gold-dark));
    opacity: 0.1;
    z-index: 1;
}

.circle-1 {
    width: 60px;
    height: 60px;
    top: 15%;
    right: 10%;
}

.circle-2 {
    width: 40px;
    height: 40px;
    bottom: 20%;
    left: 10%;
}

.circle-3 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 20%;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.1;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.2;
    }
}

/* Notification Styles */
.notification-item {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.notification-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -12px rgba(59, 46, 42, 0.3);
}



/* Online Counter Styles */
.online-counter {
    background: linear-gradient(135deg, var(--light-beige) 0%, #f0e0c0 100%);
    border: 1px solid rgba(197, 160, 89, 0.3);
}

/* Modal de Zoom Styles */
#galleryModal {
    /* Estado inicial - escondido */
    display: none;
    
    /* Posicionamento */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    /* Visual */
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 9999;
}

#galleryModal button {
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

#galleryModal button:hover {
    transform: scale(1.1);
}

#galleryModal img {
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 100%;
    max-height: 100%;
    cursor: default;
}

/* Review Image Styles */
.review-image-container {
    position: relative;
    overflow: hidden;
}

.review-image-container img {
    transition: transform 0.3s ease-in-out;
}

.review-image-container:hover img {
    transform: scale(1.05);
}

.expand-button {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    backdrop-filter: blur(4px);
}

.expand-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.expand-button svg {
    width: 16px;
    height: 16px;
}