/* ==========================================================================

   GLOBAL TRENDS MODULE (Quiet Luxury Glassmorphism)

   Strict adherence to "ULTRA MEGA" Design System v3.0

   ========================================================================== */



/* 1. CONTAINER GRID matches Homepage Services */

.nv-trend-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

    gap: 30px;

    width: 100%;

    margin-top: 40px;

    padding: 10px;

    /* Breathing room for shadows */

}



/* 2. CARD BASE - The "Glass" Container */

.nv-trend-card {

    position: relative;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    /* Text sits at bottom */

    height: 520px;

    /* Taller, editorial ratio */

    overflow: hidden;



    /* GLASSMORPHISM CORE */

    background: rgba(20, 20, 20, 0.4);

    /* Dark translucent base */

    -webkit-backdrop-filter: blur(20px);

    backdrop-filter: blur(20px);



    /* BORDERS & SHAPE */

    border: 1px solid rgba(255, 255, 255, 0.08);

    /* Soft light stroke */

    border-radius: 24px;

    /* Matches Prompt Spec (22-28px) */



    /* SHADOW & DEPTH */

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);

    /* Subtle ambient */

    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);

    /* Silk smooth */



    cursor: pointer;

    text-decoration: none;

}



/* HOVER STATE - Gentle Lift */

.nv-trend-card:hover {

    transform: translateY(-8px);

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);

    /* Deeper shadow */

    border-color: rgba(198, 165, 92, 0.3);

    /* Subtle Gold Hint */

}



/* 3. IMAGE LAYER (Atmosphere) */

.nv-trend-bg {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    background-size: cover;

    background-position: center;



    /* Initial state: Muted & Calm */

    filter: brightness(0.85) contrast(0.95) saturate(0.9);

    transition: transform 0.8s ease, filter 0.8s easebox;

    z-index: 0;
    pointer-events: none;
}



.nv-trend-card:hover .nv-trend-bg {

    transform: scale(1.03);

    /* Micro-zoom */

    filter: brightness(0.95) contrast(1) saturate(1);

    /* Reveal clarity */

}



/* 4. OVERLAY LAYER (Readability) */

.nv-trend-overlay {

    position: absolute;

    inset: 0;

    background: linear-gradient(to bottom,

            rgba(0, 0, 0, 0) 0%,

            rgba(0, 0, 0, 0.2) 50%,

            rgba(0, 0, 0, 0.85) 100%);

    z-index: 1;

    pointer-events: none;

}



/* 5. TEXT CONTENT LAYER */

.nv-trend-content {

    position: relative;

    z-index: 2;

    padding: 36px;

    display: flex;

    flex-direction: column;

    gap: 10px;
    pointer-events: none;
}



/* TYPOGRAPHY SYSTEM */

.nv-trend-label {

    font-family: 'Inter', sans-serif;

    font-size: 11px;

    font-weight: 500;

    text-transform: uppercase;

    letter-spacing: 2.5px;

    /* Airy tracking */

    color: var(--gold, #C6A55C);

    margin-bottom: 4px;

    opacity: 0.9;

    display: flex;

    align-items: center;

    gap: 8px;

}



.nv-trend-title {

    font-family: 'Playfair Display', serif;

    font-size: 28px;

    font-weight: 400;

    /* Thin elegance */

    line-height: 1.15;

    color: #FFFFFF;

    margin: 0;

    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);

    transition: color 0.3s ease;

}



.nv-trend-desc {

    font-family: 'Inter', sans-serif;

    font-size: 15px;

    font-weight: 300;

    line-height: 1.5;

    color: rgba(255, 255, 255, 0.8);

    margin: 0;



    /* Clamp to 2 lines for tidiness */

    display: -webkit-box;

    -webkit-line-clamp: 2;

    line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;



    opacity: 0;

    transform: translateY(10px);

    transition: all 0.5s ease 0.1s;

    /* Staggered reveal */

}



/* Hover Effect on Text */

.nv-trend-card:hover .nv-trend-desc {

    opacity: 1;

    transform: translateY(0);

}



.nv-trend-card:hover .nv-trend-title {

    color: #FFF;

    /* Ensure pure white on hover */

}


/* 6. BACKGROUND IMAGES (Atmosphere Visuals) */

.nv-bg-trend-tokyo {
    background-image: url('/assets/img/cards/santis_card_hammam_v1.webp');
}

.nv-bg-trend-bangkok {
    background-image: url('/assets/img/cards/santis_card_massage_v1.webp');
}

.nv-bg-trend-italy {
    background-image: url('/assets/img/cards/santis_card_skincare_v1.webp');
}

.nv-bg-trend-beauty {
    background-image: url('/assets/img/cards/santis_card_skincare_cover.webp');
}


/* 7. RESPONSIVE */

@media (max-width: 768px) {
    .nv-trend-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nv-trend-card {
        height: 380px;
        border-radius: 18px;
    }

    .nv-trend-content {
        padding: 24px;
    }

    .nv-trend-title {
        font-size: 22px;
    }

    .nv-trend-desc {
        opacity: 1;
        transform: none;
    }
}