/* ============================================
   STYLES - SITE PÚBLICO
   Estilos específicos e animações
   ============================================ */

/* ============================================
   ANIMAÇÕES
   ============================================ */

/* Fade In */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Slide Up */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

/* Scale In */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out;
}

/* Fade In Up (for scroll animations) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animation Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animation Delays */
.scroll-animate.delay-100 { transition-delay: 0.1s; }
.scroll-animate.delay-200 { transition-delay: 0.2s; }
.scroll-animate.delay-300 { transition-delay: 0.3s; }
.scroll-animate.delay-400 { transition-delay: 0.4s; }
.scroll-animate.delay-500 { transition-delay: 0.5s; }

/* ============================================
   HOVER EFFECTS
   ============================================ */

/* Image Zoom on Hover */
.hover-zoom-img {
    overflow: hidden;
}

.hover-zoom-img img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-zoom-img:hover img {
    transform: scale(1.1);
}

/* Card Lift Effect */
.hover-lift-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Text Underline Animation */
.hover-underline {
    position: relative;
    display: inline-block;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

/* ============================================
   BUTTON STYLES
   ============================================ */

/* Luxury Button */
.btn-luxury {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-luxury::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-luxury:hover::before {
    width: 300px;
    height: 300px;
}

/* ============================================
   SCROLL INDICATORS
   ============================================ */

.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(10px);
    }
    60% {
        transform: translateY(5px);
    }
}

/* ============================================
   GRADIENT OVERLAYS
   ============================================ */

.gradient-overlay-dark {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.gradient-overlay-light {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Italic Serif Heading */
.heading-serif-italic {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
}

/* Uppercase Tracking */
.tracking-wide {
    letter-spacing: 0.1em;
}

.tracking-wider {
    letter-spacing: 0.15em;
}

.tracking-widest {
    letter-spacing: 0.25em;
}

/* ============================================
   CARD STYLES
   ============================================ */

/* Property Card */
.property-card {
    background: white;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.property-card:hover {
    transform: translateY(-4px);
}

.property-card-image {
    position: relative;
    overflow: hidden;
}

.property-card-image img {
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.property-card:hover .property-card-image img {
    transform: scale(1.1);
}

/* ============================================
   FORM STYLES
   ============================================ */

/* Luxury Input */
.input-luxury {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transition: border-color 0.3s ease;
}

.input-luxury:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

/* ============================================
   NAVIGATION
   ============================================ */

/* Sticky Header Transition */
.header-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Animation */
.mobile-menu-enter {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu-enter-active {
    transform: translateX(0);
}

.mobile-menu-exit {
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.mobile-menu-exit-active {
    transform: translateX(100%);
}

/* ============================================
   LOADING STATES
   ============================================ */

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--secondary) 25%,
        var(--muted) 50%,
        var(--secondary) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

/* Hide Scrollbar but Keep Functionality */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Smooth Image Loading */
img {
    transition: opacity 0.3s ease;
}

img.loading {
    opacity: 0.5;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    header, footer, nav, .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus Visible */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}