/* ======================================== 
   PROPAGA UX 2025 - MODERN STYLES
   ======================================== */

/* Gradientes Modernos */
:root {
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    --gradient-primary-hover: linear-gradient(135deg, #059669 0%, #115e59 100%);
    --gradient-hero: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    --glass-bg: rgba(255, 255, 255, 0.3);
    --glass-border: rgba(255, 255, 255, 0.2);
}

[data-bs-theme="dark"] {
    --glass-bg: rgba(17, 24, 39, 0.3);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Botão Gradiente Principal */
.btn-gradient-primary,
.btn-primary {
    background: var(--gradient-primary) !important;
    border: none !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient-primary::before,
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary-hover);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-gradient-primary:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3) !important;
}

.btn-gradient-primary:hover::before,
.btn-primary:hover::before {
    opacity: 1;
}

/* Glass Effect Cards */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: all 0.3s ease;
}

.glass-effect:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Text Gradient */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animações Suaves */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in-up 0.8s ease-out;
}

/* Input Modern com Focus */
.form-control:focus,
.form-select:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1) !important;
}

/* Hero Section Modern */
.hero-modern {
    background: linear-gradient(135deg, #f0fdf4 0%, #f0fdfa 50%, #ecfeff 100%);
    position: relative;
    overflow: hidden;
}

[data-bs-theme="dark"] .hero-modern {
    background: linear-gradient(135deg, #064e3b 0%, #134e4a 50%, #164e63 100%);
}

/* Search Bar Moderno */
.search-modern {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.search-modern:focus-within {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.search-modern input {
    border: none !important;
    background: transparent !important;
}

.search-modern input:focus {
    box-shadow: none !important;
}

/* Card Hover Effects */
.service-box-card,
.category-card,
.iq-blog {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-box-card:hover,
.category-card:hover,
.iq-blog:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* Login Page Modern - Split Screen */
.login-split-screen {
    display: flex;
    min-height: 100vh;
}

.login-split-left {
    flex: 1;
    background: var(--gradient-primary);
    padding: 3rem;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .login-split-left {
        display: flex;
    }
}

.login-split-left::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(60px);
    animation: blob 7s infinite;
}

@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.login-split-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Loading States */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Micro-interações */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Demo Login - Mantendo compatibilidade */
.demo-login{
    box-shadow: 0 0 2rem 0 rgba(136,152,170,.18)!important;
}

.text-green-600 {
    color: rgba(5, 150, 105, 1);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Visible para Acessibilidade */
.focus-ring:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Reduce Motion para Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}