/* Estilos customizados para Scour Certidões */
/* Arquivo: home_page_styles_css.css */

/* ==================== CONFIGURAÇÕES BÁSICAS ==================== */

/* Configuração customizada do Tailwind */
.btn-custom {
    transition: all 0.2s ease;
}

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

.modal-blur {
    backdrop-filter: blur(4px);
}

.toast-slide {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.toast-slide.show {
    transform: translateX(0);
}

/* ==================== CORES CUSTOMIZADAS DO ORANGE ==================== */

.bg-orange-50 { background-color: #fff7ed; }
.bg-orange-100 { background-color: #ffedd5; }
.bg-orange-500 { background-color: #f97316; }
.bg-orange-600 { background-color: #ea580c; }

.text-orange-500 { color: #f97316; }
.text-orange-600 { color: #ea580c; }

.border-orange-500 { border-color: #f97316; }

.hover\:bg-orange-500:hover { background-color: #f97316; }
.hover\:bg-orange-600:hover { background-color: #ea580c; }
.hover\:text-orange-500:hover { color: #f97316; }

.focus\:ring-orange-500:focus { 
    --tw-ring-color: #f97316; 
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}
.focus\:border-orange-500:focus { border-color: #f97316; }

/* ==================== GRADIENTES CUSTOMIZADOS ==================== */

.from-orange-50 { --tw-gradient-from: #fff7ed; }
.to-orange-100 { --tw-gradient-to: #ffedd5; }
.from-orange-500 { --tw-gradient-from: #f97316; }
.to-orange-600 { --tw-gradient-to: #ea580c; }

/* ==================== RESPONSIVIDADE ADICIONAL ==================== */

@media (max-width: 640px) {
    .toast-slide {
        right: 1rem;
        left: 1rem;
        transform: translateY(-100%);
    }
    
    .toast-slide.show {
        transform: translateY(0);
    }
}

/* ==================== CUSTOMIZAÇÕES ESPECÍFICAS ==================== */

/* Melhorias no modal de recuperação de senha */
.step-content {
    transition: opacity 0.3s ease;
}

/* Estilo para campos com erro */
input.border-red-500 {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Estilo para campos válidos */
input.border-green-500 {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Animações suaves para botões */
.btn-custom {
    position: relative;
    overflow: hidden;
}

.btn-custom::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;
}

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

/* Melhorias no toast */
.toast-slide {
    max-width: 350px;
    border: 1px solid #e5e7eb;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Estilo para loading states */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Melhorias na tipografia */
.font-inter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Sombras customizadas */
.shadow-custom {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-custom-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Melhorias nos formulários */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Estilo para campos readonly */
input[readonly] {
    background-color: #f3f4f6;
    cursor: not-allowed;
}

/* Animações para os cards de soluções */
.hover\:-translate-y-1:hover {
    transform: translateY(-0.25rem);
}

/* Estilo para o código de verificação */
#verification-code {
    letter-spacing: 0.5em;
    text-align: center;
    font-weight: 600;
    font-size: 1.5rem;
}

/* Melhorias no grid responsivo */
@media (max-width: 768px) {
    .grid-cols-1 {
        gap: 1rem;
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* Estilo para seções */
section {
    scroll-margin-top: 5rem;
}

/* Melhorias no header */
header.sticky {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

/* Animações de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Estilo para elementos com foco */
*:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

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

/* Estilo para modo escuro (opcional) */
@media (prefers-color-scheme: dark) {
    .modal-blur {
        backdrop-filter: blur(4px);
        background: rgba(0, 0, 0, 0.8);
    }
}

/* Melhorias no footer */
footer img.brightness-0 {
    filter: brightness(0) invert(1);
}

/* Estilo customizado para selects */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Melhorias nos ícones feather */
[data-feather] {
    stroke-width: 2;
}

/* Estilo para campos obrigatórios */
input[required]:invalid {
    box-shadow: none;
}

/* Transições suaves globais */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}