/* Custom Styles para Concurso de Natal */

/* Animações personalizadas */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes snowfall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Efeitos de neve (opcional) */
.snowflake {
    position: fixed;
    top: -10px;
    z-index: 9999;
    user-select: none;
    cursor: default;
    animation: snowfall linear infinite;
    color: white;
    opacity: 0.8;
}

/* Estilo para cards de fotos */
.photo-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.photo-card img {
    transition: transform 0.5s ease;
}

.photo-card:hover img {
    transform: scale(1.1);
}

/* Botão de voto animado */
.vote-btn {
    position: relative;
    overflow: hidden;
}

.vote-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.vote-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #dc2626;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Toast notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    background-color: #166534;
    color: white;
}

.toast.error {
    background-color: #dc2626;
    color: white;
}

.toast.info {
    background-color: #2563eb;
    color: white;
}

/* Preview de imagens */
.image-preview {
    position: relative;
    display: inline-block;
}

.image-preview .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.image-preview .remove-btn:hover {
    background: rgba(185, 28, 28, 1);
    transform: scale(1.1);
}

/* Drag and drop area */
.dropzone {
    border: 2px dashed #cbd5e0;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.dropzone.dragover {
    border-color: #dc2626;
    background-color: #fee2e2;
}

/* Responsividade adicional */
@media (max-width: 768px) {
    .toast {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

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

/* Seleção de texto personalizada */
::selection {
    background-color: #dc2626;
    color: white;
}

::-moz-selection {
    background-color: #dc2626;
    color: white;
}
