/**
 * Global Optimization Stylesheet
 * Part of Phase 5: Comprehensive Responsive Optimization & Custom Layouts
 * Location: /tour/css/style.css
 */

/* Responsive Custom Utilities & Root Variables */
:root {
    --primary-main: #0284c7;
    --primary-dark: #0c4a6e;
    --accent-gold: #f59e0b;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Glassmorphism Navigation & Accent Plates */
.glass-header {
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-main) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Responsive Grid Architectures */
.custom-layout-container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

/* Ultra-wide screens and desktop constraints */
@media (min-width: 640px) {
    .custom-layout-container { max-width: 640px; padding-right: 1.5rem; padding-left: 1.5rem; }
}
@media (min-width: 768px) {
    .custom-layout-container { max-width: 768px; }
}
@media (min-width: 1024px) {
    .custom-layout-container { max-width: 1024px; padding-right: 2rem; padding-left: 2rem; }
}
@media (min-width: 1280px) {
    .custom-layout-container { max-width: 1280px; }
}
@media (min-width: 1536px) {
    /* Ultra-wide desktops optimization */
    .custom-layout-container { max-width: 1400px; }
}

/* Dynamic Interactive Transitions */
.hover-scale {
    transition: var(--transition-smooth);
}
.hover-scale:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hover-zoom-img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.group:hover .hover-zoom-img {
    transform: scale(1.08);
}

/* Custom Scrollbar Styles for elegant UI parsing */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Decorative Keyframes & Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stagger delay classes for bento loops and catalog grids */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* Floating Back-To-Top dynamic anchor widget */
#back-to-top-widget {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#back-to-top-widget.show-widget {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Touch targets mobile guidelines (min 44px) */
@media (max-width: 640px) {
    .btn-touch-standards {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}
