/* ===============================================
   RMQuantum - Styles CSS
   Design Neumorphic com Tailwind CSS
   =============================================== */

:root {
    --primary: #1e40af;
    --secondary: #0ea5e9;
    --accent: #10b981;
    --dark: #1f2937;
    --light: #f8fafc;
    --shadow-light: rgba(255, 255, 255, 0.8);
    --shadow-dark: rgba(0, 0, 0, 0.2);
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-accent: linear-gradient(135deg, var(--accent), var(--secondary));
}

/* ===============================================
   RESET E BASE
   =============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #374151;
    overflow-x: hidden;
}

/* ===============================================
   GRADIENTES E BACKGROUNDS
   =============================================== */

.gradient-bg {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    background-size: 400% 400%;
    animation: gradient-flow 8s ease infinite;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ===============================================
   EFEITOS NEUMÓRFICOS
   =============================================== */

.neumorphic-card {
    background: #f8fafc;
    box-shadow: 
        12px 12px 20px rgba(163, 177, 198, 0.6),
        -8px -8px 16px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.neumorphic-card:hover {
    box-shadow: 
        16px 16px 24px rgba(163, 177, 198, 0.7),
        -12px -12px 20px rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.neumorphic-card-dark {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.3),
        -4px -4px 8px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.neumorphic-card-inner {
    background: #ffffff;
    box-shadow: 
        inset 4px 4px 8px rgba(163, 177, 198, 0.4),
        inset -4px -4px 8px rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.neumorphic-button {
    background: linear-gradient(145deg, #f0f4f8, #e2e8f0);
    box-shadow: 
        6px 6px 12px rgba(163, 177, 198, 0.6),
        -6px -6px 12px rgba(255, 255, 255, 0.8);
    border: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.neumorphic-button:hover {
    box-shadow: 
        4px 4px 8px rgba(163, 177, 198, 0.8),
        -4px -4px 8px rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.neumorphic-button:active {
    box-shadow: 
        inset 3px 3px 6px rgba(163, 177, 198, 0.6),
        inset -3px -3px 6px rgba(255, 255, 255, 0.8);
    transform: translateY(0);
}

.neumorphic-button-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.neumorphic-button-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.neumorphic-input {
    background: #ffffff;
    box-shadow: 
        inset 3px 3px 6px rgba(163, 177, 198, 0.3),
        inset -3px -3px 6px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.neumorphic-input:focus {
    box-shadow: 
        inset 4px 4px 8px rgba(30, 64, 175, 0.2),
        inset -4px -4px 8px rgba(255, 255, 255, 0.9),
        0 0 0 3px rgba(30, 64, 175, 0.1);
    border-color: var(--primary);
    outline: none;
}

/* ===============================================
   ANIMAÇÕES
   =============================================== */

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    33% { 
        transform: translateY(-10px) rotate(1deg); 
    }
    66% { 
        transform: translateY(5px) rotate(-1deg); 
    }
}

@keyframes pulse-soft {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.4);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(30, 64, 175, 0);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===============================================
   EFEITOS HOVER E INTERAÇÃO
   =============================================== */

.hover-effect {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-effect:hover {
    transform: translateY(-4px) scale(1.02);
}

.pulse-effect {
    animation: pulse-soft 2s infinite;
}

.shimmer-effect {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* ===============================================
   COMPONENTES ESPECÍFICOS
   =============================================== */

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal Animations */
.modal-content {
    animation: slideInFromTop 0.3s ease-out;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(145deg, var(--secondary), var(--accent));
}

/* ===============================================
   RESPONSIVIDADE
   =============================================== */

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease;
    animation: slideInFromTop 0.3s ease-out;
}

/* Cards responsivos */
@media (max-width: 768px) {
    .neumorphic-card {
        box-shadow: 
            8px 8px 16px rgba(163, 177, 198, 0.4),
            -6px -6px 12px rgba(255, 255, 255, 0.7);
    }
    
    .neumorphic-button {
        box-shadow: 
            4px 4px 8px rgba(163, 177, 198, 0.5),
            -4px -4px 8px rgba(255, 255, 255, 0.7);
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) {
    .glass-effect {
        backdrop-filter: blur(8px);
    }
}

/* ===============================================
   ACESSIBILIDADE
   =============================================== */

/* Focus states melhorados */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Redução de movimento para usuários sensíveis */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Alto contraste */
@media (prefers-contrast: high) {
    .neumorphic-card {
        border: 2px solid var(--dark);
    }
    
    .neumorphic-button {
        border: 2px solid var(--primary);
    }
}

/* ===============================================
   UTILITÁRIOS
   =============================================== */

/* Spacing utilities */
.section-padding {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
}

/* Text utilities */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.text-glow {
    text-shadow: 0 0 10px rgba(30, 64, 175, 0.5);
}

/* Container utilities */
.container-neumorphic {
    background: #f8fafc;
    box-shadow: 
        20px 20px 40px rgba(163, 177, 198, 0.5),
        -20px -20px 40px rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 2rem;
}

/* Status indicators */
.status-success {
    background: linear-gradient(145deg, #dcfce7, #bbf7d0);
    color: #166534;
    border: 1px solid #86efac;
}

.status-error {
    background: linear-gradient(145deg, #fef2f2, #fecaca);
    color: #991b1b;
    border: 1px solid #f87171;
}

.status-warning {
    background: linear-gradient(145deg, #fefce8, #fef08a);
    color: #a16207;
    border: 1px solid #facc15;
}

.status-info {
    background: linear-gradient(145deg, #eff6ff, #bfdbfe);
    color: #1e40af;
    border: 1px solid #60a5fa;
}

/* ===============================================
   PRINT STYLES
   =============================================== */

@media print {
    .gradient-bg,
    .glass-effect,
    .neumorphic-card,
    .neumorphic-button {
        background: white !important;
        box-shadow: none !important;
        color: black !important;
    }
    
    button,
    .hover-effect,
    nav,
    footer {
        display: none !important;
    }
}