/* ============================================
   ADVANCED UI/UX EFFECTS - CSS MODERNO
   Glassmorphism, Neumorphism, Gradients Sofisticados
   ============================================ */

/* ============================================
   GLASSMORPHISM - EFETO VIDRO SOFISTICADO
   ============================================ */

.glass-effect {
    background: rgba(245, 241, 232, 0.65);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-effect:hover {
    background: rgba(245, 241, 232, 0.75);
    border-color: rgba(212, 165, 116, 0.4);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   NEUMORPHISM - SOMBRAS SOFISTICADAS
   ============================================ */

.neomorph {
    background: linear-gradient(145deg, #f5f1e8, #e8ddd0);
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.1),
                -8px -8px 16px rgba(255, 255, 255, 0.7);
    border-radius: 12px;
}

.neomorph:active {
    background: linear-gradient(145deg, #e8ddd0, #f5f1e8);
    box-shadow: inset 8px 8px 16px rgba(0, 0, 0, 0.1),
                inset -8px -8px 16px rgba(255, 255, 255, 0.7);
}

/* ============================================
   GRADIENTES SOFISTICADOS
   ============================================ */

.gradient-premium {
    background: linear-gradient(135deg, #D4A574 0%, #B89354 50%, #8B7744 100%);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.gradient-text {
    background: linear-gradient(135deg, #D4A574, #B89354);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* ============================================
   BORDAS E LINHAS SOFISTICADAS
   ============================================ */

.border-gradient {
    position: relative;
    border: 2px solid transparent;
    background-image: 
        linear-gradient(#f5f1e8, #f5f1e8),
        linear-gradient(135deg, #D4A574, #B89354);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: 12px;
}

.line-animated {
    position: relative;
    overflow: hidden;
}

.line-animated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        #D4A574, 
        transparent);
    animation: slideHorizontal 3s infinite;
}

@keyframes slideHorizontal {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ============================================
   EFEITOS DE SOMBRA AVANÇADOS
   ============================================ */

.shadow-floating {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.shadow-floating:hover {
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.25));
}

.shadow-glow {
    box-shadow: 0 0 30px rgba(212, 165, 116, 0.3);
    transition: all 0.4s ease;
}

.shadow-glow:hover {
    box-shadow: 0 0 50px rgba(212, 165, 116, 0.5);
}

/* ============================================
   ANIMAÇÕES SOFISTICADAS - TEXTO
   ============================================ */

.text-shimmer {
    background: linear-gradient(
        90deg,
        rgba(212, 165, 116, 0.3),
        rgba(212, 165, 116, 0.8),
        rgba(212, 165, 116, 0.3)
    );
    background-size: 200% 100%;
    animation: shimmerText 2s infinite;
}

@keyframes shimmerText {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============================================
   EFEITOS DE ENTRADA - SOFISTICADOS
   ============================================ */

.animate-in-slow {
    animation: slideInUp 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-in-stagger-1 { animation-delay: 0.1s; }
.animate-in-stagger-2 { animation-delay: 0.2s; }
.animate-in-stagger-3 { animation-delay: 0.3s; }
.animate-in-stagger-4 { animation-delay: 0.4s; }
.animate-in-stagger-5 { animation-delay: 0.5s; }

/* ============================================
   BOTÕES COM EFEITOS SOFISTICADOS
   ============================================ */

.btn-modern {
    position: relative;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, transparent 0%, transparent 50%, var(--primary-color) 100%);
    background-size: 300% 300%;
    background-position: left;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-modern:hover {
    background-position: right;
    color: var(--dark-color);
}

.btn-outline-modern {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.btn-outline-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: -1;
    transition: left 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-outline-modern:hover::before {
    left: 0;
}

.btn-outline-modern:hover {
    color: var(--dark-color);
}

/* ============================================
   CARDS COM PROFUNDIDADE
   ============================================ */

.card-3d {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d:hover {
    transform: rotateY(10deg) rotateX(-5deg);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-float {
    animation: float 3s ease-in-out infinite;
}

/* ============================================
   ELEMENTOS MORPHING
   ============================================ */

.morph-shape {
    animation: morphShape 8s ease-in-out infinite;
}

/* ============================================
   TRANSIÇÕES SUAVES - PROPRIEDADES COMUNS
   ============================================ */

*[data-smooth] {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* ============================================
   DIVIDERS - SEPARADORES SOFISTICADOS
   ============================================ */

.divider-wave {
    position: relative;
    height: 60px;
    background: linear-gradient(180deg, var(--light-color) 0%, transparent 100%);
}

.divider-wave::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,30 Q300,0 600,30 T1200,30 L1200,0 L0,0 Z' fill='%23F5F1E8'/%3E%3C/svg%3E");
    background-size: cover;
    animation: wave 6s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(25px); }
}

/* ============================================
   LOADER / SPINNER SOFISTICADO
   ============================================ */

.spinner-soft {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(212, 165, 116, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-float {
    animation: spin 2s linear infinite, float 3s ease-in-out infinite;
}

/* ============================================
   FOCUS STATES - ACESSIBILIDADE COM ESTILO
   ============================================ */

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

*:focus-visible {
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.2);
}

/* ============================================
   DARK MODE SUPPORT (Future-ready)
   ============================================ */

@media (prefers-color-scheme: dark) {
    .glass-effect {
        background: rgba(10, 61, 50, 0.65);
        border-color: rgba(212, 165, 116, 0.3);
    }

    .neomorph {
        background: linear-gradient(145deg, #1a4d42, #0d3028);
        box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.5),
                    -8px -8px 16px rgba(100, 100, 100, 0.1);
    }
}

/* ============================================
   TRANSIÇÕES DE PÁGINA
   ============================================ */

.page-transition {
    animation: pageSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pageSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ELEMENTO COM DADOS ATRIBUTOS PERSONALIZADOS
   ============================================ */

[data-hover-lift]:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

[data-hover-scale]:hover {
    transform: scale(1.05);
}

[data-hover-color]:hover {
    color: var(--primary-color);
}

/* ============================================
   MEDIA QUERIES PARA RESPONSIVIDADE
   ============================================ */

@media (max-width: 768px) {
    .card-3d:hover {
        transform: rotateY(5deg) rotateX(-2deg);
    }

    .glass-effect {
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }

    .btn-modern {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

/* ============================================
   IMPRESSÃO
   ============================================ */

@media print {
    [data-no-print] {
        display: none !important;
    }

    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Color Classes for Palette */
.color-primary {
    background: #D4A574;
}

.color-primary-dark {
    background: #B89354;
}

.color-primary-light {
    background: #E8C69F;
}

.color-dark {
    background: #0A3D32;
}

.gradient-primary {
    background: linear-gradient(135deg, #d4a574, #b89354);
}
