/* ==============================================================
   🚀 PREMIUM UX/UI UPGRADES - (Glassmorphism & Skeletons)
   ============================================================== */

/* 1. Header Glassmorphism (Desktop Only to prevent offcanvas containing block issue) */
@media (min-width: 1200px) {
    .header-section {
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        background-color: rgba(255, 255, 255, 0.85) !important;
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    .header-section.sticky {
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05) !important;
    }
}
/* For mobile, just set the background to solid to avoid backdrop-filter trapping position:fixed offcanvas */
@media (max-width: 1199px) {
    .header-section {
        background-color: #ffffff !important;
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    .header-section.sticky {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    }
}

/* 2. Micro-interactions in cards (Hover Elevate) */
.card-item, .listing-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.card-item:hover, .listing-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 15px 30px var(--teal-mid) !important;
    z-index: 10;
}

/* 3. Skeleton Loaders for generic card images */
@keyframes skeleton-pulse {
    0% { background-color: var(--border-light); }
    50% { background-color: var(--border); }
    100% { background-color: var(--border-light); }
}
.card-item-image {
    background: linear-gradient(-90deg, #f5f7f7 0%, var(--teal-dim) 50%, #f5f7f7 100%);
    background-size: 400% 400%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    min-height: 150px; 
}
.card-item-image[src] {
    animation: none;
    background: none;
}

/* 4. Live Search Dropdown UI (Glassmorphism) */
.live-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 10px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    z-index: 9999;
}
.live-search-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s;
    text-decoration: none;
    color: var(--text-primary);
}
.live-search-item:last-child {
    border-bottom: none;
}
.live-search-item:hover {
    background-color: var(--teal-dim);
}
.live-search-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 15px;
}
.live-search-title {
    font-size: 14px;
    font-weight: 600;
}

/* 6. Logo Proportions Fix */
.light-logo-preview {
    object-fit: contain;
    width: auto !important;
    max-width: 200px;
}
