/* +ALLÁ vCard Styles - Complementing Tailwind CSS */
/* 
 * Modern vCard styling system by masalla.agency
 * Adaptive glassmorphism with intelligent contrast detection
 * Brand colors: #a5d2d6 (primary), #7bb3b8 (secondary), #5a9ea4 (accent)
 */

/* CSS Custom Properties for Liquid Glass theming */
:root {
    /* Clean Glass Variables - Simple & Effective */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --glass-backdrop: blur(16px) saturate(100%);
    
    /* Brand Colors (Café La Gavia) */
    --primary: #a5d2d6;
    --secondary: #7bb3b8;
    --accent: #5a9ea4;
    --dark: #2c5456;
    
    /* Simple Text Enhancement */
    --liquid-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(165, 210, 214, 0.03) 100%);
    --floating-opacity: 0.4;
    --text-primary: #ffffff;
    --text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Light theme adjustments - Clean & Readable */
[data-theme="light"], .bg-light {
    --glass-bg: rgba(0, 0, 0, 0.08);
    --glass-border: rgba(0, 0, 0, 0.12);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    --glass-backdrop: blur(20px) saturate(100%);
    --liquid-gradient: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(44, 84, 86, 0.05) 100%);
    --floating-opacity: 0.6;
    --text-primary: #ffffff;
    --text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Custom animations and keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

@keyframes bounce-gentle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced gradient backgrounds */
.bg-gradient-animated {
    background: linear-gradient(-45deg, #a5d2d6, #7bb3b8, #5a9ea4, #2c5456);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

/* Clean Glass Effects - Simple & Beautiful */
.glass-card {
    background: var(--liquid-gradient);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

/* Simple text enhancement */
.glass-card h1,
.glass-card h2,
.glass-card h3,
.glass-card p,
.glass-card span,
.glass-card a {
    text-shadow: var(--text-shadow);
    color: var(--text-primary);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    opacity: 0.8;
}

.glass-card-strong {
    background: var(--liquid-gradient);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: relative;
    overflow: hidden;
}

.glass-card-strong::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

/* Frutiger Aero inspired hover effects */
.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--glass-shadow), 0 16px 48px rgba(165, 210, 214, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glass-card:hover::before {
    opacity: 1;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

/* Liquid Glass Button Effects */
.btn-glass {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: var(--liquid-gradient);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    text-shadow: var(--text-shadow);
}

.btn-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.btn-glass:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--glass-shadow), 0 12px 32px rgba(165, 210, 214, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Simple text styling */
.text-clean {
    color: var(--text-primary);
    text-shadow: var(--text-shadow);
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Ripple effect for buttons */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.ripple-effect:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

/* Social media button specific styles */
.social-btn {
    position: relative;
    transform: translateZ(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: inherit;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    transform: scale(1.1);
}

.social-btn:hover::before {
    opacity: 0.3;
}

/* Enhanced profile image effects */
.profile-glow {
    position: relative;
}

.profile-glow::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, #a5d2d6, #7bb3b8, #5a9ea4, #a5d2d6);
    border-radius: 50%;
    opacity: 0.7;
    animation: gradient 3s ease infinite;
    z-index: -1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #a5d2d6;
    border-radius: 3px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #7bb3b8;
}

/* Map container enhancements */
.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(165, 210, 214, 0.1) 50%, transparent 51%);
    pointer-events: none;
    z-index: 1;
}

/* Enhanced text effects */
.text-glow {
    text-shadow: 0 0 10px rgba(165, 210, 214, 0.5);
}

.text-shimmer {
    background: linear-gradient(90deg, #ffffff, #a5d2d6, #ffffff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 2s ease-in-out infinite alternate;
}

/* Loading states */
.loading-skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Liquid Floating Elements - Frutiger Aero Style */
.floating-element {
    opacity: var(--floating-opacity);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: blur(0.5px);
    background: radial-gradient(circle, var(--primary), var(--secondary));
    box-shadow: 0 0 20px rgba(165, 210, 214, 0.3), 
                0 0 40px rgba(165, 210, 214, 0.1);
}

.floating-element-enhanced {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), var(--primary));
    opacity: var(--floating-opacity);
    box-shadow: 0 0 15px rgba(165, 210, 214, 0.4),
                0 0 30px rgba(165, 210, 214, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    animation: liquidFloat 8s ease-in-out infinite, liquidPulse 4s ease-in-out infinite;
    border-radius: 50%;
    filter: blur(0.3px);
}

/* Organic floating animation */
@keyframes liquidFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) scale(1);
        filter: blur(0.3px);
    }
    25% { 
        transform: translateY(-15px) translateX(5px) scale(1.1);
        filter: blur(0.2px);
    }
    50% { 
        transform: translateY(-8px) translateX(-3px) scale(0.95);
        filter: blur(0.4px);
    }
    75% { 
        transform: translateY(-12px) translateX(8px) scale(1.05);
        filter: blur(0.25px);
    }
}

@keyframes liquidPulse {
    0%, 100% { 
        opacity: var(--floating-opacity);
        box-shadow: 0 0 15px rgba(165, 210, 214, 0.4),
                    0 0 30px rgba(165, 210, 214, 0.2);
    }
    50% { 
        opacity: calc(var(--floating-opacity) * 1.5);
        box-shadow: 0 0 25px rgba(165, 210, 214, 0.6),
                    0 0 50px rgba(165, 210, 214, 0.3);
    }
}

/* Utility classes for enhanced interactions */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-scale {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Adaptive text colors */
.text-adaptive {
    color: var(--text-primary);
}

.bg-light .text-adaptive {
    color: #2c5456;
}

/* Enhanced contrast overlay */
.contrast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.contrast-overlay.active {
    opacity: 1;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .animate-fadeInUp {
        animation-duration: 0.6s;
    }
    
    .glass-card {
        backdrop-filter: blur(8px);
    }
    
    .profile-glow::before {
        animation-duration: 4s;
    }
}

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

/* Dark mode specific adjustments */
@media (prefers-color-scheme: dark) {
    .glass-card {
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Focus states for accessibility */
.focus-ring:focus {
    outline: 2px solid #a5d2d6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .glass-card {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }
    
    .text-white {
        color: black !important;
    }
    
    .bg-gradient-animated {
        background: white !important;
    }
} 