/* ============================================================
   Vie Life — Özel Paketler PREMIUM
   - Glass + gradient mesh + animasyon + parallax + mobile-first
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --vlp-bg-1: #f7ecd9;
    --vlp-bg-2: #ecdcbf;
    --vlp-bg-3: #fdf6ec;
    --vlp-accent: #1e6b3a;
    --vlp-accent-dark: #154a23;
    --vlp-accent-light: #2ea760;
    --vlp-text: #1a2a1f;
    --vlp-muted: #5d6b62;
    --vlp-discount: #d8323a;
}

/* ============ ANA SECTION (FULL WIDTH) ============ */
.vlp-section {
    position: relative;
    margin: 48px 0 0 0;
    /* Tema container'ından çıkıp tüm ekran genişliğini kapla */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px);
    border-radius: 0;
    background:
        radial-gradient(1100px 420px at 12% -10%, #ffd9a3 0%, transparent 55%),
        radial-gradient(900px 500px at 110% 110%, #ffe7c2 0%, transparent 60%),
        linear-gradient(135deg, var(--vlp-bg-3) 0%, var(--vlp-bg-1) 50%, var(--vlp-bg-2) 100%);
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    isolation: isolate;
}

/* Dekoratif blob'lar */
.vlp-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .55;
    pointer-events: none;
    z-index: 0;
}
.vlp-blob-1 {
    width: 380px; height: 380px;
    top: -120px; left: -80px;
    background: radial-gradient(circle, #b9e7c4, transparent 70%);
    animation: vlpFloat 14s ease-in-out infinite;
}
.vlp-blob-2 {
    width: 460px; height: 460px;
    bottom: -180px; right: -120px;
    background: radial-gradient(circle, #ffd29a, transparent 70%);
    animation: vlpFloat 18s ease-in-out infinite reverse;
}

/* Noktalı pattern */
.vlp-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(30,107,58,0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: .5;
    pointer-events: none;
    z-index: 0;
    mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
}

@keyframes vlpFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(40px,-30px) scale(1.08); }
    66%      { transform: translate(-30px,40px) scale(.94); }
}

/* ============ CONTAINER ============ */
.vlp-container {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

/* ============ HERO ============ */
.vlp-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
    margin-bottom: clamp(36px, 5vw, 64px);
}

.vlp-hero-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s ease, transform .8s ease;
}
.vlp-in-view .vlp-hero-text {
    opacity: 1;
    transform: translateY(0);
}

.vlp-hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 999px;
    padding: 7px 16px 7px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--vlp-accent);
    letter-spacing: .4px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.vlp-pulse-dot {
    width: 8px; height: 8px;
    background: var(--vlp-accent-light);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(46,167,96,.6);
    animation: vlpPulse 2s infinite;
}
@keyframes vlpPulse {
    0% { box-shadow: 0 0 0 0 rgba(46,167,96,.6); }
    70% { box-shadow: 0 0 0 12px rgba(46,167,96,0); }
    100% { box-shadow: 0 0 0 0 rgba(46,167,96,0); }
}

.vlp-title {
    margin: 0;
    line-height: 1.0;
    color: var(--vlp-text);
}
.vlp-title-top {
    display: block;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--vlp-accent);
}
.vlp-title-bottom {
    display: block;
    font-family: 'Caveat', cursive;
    font-size: clamp(56px, 8vw, 96px);
    font-weight: 600;
    color: var(--vlp-accent-dark);
    margin-top: -10px;
    line-height: .95;
    background: linear-gradient(135deg, var(--vlp-accent-light), var(--vlp-accent-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vlp-subtitle {
    font-size: clamp(15px, 1.4vw, 18px);
    color: var(--vlp-muted);
    line-height: 1.5;
    margin: 20px 0 28px;
    max-width: 420px;
}

.vlp-see-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px 14px 28px;
    background: var(--vlp-accent);
    color: #fff !important;
    border-radius: 999px;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .2px;
    box-shadow: 0 10px 24px rgba(30,107,58,.25);
    transition: transform .3s cubic-bezier(.2,.8,.3,1), box-shadow .3s, background .3s;
    position: relative;
    overflow: hidden;
}
.vlp-see-all-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .6s;
}
.vlp-see-all-btn:hover {
    background: var(--vlp-accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(30,107,58,.35);
    color: #fff !important;
}
.vlp-see-all-btn:hover::before { transform: translateX(100%); }

.vlp-btn-arrow {
    display: inline-flex;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: transform .3s cubic-bezier(.2,.8,.3,1);
}
.vlp-see-all-btn:hover .vlp-btn-arrow {
    transform: translateX(4px) rotate(-8deg);
}

/* ============ HERO GÖRSEL ============ */
.vlp-hero-visual {
    position: relative;
    text-align: center;
    opacity: 0;
    transform: translateY(20px) scale(.94);
    transition: opacity 1s ease .15s, transform 1s ease .15s;
    perspective: 800px;
}
.vlp-in-view .vlp-hero-visual {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.vlp-hero-visual {
    --vlp-rx: 0deg; --vlp-ry: 0deg; --vlp-tx: 0px; --vlp-ty: 0px;
}

.vlp-hero-glow {
    position: absolute;
    inset: 10% 10%;
    background: radial-gradient(circle, rgba(46,167,96,.35), transparent 65%);
    filter: blur(50px);
    z-index: 0;
    animation: vlpGlowPulse 5s ease-in-out infinite;
}
@keyframes vlpGlowPulse {
    0%, 100% { transform: scale(1); opacity: .6; }
    50%      { transform: scale(1.1); opacity: .85; }
}

.vlp-hero-img,
.vlp-hero-fallback {
    position: relative;
    z-index: 1;
    max-width: min(360px, 92%);
    max-height: 340px;
    width: auto;
    height: auto;
    transform:
        rotateX(var(--vlp-rx))
        rotateY(var(--vlp-ry))
        translate3d(var(--vlp-tx), var(--vlp-ty), 0);
    transition: transform .35s cubic-bezier(.2,.8,.3,1);
    filter: drop-shadow(0 30px 40px rgba(0,0,0,.18));
    animation: vlpFloatGentle 6s ease-in-out infinite;
}
@keyframes vlpFloatGentle {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -8px; }
}

.vlp-hero-fallback { display: none; }
.vlp-hero-visual.vlp-no-img .vlp-hero-img { display: none; }
.vlp-hero-visual.vlp-no-img .vlp-hero-fallback { display: inline-block; }

/* ============ ÜRÜN GRID ============ */
.vlp-products-wrap {
    overflow: visible;
    margin: 0 -8px;
    padding: 8px;
}

.vlp-products {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(12px, 1.5vw, 20px);
}

@media (max-width: 1100px) {
    .vlp-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .vlp-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 480px) {
    .vlp-hero { grid-template-columns: 1fr; text-align: center; }
    .vlp-hero-text { text-align: center; }
    .vlp-hero-tagline { margin-left: auto; margin-right: auto; }
    .vlp-subtitle { margin-left: auto; margin-right: auto; }
    .vlp-products {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        margin: 0 -20px;
        padding: 8px 20px 20px;
    }
    .vlp-products::-webkit-scrollbar { display: none; }
    .vlp-card {
        scroll-snap-align: start;
        flex: 0 0 70%;
        min-width: 240px;
    }
}

/* ============ ÜRÜN KARTI ============ */
.vlp-card {
    opacity: 0;
    transform: translateY(28px);
    animation: vlpCardIn .7s ease forwards;
    animation-play-state: paused;
}
.vlp-in-view .vlp-card {
    animation-play-state: running;
}
@keyframes vlpCardIn {
    to { opacity: 1; transform: translateY(0); }
}

.vlp-card-inner {
    position: relative;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 20px;
    padding: 14px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 1px 2px rgba(0,0,0,.04),
        0 8px 20px rgba(30,107,58,.06);
    transition:
        transform .35s cubic-bezier(.2,.8,.3,1),
        box-shadow .35s,
        border-color .35s;
    overflow: hidden;
}
.vlp-card:hover .vlp-card-inner {
    transform: translateY(-8px);
    box-shadow:
        0 4px 8px rgba(0,0,0,.06),
        0 24px 48px rgba(30,107,58,.18);
    border-color: rgba(46,167,96,.3);
}

/* Glow halo on hover */
.vlp-card-inner::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(46,167,96,.3), rgba(255,217,102,.3));
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: opacity .35s;
    filter: blur(12px);
}
.vlp-card:hover .vlp-card-inner::before { opacity: 1; }

/* === İndirim badge === */
.vlp-badge-discount {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--vlp-discount), #b5252c);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 11px;
    border-radius: 8px;
    z-index: 3;
    letter-spacing: .3px;
    box-shadow: 0 6px 14px rgba(216,50,58,.3);
    transform: rotate(-2deg);
}

/* === Wishlist === */
.vlp-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    border: none;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all .25s;
    backdrop-filter: blur(8px);
}
.vlp-wishlist:hover {
    color: var(--vlp-discount);
    transform: scale(1.15);
    background: #fff;
}
.vlp-wishlist:active { transform: scale(.92); }

/* === Görsel alanı === */
.vlp-card-image {
    position: relative;
    display: block;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #f5ecda 0%, #ebdcc1 100%);
}
.vlp-img-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,.7), transparent 60%);
    transition: transform .6s;
}
.vlp-card:hover .vlp-img-bg {
    transform: scale(1.15) rotate(8deg);
}
.vlp-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
    transition: transform .5s cubic-bezier(.2,.8,.3,1);
}
.vlp-card:hover .vlp-card-image img {
    transform: scale(1.08) rotate(-1deg);
}

.vlp-explore-pill {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(255,255,255,.95);
    color: var(--vlp-accent);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
    backdrop-filter: blur(6px);
}
.vlp-card:hover .vlp-explore-pill {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* === Kart gövdesi === */
.vlp-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vlp-card-name {
    color: var(--vlp-text);
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.35;
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.vlp-card-name:hover { color: var(--vlp-accent); }

.vlp-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: 12px;
}

.vlp-prices {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.vlp-price-now {
    font-size: 17px;
    font-weight: 800;
    color: var(--vlp-accent);
    letter-spacing: -.3px;
}
.vlp-price-old {
    font-size: 12px;
    text-decoration: line-through;
    color: #b06165;
    font-weight: 500;
}

.vlp-add-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vlp-accent-light), var(--vlp-accent));
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(30,107,58,.3);
    transition: transform .3s cubic-bezier(.2,.8,.3,1), box-shadow .3s, background .3s;
    position: relative;
    overflow: hidden;
}
.vlp-add-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,.4), transparent);
    transform: scale(0);
    transition: transform .4s;
}
.vlp-add-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 24px rgba(30,107,58,.4);
    color: #fff !important;
}
.vlp-add-btn:hover::after { transform: scale(1.5); }
.vlp-add-btn:active { transform: scale(.92) rotate(90deg); }

/* ============ ERIŞILEBILIRLIK ============ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .vlp-card { opacity: 1; transform: none; }
}

/* ============ DARK MODE === sadece prefers-color-scheme === */
@media (prefers-color-scheme: dark) {
    /* Dark mode hazır ama opt-in; tema dark olduğunda devreye al */
    /* :root .vlp-section { ... } */
}
