/**
 * FlexibleXFootprint - Premium Mobile-First Design
 * Exquisite UI optimized for mobile engagement
 * @version 2.0 - Complete Redesign
 */

/* ============ CSS Variables - Premium Color Palette ============ */
:root {
    /* Primary Brand Colors */
    --fx-primary: #6366f1;
    --fx-primary-dark: #4f46e5;
    --fx-primary-light: #818cf8;
    --fx-accent: #ec4899;
    --fx-accent-dark: #db2777;
    
    /* Neutral Colors */
    --fx-bg-primary: #ffffff;
    --fx-bg-secondary: #f8fafc;
    --fx-bg-tertiary: #f1f5f9;
    --fx-text-primary: #0f172a;
    --fx-text-secondary: #475569;
    --fx-text-tertiary: #94a3b8;
    
    /* Gradients */
    --fx-gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --fx-gradient-blue: linear-gradient(135deg, #667eea 0%, #6366f1 100%);
    --fx-gradient-pink: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --fx-gradient-sunset: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    
    /* Shadows */
    --fx-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --fx-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --fx-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --fx-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --fx-shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
    
    /* Spacing */
    --fx-spacing-xs: 0.25rem;
    --fx-spacing-sm: 0.5rem;
    --fx-spacing-md: 1rem;
    --fx-spacing-lg: 1.5rem;
    --fx-spacing-xl: 2rem;
    --fx-spacing-2xl: 3rem;
    
    /* Border Radius */
    --fx-radius-sm: 0.5rem;
    --fx-radius-md: 1rem;
    --fx-radius-lg: 1.5rem;
    --fx-radius-xl: 2rem;
    --fx-radius-full: 9999px;
    
    /* Transitions */
    --fx-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --fx-transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --fx-transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Mobile Bottom Nav Height */
    --fx-bottom-nav-height: 70px;
}

/* ============ Base Container ============ */
.footprint-spa-container {
    min-height: 100vh;
    background: var(--fx-bg-secondary);
    padding-bottom: var(--fx-bottom-nav-height);
    position: relative;
}

/* ============ Card Grid - Mobile-First Responsive Layout ============ */
.fx-card-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.25rem;
    padding: 0;
    margin: 0 auto;
    max-width: 1400px;
    width: 100%;
}

/* Tablet: 2 columns */
@media (min-width: 640px) {
    .fx-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
    .fx-card-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Large Desktop: 4 columns */
@media (min-width: 1536px) {
    .fx-card-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============ Top Bar - Mobile Optimized ============ */
.footprint-nav-bar {
    background: var(--fx-bg-primary);
    box-shadow: var(--fx-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--fx-spacing-md);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.footprint-top-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--fx-spacing-sm) var(--fx-spacing-md);
    max-width: 1400px;
    margin: 0 auto;
}

/* Category tabs always visible as a horizontal row */
.footprint-category-tabs-desktop {
    display: flex;
    gap: 0.35rem;
    flex: 1;
    justify-content: flex-end;
}

/* Search box always takes its own full-width row on mobile */
#footprint-search-area {
    order: 10;
    flex: 0 0 100%;
}

.footprint-brand {
    display: flex;
    align-items: center;
    gap: var(--fx-spacing-sm);
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--fx-gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    flex-shrink: 0;
}

.footprint-brand i {
    font-size: 1.5rem;
    background: var(--fx-gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============ Search Box - Premium Design ============ */
.footprint-search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--fx-spacing-sm);
    background: var(--fx-bg-tertiary);
    padding: var(--fx-spacing-xs) var(--fx-spacing-md);
    border-radius: var(--fx-radius-full);
    transition: all var(--fx-transition-base);
    border: 2px solid transparent;
}

.footprint-search-box:focus-within {
    background: var(--fx-bg-primary);
    border-color: var(--fx-primary);
    box-shadow: var(--fx-shadow-glow);
    transform: translateY(-1px);
}

.footprint-search-box input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    padding: var(--fx-spacing-sm) 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    -webkit-font-smoothing: antialiased;
}

.footprint-search-box input::placeholder {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    font-weight: 400;
    opacity: 1;
}

.footprint-search-box button {
    background: var(--fx-gradient-purple);
    border: none;
    border-radius: var(--fx-radius-full);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--fx-transition-fast);
    box-shadow: var(--fx-shadow-sm);
}

.footprint-search-box button:hover {
    transform: scale(1.05);
    box-shadow: var(--fx-shadow-md);
}

.footprint-search-box button:active {
    transform: scale(0.95);
}

.footprint-search-box button i {
    color: white;
    font-size: 1rem;
}

/* AI Search Button */
.footprint-ai-btn {
    background: transparent;
    color: var(--fx-text-secondary);
    border: 1px solid var(--fx-border, #e2e8f0);
    padding: var(--fx-spacing-xs) var(--fx-spacing-md);
    border-radius: var(--fx-radius-full);
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: var(--fx-spacing-xs);
    cursor: pointer;
    transition: all var(--fx-transition-base);
    text-decoration: none;
    white-space: nowrap;
    opacity: 0.75;
}

.footprint-ai-btn:hover {
    background: var(--fx-bg-tertiary);
    color: var(--fx-text-primary);
    border-color: var(--fx-primary);
    opacity: 1;
}

.footprint-ai-btn:active {
    transform: scale(0.97);
}

/* ============ Bottom Navigation - Mobile First ============ */
.footprint-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--fx-bg-primary);
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: flex;
    justify-content: space-around;
    padding: var(--fx-spacing-sm) var(--fx-spacing-md);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footprint-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--fx-spacing-xs);
    padding: var(--fx-spacing-sm);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all var(--fx-transition-fast);
    min-width: 70px;
    border-radius: var(--fx-radius-md);
    position: relative;
}

.footprint-nav-item i {
    font-size: 1.5rem;
    color: var(--fx-text-tertiary);
    transition: all var(--fx-transition-fast);
}

.footprint-nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--fx-text-tertiary);
    transition: all var(--fx-transition-fast);
}

.footprint-nav-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.footprint-nav-item.active i {
    background: var(--fx-gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: scale(1.1);
}

.footprint-nav-item.active span {
    background: var(--fx-gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.footprint-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--fx-gradient-purple);
    border-radius: 0 0 var(--fx-radius-sm) var(--fx-radius-sm);
    transition: width var(--fx-transition-base);
}

.footprint-nav-item.active::before {
    width: 50px;
}

/* ============ Content Area ============ */
.footprint-content-area {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--fx-spacing-lg) var(--fx-spacing-md);
    min-height: calc(100vh - 200px);
}

/* ============ Loading State - Skeleton Loaders ============ */
.footprint-loading {
    display: none;
    flex-direction: column;
    gap: var(--fx-spacing-lg);
    padding: var(--fx-spacing-xl);
}

.footprint-skeleton-card {
    background: var(--fx-bg-primary);
    border-radius: var(--fx-radius-lg);
    padding: var(--fx-spacing-lg);
    box-shadow: var(--fx-shadow-sm);
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.footprint-skeleton-line {
    height: 16px;
    background: var(--fx-bg-tertiary);
    border-radius: var(--fx-radius-sm);
    margin-bottom: var(--fx-spacing-md);
}

.footprint-skeleton-line:last-child {
    width: 60%;
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Modern Spinner */
.footprint-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--fx-bg-tertiary);
    border-top-color: var(--fx-primary);
    border-radius: var(--fx-radius-full);
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============ Error State - Premium Design ============ */
.footprint-error {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--fx-spacing-2xl);
    text-align: center;
    min-height: 400px;
}

.footprint-error i {
    font-size: 4rem;
    background: var(--fx-gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--fx-spacing-lg);
}

.footprint-error h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fx-text-primary);
    margin-bottom: var(--fx-spacing-md);
}

.footprint-error p {
    color: var(--fx-text-secondary);
    margin-bottom: var(--fx-spacing-xl);
}

.footprint-error button {
    background: var(--fx-gradient-purple);
    color: white;
    border: none;
    padding: var(--fx-spacing-md) var(--fx-spacing-xl);
    border-radius: var(--fx-radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--fx-transition-base);
    box-shadow: var(--fx-shadow);
}

.footprint-error button:hover {
    transform: translateY(-2px);
    box-shadow: var(--fx-shadow-lg);
}

/* ============ Dynamic Content ============ */
.footprint-dynamic-content {
    animation: fadeIn var(--fx-transition-base);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ Hero Landing Section ============ */
.footprint-hero {
    position: relative;
    min-height: calc(100vh - var(--fx-bottom-nav-height) - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--fx-spacing-2xl) var(--fx-spacing-md);
}

/* Hero Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.95) 0%, 
        rgba(118, 75, 162, 0.9) 50%,
        rgba(236, 72, 153, 0.85) 100%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: patternMove 20s ease-in-out infinite;
}

@keyframes patternMove {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Icon */
.hero-icon-animated {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--fx-spacing-xl);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--fx-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
}

.hero-icon-animated i {
    font-size: 3rem;
    color: white;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); }
    50% { box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3); }
}

/* Hero Title */
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: var(--fx-spacing-md);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--fx-spacing-2xl);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Hero Action Buttons */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--fx-spacing-md);
    justify-content: center;
    margin-bottom: var(--fx-spacing-2xl);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-btn {
    display: flex;
    align-items: center;
    gap: var(--fx-spacing-sm);
    padding: var(--fx-spacing-md) var(--fx-spacing-xl);
    border: none;
    border-radius: var(--fx-radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--fx-transition-base);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-btn i {
    font-size: 1.2rem;
}

.hero-btn-primary {
    background: white;
    color: var(--fx-primary);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.hero-btn-accent {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-btn-accent:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Hero Features */
.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--fx-spacing-lg);
    margin-bottom: var(--fx-spacing-2xl);
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-feature-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--fx-radius-lg);
    padding: var(--fx-spacing-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--fx-transition-base);
}

.hero-feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--fx-spacing-md);
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--fx-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-feature-icon i {
    font-size: 1.75rem;
    color: white;
}

.hero-feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--fx-spacing-xs);
}

.hero-feature-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Hero Scroll Hint */
.hero-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--fx-spacing-sm);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    animation: fadeInUp 1s ease-out 1s both, bounce 2s ease-in-out 2s infinite;
}

.hero-scroll-hint i {
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Hero Responsive Adjustments */
@media (max-width: 576px) {
    .footprint-hero {
        min-height: calc(100vh - var(--fx-bottom-nav-height) - 60px);
        padding: var(--fx-spacing-lg) var(--fx-spacing-sm);
    }
    
    .hero-icon-animated {
        width: 80px;
        height: 80px;
    }
    
    .hero-icon-animated i {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-btn {
        width: 100%;
        justify-content: center;
        padding: var(--fx-spacing-md);
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: var(--fx-spacing-md);
    }
}

@media (min-width: 768px) {
    .footprint-hero {
        min-height: calc(100vh - 80px);
        padding: var(--fx-spacing-2xl) var(--fx-spacing-xl);
    }
    
    .hero-icon-animated {
        width: 120px;
        height: 120px;
    }
    
    .hero-icon-animated i {
        font-size: 3.5rem;
    }
    
    .hero-features {
        grid-template-columns: repeat(3, 1fr);
        max-width: 900px;
        margin: 0 auto var(--fx-spacing-2xl);
    }
}

@media (min-width: 992px) {
    .hero-content {
        max-width: 1000px;
    }
    
    .hero-actions {
        gap: var(--fx-spacing-lg);
    }
    
    .hero-btn {
        padding: var(--fx-spacing-lg) var(--fx-spacing-2xl);
        font-size: 1.1rem;
    }
}

/* ============ Scroll to Top Button ============ */
.scroll-to-top-btn {
    position: fixed;
    bottom: calc(var(--fx-bottom-nav-height) + var(--fx-spacing-lg));
    right: var(--fx-spacing-lg);
    width: 50px;
    height: 50px;
    background: var(--fx-gradient-purple);
    border: none;
    border-radius: var(--fx-radius-full);
    color: white;
    cursor: pointer;
    transition: all var(--fx-transition-base);
    box-shadow: var(--fx-shadow-lg);
    z-index: 90;
    display: none;
}

.scroll-to-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--fx-shadow-xl);
}

.scroll-to-top-btn:active {
    transform: translateY(-1px);
}

.scroll-to-top-btn i {
    font-size: 1.25rem;
}

/* ============ Responsive Design ============ */

/* Desktop - Hide bottom nav, show traditional tabs */
@media (min-width: 992px) {
    .footprint-spa-container {
        padding-bottom: 0;
    }
    
    .footprint-bottom-nav {
        display: none !important;
    }
    
    .footprint-nav-bar {
        padding: var(--fx-spacing-lg) var(--fx-spacing-xl);
    }
    
    .footprint-top-bar {
        flex-wrap: nowrap;
        gap: var(--fx-spacing-xl);
    }
    
    /* On desktop search stays inline (not full-width row) */
    #footprint-search-area {
        order: 0;
        flex: 1;
    }
    
    .footprint-category-tabs-desktop {
        flex: 0 0 auto;
        gap: var(--fx-spacing-md);
    }
    
    .footprint-content-area {
        padding: var(--fx-spacing-2xl);
    }
    
    .scroll-to-top-btn {
        bottom: var(--fx-spacing-xl);
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .footprint-nav-bar {
        padding: var(--fx-spacing-md) var(--fx-spacing-lg);
    }
    
    .footprint-content-area {
        padding: var(--fx-spacing-xl) var(--fx-spacing-lg);
    }
    
    .footprint-search-box {
        min-width: 300px;
    }
}

/* Mobile - Optimize for touch */
@media (max-width: 767px) {
    /* Hide bottom nav - tabs are now in the top bar */
    .footprint-bottom-nav {
        display: none !important;
    }

    .footprint-spa-container {
        padding-bottom: 0;
    }
    
    /* Show brand text (we have room now search is on row 2) */
    .footprint-brand span {
        display: inline;
    }
    
    /* Compact tab buttons for mobile top bar */
    .footprint-category-tabs-desktop .footprint-nav-item {
        flex-direction: row;
        gap: 0.3rem;
        padding: 0.35rem 0.65rem;
        min-width: 0;
        border-radius: var(--fx-radius-full);
        background: var(--fx-bg-tertiary);
        font-size: 0.78rem;
    }
    
    .footprint-category-tabs-desktop .footprint-nav-item i {
        font-size: 0.9rem;
    }
    
    .footprint-category-tabs-desktop .footprint-nav-item span {
        font-size: 0.78rem;
        font-weight: 500;
    }
    
    .footprint-category-tabs-desktop .footprint-nav-item.active {
        background: var(--fx-primary);
    }
    
    .footprint-category-tabs-desktop .footprint-nav-item.active i,
    .footprint-category-tabs-desktop .footprint-nav-item.active span {
        background: none;
        -webkit-text-fill-color: white;
        color: white;
    }

    /* AI Search button: icon-only on mobile to save space */
    .footprint-ai-btn span {
        display: none;
    }

    .footprint-ai-btn {
        padding: var(--fx-spacing-sm) var(--fx-spacing-md);
        min-width: 44px;
        justify-content: center;
    }

    /* Search box stretches full-width on second row */
    .footprint-search-box {
        width: 100%;
        min-width: 0;
    }
    
    .footprint-content-area {
        padding: var(--fx-spacing-md);
    }
    
    .footprint-welcome {
        padding: var(--fx-spacing-xl) var(--fx-spacing-md);
    }
    
    .footprint-welcome h2 {
        font-size: 1.5rem;
    }
    
    .footprint-welcome p {
        font-size: 1rem;
    }
}

/* Very small mobile */
@media (max-width: 375px) {
    .footprint-nav-item span {
        font-size: 0.7rem;
    }
    
    .footprint-nav-item i {
        font-size: 1.25rem;
    }
}
}

.footprint-search-box button:hover {
    background: linear-gradient(135deg, #6b21a8 0%, #581c87 100%);
    transform: scale(1.05);
}

/* ============ Content Area ============ */
.footprint-content-area {
    padding: 24px 0;
    min-height: calc(100vh - 100px);
}

.footprint-dynamic-content {
    transition: opacity 0.3s ease;
}

/* ============ Welcome Screen ============ */
.footprint-welcome {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.footprint-welcome h2 {
    color: #333;
    margin-bottom: 16px;
}

/* ============ Loading Spinner ============ */
.footprint-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: #666;
}

.footprint-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 16px;
}

.footprint-loading p {
    font-size: 1.1rem;
    margin: 0;
}

/* ============ Error Display ============ */
.footprint-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px;
    text-align: center;
    color: #666;
}

.footprint-error i {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 24px;
}

.footprint-error h3 {
    color: #333;
    margin-bottom: 16px;
}

.footprint-error button {
    margin-top: 16px;
}

/* ============ Scroll to Top Button ============ */
.scroll-to-top-btn {
    position: fixed;
    bottom: calc(var(--fx-bottom-nav-height) + var(--fx-spacing-lg));
    right: var(--fx-spacing-lg);
    width: 50px;
    height: 50px;
    background: var(--fx-gradient-purple);
    border: none;
    border-radius: var(--fx-radius-full);
    color: white;
    cursor: pointer;
    transition: all var(--fx-transition-base);
    box-shadow: var(--fx-shadow-lg);
    z-index: 90;
    display: none;
}

.scroll-to-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--fx-shadow-xl);
}

.scroll-to-top-btn:active {
    transform: translateY(-1px);
}

.scroll-to-top-btn i {
    font-size: 1.25rem;
}

/* ============================================================================= */
/* PREMIUM CARD DESIGN SYSTEM - Expert-Level Content Display */
/* ============================================================================= */

/* ============ Content Grid System ============ */
.footprint-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--fx-spacing-xl);
    padding: var(--fx-spacing-lg);
}

/* Two column for tablets */
@media (min-width: 768px) and (max-width: 1199px) {
    .footprint-content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Three column for desktop */
@media (min-width: 1200px) {
    .footprint-content-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Single column for mobile */
@media (max-width: 767px) {
    .footprint-content-grid {
        grid-template-columns: 1fr;
        gap: var(--fx-spacing-lg);
        padding: var(--fx-spacing-md);
    }
}

/* ============ Premium Card Base ============ */
.fx-card {
    background: var(--fx-bg-primary);
    border-radius: var(--fx-radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all var(--fx-transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

.fx-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

.fx-card:active {
    transform: translateY(-4px) scale(1.01);
    transition: all 0.1s ease;
}

/* Mobile touch optimization */
@media (max-width: 1024px) {
    .fx-card {
        -webkit-tap-highlight-color: rgba(99, 102, 241, 0.1);
    }
    
    .fx-card:hover {
        transform: none;
    }
    
    .fx-card:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}

/* ============ Card Image Container ============ */
.fx-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2; /* matches 600x400px source images */
    height: auto;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.fx-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
}

.fx-card:hover .fx-card-image img {
    transform: scale(1.08);
}

/* Image placeholder shimmer effect */
.fx-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Image overlay gradient - more subtle */
.fx-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    pointer-events: none;
    z-index: 2;
}

/* Mobile: aspect-ratio preserves proportion at any card width */
@media (max-width: 640px) {
    .fx-card-image {
        aspect-ratio: 3 / 2;
    }
}

/* ============ Card Badges & Labels ============ */
.fx-card-badge {
    position: absolute;
    top: var(--fx-spacing-md);
    right: var(--fx-spacing-md);
    background: var(--fx-gradient-purple);
    color: white;
    padding: var(--fx-spacing-xs) var(--fx-spacing-md);
    border-radius: var(--fx-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: var(--fx-shadow-md);
}

.fx-card-badge.featured {
    background: var(--fx-gradient-sunset);
}

.fx-card-badge.new {
    background: var(--fx-gradient-blue);
}

.fx-card-badge.popular {
    background: var(--fx-gradient-pink);
}

/* ============ Card Content ============ */
.fx-card-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .fx-card-content {
        padding: 1.5rem;
        gap: 1rem;
    }
}

/* ============ Card Category Tag ============ */
.fx-card-category {
    display: inline-flex;
    align-items: center;
    gap: var(--fx-spacing-xs);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fx-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.fx-card-category i {
    font-size: 0.85rem;
}

/* ============ Card Title ============ */
.fx-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.1rem;
}

.fx-shop-id {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: "SFMono-Regular", Consolas, monospace;
    color: #1e40af;
    background: #dbeafe;
    border: 1px solid #93c5fd;
    border-radius: 4px;
    padding: 0.2rem 0.55rem;
    white-space: nowrap;
    margin-top: 2px;
    letter-spacing: 0.03em;
}

.fx-shop-subtitle {
    font-size: 0.82rem;
    color: var(--fx-text-primary);
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    line-height: 1.3;
}

.fx-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--fx-text-primary);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em;
}

@media (min-width: 640px) {
    .fx-card-title {
        font-size: 1.25rem;
    }
}

.fx-card:hover .fx-card-title {
    color: var(--fx-primary);
}

/* ============ Card Description with Read More ============ */
.fx-card-description {
    font-size: 0.875rem;
    color: var(--fx-text-secondary);
    line-height: 1.7;
    margin: 0;
    position: relative;
}

@media (min-width: 640px) {
    .fx-card-description {
        font-size: 0.9375rem;
    }
}

.fx-card-description.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fx-card-description.expanded {
    display: block;
}

/* Read More Button */
.fx-read-more-btn {
    background: none;
    border: none;
    color: var(--fx-primary);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all var(--fx-transition-fast);
    margin-top: 0.5rem;
}

.fx-read-more-btn:hover {
    color: var(--fx-primary-dark);
    gap: 0.5rem;
    text-decoration: none;
}

.fx-read-more-btn:active {
    transform: scale(0.95);
}

.fx-read-more-btn i {
    transition: transform var(--fx-transition-fast);
}

.fx-read-more-btn:hover i {
    transform: translateY(2px);
}
}

/* Read More — HTML <details> element, zero JavaScript */
.fx-read-more {
    margin-top: 0.4rem;
    font-size: 0.875rem;
    color: var(--fx-text-secondary);
}

.fx-read-more-summary {
    list-style: none;
    cursor: pointer;
    line-height: 1.5;
    color: var(--fx-text-secondary);
}

.fx-read-more-summary::-webkit-details-marker { display: none; }

.fx-read-more-link {
    color: var(--fx-primary);
    font-weight: 600;
    white-space: nowrap;
}

.fx-read-more[open] .fx-read-more-summary .fx-read-more-link::after {
    content: " ▲";
    font-size: 0.7rem;
}

.fx-read-more:not([open]) .fx-read-more-summary .fx-read-more-link::after {
    content: " ▼";
    font-size: 0.7rem;
}

.fx-read-more-full {
    margin-top: 0.4rem;
    line-height: 1.5;
}

/* ============ Card Meta Information ============ */
.fx-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: auto;
}

.fx-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    padding: 0.2rem 0.6rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.fx-map-btn:hover {
    background: #1d4ed8;
    color: #fff;
    border-color: #1d4ed8;
}

.fx-buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    background: #16a34a;
    border: 1px solid #15803d;
    border-radius: 4px;
    padding: 0.2rem 0.7rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}

.fx-buy-btn:hover {
    background: #15803d;
    border-color: #166534;
    color: #fff;
}

.fx-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--fx-text-tertiary);
    line-height: 1;
}

@media (min-width: 640px) {
    .fx-meta-item {
        font-size: 0.875rem;
    }
}

.fx-meta-item i {
    color: var(--fx-primary-light);
    font-size: 1rem;
}

.fx-meta-item strong {
    color: var(--fx-text-secondary);
    font-weight: 600;
}

/* ============ Card Rating System ============ */
.fx-card-rating {
    display: flex;
    align-items: center;
    gap: var(--fx-spacing-xs);
}

.fx-stars {
    display: flex;
    gap: 2px;
}

.fx-star {
    color: #fbbf24;
    font-size: 0.9rem;
}

.fx-star.empty {
    color: var(--fx-bg-tertiary);
}

.fx-rating-count {
    font-size: 0.8rem;
    color: var(--fx-text-tertiary);
    margin-left: var(--fx-spacing-xs);
}

/* ============ Card Price Display ============ */
.fx-card-price {
    display: flex;
    align-items: baseline;
    gap: var(--fx-spacing-sm);
    font-weight: 700;
    margin-top: var(--fx-spacing-sm);
}

.fx-price-current {
    font-size: 1.5rem;
    color: var(--fx-primary);
}

.fx-price-original {
    font-size: 1rem;
    color: var(--fx-text-tertiary);
    text-decoration: line-through;
}

.fx-price-discount {
    background: #ef4444;
    color: white;
    padding: var(--fx-spacing-xs) var(--fx-spacing-sm);
    border-radius: var(--fx-radius-sm);
    font-size: 0.8rem;
}

/* ============ Card Action Button ============ */
.fx-card-action {
    display: flex;
    gap: var(--fx-spacing-sm);
    margin-top: var(--fx-spacing-md);
}

.fx-btn {
    flex: 1;
    padding: var(--fx-spacing-md) var(--fx-spacing-lg);
    border-radius: var(--fx-radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all var(--fx-transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--fx-spacing-sm);
    text-decoration: none;
}

.fx-btn-primary {
    background: var(--fx-gradient-purple);
    color: white;
    box-shadow: var(--fx-shadow);
}

.fx-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--fx-shadow-lg);
    color: white;
}

.fx-btn-outline {
    background: transparent;
    color: var(--fx-primary);
    border: 2px solid var(--fx-primary);
}

.fx-btn-outline:hover {
    background: var(--fx-primary);
    color: white;
}

/* ============ Compact Card Variant ============ */
.fx-card.compact {
    flex-direction: row;
    height: auto;
}

.fx-card.compact .fx-card-image {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.fx-card.compact .fx-card-content {
    padding: var(--fx-spacing-md);
}

.fx-card.compact .fx-card-title {
    font-size: 1rem;
    -webkit-line-clamp: 1;
}

.fx-card.compact .fx-card-description {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
}

/* ============ Featured Card Variant ============ */
.fx-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 2px solid var(--fx-primary-light);
}

.fx-card.featured .fx-card-image {
    /* inherits aspect-ratio 3/2; wider column = naturally taller image */
}

.fx-card.featured .fx-card-title {
    font-size: 1.75rem;
    -webkit-line-clamp: 3;
}

@media (max-width: 767px) {
    .fx-card.featured {
        grid-column: span 1;
    }
    
    .fx-card.featured .fx-card-image {
        /* inherits aspect-ratio 3/2 */
    }
}

/* ============ List View Card ============ */
.fx-card.list-view {
    flex-direction: row;
}

.fx-card.list-view .fx-card-image {
    width: 250px;
    height: auto;
    min-height: 200px;
}

.fx-card.list-view .fx-card-content {
    padding: var(--fx-spacing-xl);
}

@media (max-width: 767px) {
    .fx-card.list-view {
        flex-direction: column;
    }
    
    .fx-card.list-view .fx-card-image {
        width: 100%;
        aspect-ratio: 3 / 2;
        height: auto;
    }
}

/* ============ Card Tags ============ */
.fx-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--fx-spacing-sm);
    margin-top: var(--fx-spacing-sm);
}

.fx-tag {
    display: inline-flex;
    align-items: center;
    padding: var(--fx-spacing-xs) var(--fx-spacing-md);
    background: var(--fx-bg-tertiary);
    color: var(--fx-text-secondary);
    border-radius: var(--fx-radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--fx-transition-fast);
}

.fx-tag:hover {
    background: var(--fx-primary-light);
    color: white;
    transform: translateY(-1px);
}

/* ============ Card Favorite Button ============ */
.fx-favorite-btn {
    position: absolute;
    top: var(--fx-spacing-md);
    left: var(--fx-spacing-md);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--fx-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--fx-transition-base);
    z-index: 2;
    box-shadow: var(--fx-shadow);
}

.fx-favorite-btn:hover {
    transform: scale(1.1);
    background: white;
}

.fx-favorite-btn i {
    font-size: 1.1rem;
    color: var(--fx-text-tertiary);
    transition: all var(--fx-transition-fast);
}

.fx-favorite-btn.active i {
    color: #ef4444;
    transform: scale(1.2);
}

/* ============ Typography Enhancements ============ */
.fx-text-gradient {
    background: var(--fx-gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fx-text-muted {
    color: var(--fx-text-tertiary);
}

.fx-text-secondary {
    color: var(--fx-text-secondary);
}

/* ============ Empty State ============ */
.fx-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--fx-spacing-2xl);
    text-align: center;
    min-height: 400px;
}

.fx-empty-icon {
    width: 80px;
    height: 80px;
    background: var(--fx-gradient-purple);
    border-radius: var(--fx-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--fx-spacing-lg);
    opacity: 0.7;
}

.fx-empty-icon i {
    font-size: 2.5rem;
    color: white;
}

.fx-empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fx-text-primary);
    margin-bottom: var(--fx-spacing-sm);
}

.fx-empty-description {
    color: var(--fx-text-secondary);
    max-width: 400px;
}

/* ============ Section Headers ============ */
.fx-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--fx-spacing-xl) var(--fx-spacing-lg);
    margin-bottom: var(--fx-spacing-lg);
}

.fx-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--fx-gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.fx-section-subtitle {
    color: var(--fx-text-secondary);
    font-size: 0.95rem;
    margin-top: var(--fx-spacing-xs);
}

.fx-view-toggle {
    display: flex;
    gap: var(--fx-spacing-xs);
    background: var(--fx-bg-tertiary);
    padding: var(--fx-spacing-xs);
    border-radius: var(--fx-radius-md);
}

.fx-view-btn {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--fx-radius-sm);
    cursor: pointer;
    transition: all var(--fx-transition-fast);
    color: var(--fx-text-tertiary);
}

.fx-view-btn.active {
    background: white;
    color: var(--fx-primary);
    box-shadow: var(--fx-shadow-sm);
}

.fx-view-btn:hover {
    background: white;
    color: var(--fx-primary);
}

/* ============ Responsive Overrides ============ */

/* Tablets */
@media (max-width: 992px) {
    .footprint-category-tabs {
        gap: 4px;
    }

    .category-tab {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .category-tab span {
        display: none;
    }

    .category-tab i {
        font-size: 1.2rem;
    }

    .footprint-search-box {
        min-width: 200px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .footprint-nav-bar {
        padding: 8px 0;
    }

    .footprint-brand {
        font-size: 1.2rem;
    }

    .footprint-brand span {
        display: none;
    }

    .footprint-search-box {
        min-width: 150px;
    }

    .footprint-search-box input {
        font-size: 0.85rem;
    }

    .footprint-content-area {
        padding: 16px 0;
    }

    .scroll-to-top-btn {
        width: 40px;
        height: 40px;
        bottom: 16px;
        right: 16px;
    }
}

/* Small mobile */
@media (max-width: 576px) {
    .footprint-nav-bar .row {
        gap: 8px;
    }

    .footprint-category-tabs {
        flex-wrap: wrap;
    }

    .footprint-search-box {
        width: 100%;
        max-width: 100%;
    }
}

/* ============ Integration with Existing Content ============ */

/* Ensure smooth transitions for loaded content */
.footprint-dynamic-content > * {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Remove default margins from loaded content */
.footprint-dynamic-content > .container-fluid:first-child,
.footprint-dynamic-content > .container:first-child {
    padding-top: 0;
}

/* Style adjustments for legacy content */
.footprint-dynamic-content .simple-search-container {
    display: none; /* Hide duplicate search boxes from SQL-generated content */
}

/* Hover effects for cards */
.footprint-dynamic-content .card {
    transition: all 0.3s ease;
}

.footprint-dynamic-content .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Lazy image loading placeholders */
.footprint-dynamic-content img.lazy {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ============ Dark Mode Support (Optional) ============ */
@media (prefers-color-scheme: dark) {
    .footprint-spa-container {
        background: #1a1a1a;
        color: #e0e0e0;
    }

    .footprint-nav-bar {
        background: #2a2a2a;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .footprint-brand {
        color: #ffffff;
    }

    .category-tab {
        color: #e0e0e0;
    }

    .category-tab:hover {
        background: #3a3a3a;
    }

    .footprint-search-box {
        background: #3a3a3a;
    }

    .footprint-search-box input {
        color: #e0e0e0;
    }

    .footprint-welcome,
    .footprint-loading,
    .footprint-error {
        color: #b0b0b0;
    }

    .footprint-welcome h2,
    .footprint-error h3 {
        color: #ffffff;
    }
}

/* ============ Product Image Gallery (Multiple Images) ============ */
.fx-product-gallery {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: nowrap;
}

.fx-product-thumbnail {
    width: calc(33.333% - 0.333rem);
    height: 80px;
    object-fit: cover;
    border-radius: var(--fx-radius-sm);
    cursor: pointer;
    transition: all var(--fx-transition-fast);
    border: 2px solid transparent;
}

.fx-product-thumbnail:hover {
    transform: scale(1.05);
    border-color: var(--fx-primary);
    box-shadow: var(--fx-shadow-md);
}

/* ============ Detail Header (Thin Header with Context) ============ */
.fx-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--fx-bg-tertiary);
    border-radius: var(--fx-radius-md);
    margin-bottom: 1.5rem;
    box-shadow: var(--fx-shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.fx-back-btn {
    background: var(--fx-bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--fx-radius-md);
    color: var(--fx-text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--fx-transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fx-back-btn:hover {
    background: var(--fx-primary);
    color: white;
    border-color: var(--fx-primary);
    transform: translateX(-2px);
}

.fx-back-btn i {
    font-size: 0.875rem;
}

.fx-detail-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.fx-detail-category {
    font-weight: 600;
    color: var(--fx-text-primary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.fx-detail-category i {
    color: var(--fx-primary);
}

.fx-detail-count {
    font-size: 0.875rem;
    color: var(--fx-text-secondary);
    background: var(--fx-bg-primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--fx-radius-full);
    font-weight: 500;
}

@media (max-width: 640px) {
    .fx-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .fx-detail-info {
        width: 100%;
        justify-content: space-between;
    }
}

/* ============ Category Selection - First Workflow Step ============ */
.fx-category-select {
    max-width: 520px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.fx-category-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.fx-category-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fx-text-primary);
    margin: 0 0 0.25rem;
}

.fx-category-header p {
    font-size: 0.9rem;
    color: var(--fx-text-secondary);
    margin: 0;
}

.fx-category-choices {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fx-category-choice {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.fx-category-choice:hover {
    border-color: var(--fx-primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.fx-choice-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.5rem;
    background: var(--fx-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.fx-choice-icon--tours {
    background: #10b981;
}

.fx-choice-icon--places {
    background: #f59e0b;
}

.fx-choice-label {
    flex: 1;
}

.fx-choice-label strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--fx-text-primary);
}

.fx-choice-label span {
    font-size: 0.8rem;
    color: var(--fx-text-secondary);
}

.fx-choice-arrow {
    color: var(--fx-text-tertiary);
    font-size: 0.85rem;
}

/* AI Search upsell banner */
.fx-ai-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(16,185,129,0.06));
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: var(--fx-radius-md);
    flex-wrap: wrap;
}

.fx-ai-banner-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--fx-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.fx-ai-banner-text {
    flex: 1;
    min-width: 0;
}

.fx-ai-banner-text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fx-text-primary);
}

.fx-ai-banner-text span {
    font-size: 0.8rem;
    color: var(--fx-text-secondary);
    line-height: 1.4;
}

.fx-ai-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    background: var(--fx-primary);
    color: #fff;
    border-radius: var(--fx-radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.fx-ai-banner-btn:hover {
    background: var(--fx-primary-dark, #4f46e5);
    color: #fff;
    text-decoration: none;
}

/* ============ Hero - Eyebrow Label ============ */
.hero-eyebrow {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    animation: fadeInUp 1s ease-out 0.1s both;
}

/* ============ Hero - Highlighted Word ============ */
.hero-highlight {
    background: linear-gradient(135deg, #fee140 0%, #fa709a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============ Hero - Stats Row ============ */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.hero-stat-icon {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.95);
}

.hero-stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-stat-divider {
    width: 1px;
    height: 44px;
    background: rgba(255, 255, 255, 0.22);
}

/* ============ Hero - Category Grid Cards ============ */
.hero-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 840px;
    margin: 0 auto 2rem;
    animation: fadeInUp 1s ease-out 0.8s both;
}

@media (max-width: 640px) {
    .hero-cat-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        gap: 0.75rem;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .hero-cat-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 680px;
    }
}

.hero-cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.75rem 1rem 1.25rem;
    border: none;
    border-radius: var(--fx-radius-lg);
    cursor: pointer;
    text-align: center;
    transition: transform var(--fx-transition-base), box-shadow var(--fx-transition-base), background var(--fx-transition-base);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    color: white;
    min-height: 175px;
    text-decoration: none;
}

.hero-cat-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-cat-card:active {
    transform: scale(0.97);
}

.hero-cat-shops {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.5), rgba(139, 92, 246, 0.45));
}
.hero-cat-shops:hover {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.7), rgba(139, 92, 246, 0.65));
}

.hero-cat-tours {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.5), rgba(5, 150, 105, 0.45));
}
.hero-cat-tours:hover {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.7), rgba(5, 150, 105, 0.65));
}

.hero-cat-places {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.5), rgba(239, 68, 68, 0.4));
}
.hero-cat-places:hover {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.7), rgba(239, 68, 68, 0.6));
}

.hero-cat-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--fx-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: background var(--fx-transition-fast);
}

.hero-cat-card:hover .hero-cat-icon {
    background: rgba(255, 255, 255, 0.35);
}

.hero-cat-icon i {
    font-size: 1.5rem;
    color: white;
}

.hero-cat-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.4rem;
}

.hero-cat-desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 0.85rem;
    line-height: 1.45;
}

.hero-cat-cta {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-cat-cta i {
    font-size: 0.75rem;
    transition: transform var(--fx-transition-fast);
}

.hero-cat-card:hover .hero-cat-cta i {
    transform: translateX(5px);
}

/* ============ Hero - Floating Orbs (Decorative) ============ */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.18;
    pointer-events: none;
    animation: orbFloat 9s ease-in-out infinite;
}

.hero-orb-1 {
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, #a855f7, transparent 70%);
    top: -120px;
    right: -60px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, #ec4899, transparent 70%);
    bottom: 40px;
    left: -70px;
    animation-delay: -3.5s;
}

.hero-orb-3 {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, #6366f1, transparent 70%);
    top: 45%;
    left: 28%;
    animation-delay: -6s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(25px, -25px) scale(1.06); }
    66%       { transform: translate(-18px, 18px) scale(0.94); }
}

/* ============ Hero - AI Nudge Strip ============ */
.hero-ai-nudge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--fx-radius-full);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 1s both;
}

.hero-ai-nudge i {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.hero-ai-link {
    color: white;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hero-ai-link:hover {
    color: #fee140;
    text-decoration: underline;
}
