﻿

.app-detail-hero {
    background: var(--app-detail-hero-bg, #F7F1EA);
    padding: 140px 0 200px;
    position: relative;
    overflow: hidden;
}

.app-detail-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent-new);
    margin-bottom: 16px;
}

.app-detail-hero-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--color-accent-new);
}

.app-detail-hero-title {
    overflow-wrap: anywhere;
    font-size: clamp(2.2rem, 5vw, 3.8rem) !important;
    font-weight: 900 !important;
    color: var(--color-primary) !important;
    line-height: 1.1 !important;
    letter-spacing: -1.5px;
    margin-bottom: 20px !important;
}

.app-detail-hero-sub {
    font-size: 17px;
    color: var(--color-muted);
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 36px;
}

.app-detail-hero-deco {
    position: absolute;
    top: 110px; right: 0; bottom: 0;
    width: 45%;
    background: radial-gradient(ellipse at 80% 50%, rgba(149,160,111,0.07) 0%, transparent 70%);
    pointer-events: none;
}

body[data-controller="applications"] #mainNav:not(.scrolled) {
    background-color: var(--app-detail-hero-bg, #F7F1EA) !important;
    --lang-caret-color: var(--color-muted);
}

body[data-treatment-category="Face"] {
    --app-hero-pattern: url('../img/hero-face.svg');
}

body[data-treatment-category="SkinAndHair"] {
    --app-hero-pattern: url('../img/hero-skin-hair.svg');
}

body[data-treatment-category="Body"] {
    --app-hero-pattern: url('../img/hero-body.svg');
}

body[data-treatment-category]:not([data-treatment-category=""]) #mainNav {
    position: fixed;
}

body[data-treatment-category]:not([data-treatment-category=""]) #mainNav:not(.scrolled) {
    background-color: transparent !important;
}

body[data-treatment-category]:not([data-treatment-category=""]) > main[role="main"] {
    padding-top: 0;
}

body[data-treatment-category]:not([data-treatment-category=""]) .app-detail-hero {
    padding-top: calc(140px + var(--navbar-height));
    isolation: isolate;
}

body[data-treatment-category]:not([data-treatment-category=""]) .app-detail-hero-deco {
    top: 0;
    width: 68%;
    z-index: 0;
    background: var(--app-hero-pattern) right bottom / auto 110% no-repeat;
    filter: blur(0.3px);
    mask-image: linear-gradient(to right, transparent, #000 20%);
}

body[data-treatment-category]:not([data-treatment-category=""]) .app-detail-hero > .shape-bottom {
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 991px) {
    body[data-treatment-category]:not([data-treatment-category=""]) .app-detail-hero-deco {
        width: 78%;
        background-position: center bottom;
    }
}

body[data-controller="applications"] #mainNav:not(.scrolled) .navbar-nav .nav-link,
body[data-controller="applications"] #mainNav:not(.scrolled) .site-brand {
    color: var(--color-primary) !important;
}

body[data-controller="applications"] #mainNav:not(.scrolled) .navbar-toggler-icon {
    filter: none !important;
}

body[data-controller="applications"] #mainNav:not(.scrolled) .lang-btn {
    color: var(--color-muted) !important;
}

body[data-controller="applications"] #mainNav:not(.scrolled) .lang-sep {
    color: rgba(0, 0, 0, 0.2);
}

body[data-action="dudakdolgusu"]         { --app-detail-hero-bg: #F7F1EA; }
body[data-action="cenedolgusu"]          { --app-detail-hero-bg: #F4EFE7; }
body[data-action="ortayuzdolgusu"]       { --app-detail-hero-bg: #F3ECE2; }
body[data-action="altyuzdolgusu"]        { --app-detail-hero-bg: #F6EEE9; }
body[data-action="jawlinedolgusu"]       { --app-detail-hero-bg: #F1EAE2; }
body[data-action="sakakdolgusu"]         { --app-detail-hero-bg: #F5F1E8; }
body[data-action="burunsekillendirme"]   { --app-detail-hero-bg: #EFE8DD; }
body[data-action="aqualifting"]          { --app-detail-hero-bg: #F4EDE6; }
body[data-action="botox"]                { --app-detail-hero-bg: #F1ECE4; }
body[data-action="masseterbotox"]        { --app-detail-hero-bg: #F6F0EA; }

body[data-action="ciltaydinlatma"]       { --app-detail-hero-bg: #EEF2EA; }
body[data-action="gozaltimezo"]          { --app-detail-hero-bg: #EAF0EC; }
body[data-action="sacmezo"]              { --app-detail-hero-bg: #EDF1E8; }
body[data-action="prp"]                  { --app-detail-hero-bg: #EEF3F2; }
body[data-action="grp"]                  { --app-detail-hero-bg: #E9F0EA; }
body[data-action="ekzozom"]              { --app-detail-hero-bg: #ECF1EE; }
body[data-action="altinigne"]            { --app-detail-hero-bg: #F2F4EC; }

body[data-action="vucutdolgusu"]         { --app-detail-hero-bg: #F0ECDF; }
body[data-action="bolgeselyageritme"]    { --app-detail-hero-bg: #EDE9DC; }
body[data-action="soguklipoliz"]         { --app-detail-hero-bg: #EDF0E7; }
body[data-action="rfultrason"]           { --app-detail-hero-bg: #F2EEE1; }
body[data-action="lipolitik"]            { --app-detail-hero-bg: #EAE6D8; }
body[data-action="catlattedavisi"]       { --app-detail-hero-bg: #EFE9DA; }

.hero-section .btn-whatsapp,
.hero-section .home-whatsapp-btn,
.app-detail-hero .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 999px;
    background: #32CD32;
    color: #ffffff !important;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 24px rgba(21, 33, 58, 0.18);
    text-decoration: none;
}

.hero-section .btn-whatsapp:hover,
.hero-section .home-whatsapp-btn:hover,
.app-detail-hero .btn-whatsapp:hover {
    background: #32CD32;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(201, 169, 110, 0.30);
}

.hero-section .btn-whatsapp svg,
.hero-section .home-whatsapp-btn svg,
.app-detail-hero .btn-whatsapp svg {
    transition: transform 0.3s ease;
}

.hero-section .btn-whatsapp:hover svg,
.hero-section .home-whatsapp-btn:hover svg,
.app-detail-hero .btn-whatsapp:hover svg {
    transform: scale(1.1);
}

@media (min-width: 992px) {
    .app-detail-scroll-wrap {
        height: 300vh;
        position: relative;
    }

    .app-detail-sticky {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow: hidden;
        background: #ffffff;
        display: flex;
        align-items: center;
    }

    .app-detail-scroll-block {
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        opacity: 0;
        transform: translateY(36px);
        transition: opacity 0.65s cubic-bezier(.25,.46,.45,.94),
                    transform 0.65s cubic-bezier(.25,.46,.45,.94);
        pointer-events: none;
    }

    .app-detail-scroll-block.is-active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        z-index: 2;
    }

    .app-detail-scroll-block.is-exit {
        opacity: 0;
        transform: translateY(-36px);
        z-index: 1;
    }
}

@media (max-width: 991px) {
    .app-detail-scroll-wrap { height: auto; }
    .app-detail-sticky { position: static; height: auto; background: #fff; }
    .app-detail-scroll-block {
        padding: 60px 0;
        border-bottom: 1px solid var(--color-border);
        opacity: 1 !important;
        transform: none !important;
    }
    .app-detail-scroll-block:last-child { border-bottom: none; }
}

.app-detail-block-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent-new);
    margin-bottom: 14px;
}

.app-detail-block-title {
    overflow-wrap: anywhere;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem) !important;
    font-weight: 800 !important;
    color: var(--color-primary) !important;
    margin-bottom: 20px !important;
    line-height: 1.2 !important;
}

.app-detail-block-text {
    font-size: 15px;
    color: var(--color-muted);
    line-height: 1.85;
    margin-bottom: 16px;
}

.app-detail-block-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.app-detail-block-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.app-detail-block-list li:last-child { border-bottom: none; }

.app-detail-block-list li .li-title {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 3px;
    display: block;
    font-size: 14px;
}

.app-detail-block-list li .li-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--color-accent-new);
    flex-shrink: 0;
    margin-top: 4px;
}

.app-detail-block-img {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: 0 24px 64px rgba(0,0,0,0.14);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.app-detail-block-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.app-detail-block-img .img-ph {
    width: 100%;
    height: 100%;
    background: #F0EDE8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--color-muted);
    font-size: 13px;
}

.app-detail-progress {
    position: fixed;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.app-detail-progress.is-visible {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 991px) {
    .app-detail-progress { display: none !important; }
}

.app-detail-progress-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(201,169,110,0.3);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.app-detail-progress-dot.active {
    background: var(--color-accent-new);
    transform: scale(1.4);
}

.app-cards-section {
    padding: 80px 0 100px;
    background: var(--color-bg-soft);
}

.app-cards-heading {
    text-align: center;
    margin-bottom: 48px;
}

.app-cards-heading h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
    font-weight: 800 !important;
    color: var(--color-primary) !important;
    margin-bottom: 8px !important;
}

.app-cards-heading p {
    font-size: 14px;
    color: var(--color-muted);
}

.app-cards-outer {
    position: relative;
    --card-width: 300px;
    --card-height: 380px;
}

.app-cards-viewport {
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

.app-cards-track {
    position: relative;
    height: calc(var(--card-height) + 72px);
    perspective: 1100px;
    direction: ltr;
}

.app-card-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--card-width);
    height: var(--card-height);
    border-radius: 20px;
    border: 1px solid rgba(28, 43, 74, 0.12);
    background: var(--color-bg-soft);
    overflow: hidden;
    color: #fff !important;
    text-decoration: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -50%) translateX(var(--card-x, 0px))
               translateZ(var(--card-z, 0px)) rotateY(var(--card-angle, 0deg)) scale(var(--card-scale, 1));
    transition: transform 600ms cubic-bezier(.22,.61,.36,1), opacity 600ms ease,
                visibility 600ms, box-shadow 600ms ease;
    box-shadow: 0 12px 24px rgba(28, 43, 74, 0.10);
    -webkit-user-select: none;
    user-select: none;
}

.app-card-item.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.app-card-item.is-centered {
    box-shadow: 0 20px 32px rgba(28, 43, 74, 0.18);
}

.app-card-item.is-current {
    border: 2px solid var(--color-accent-new);
}

.app-card-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    pointer-events: none;
    opacity: var(--card-opacity, 1);
    transition: opacity 600ms ease;
}

.app-card-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 32%, rgba(28, 43, 74, 0.28) 56%, rgba(28, 43, 74, 0.94) 100%);
    pointer-events: none;
    opacity: var(--card-opacity, 1);
    transition: opacity 600ms ease;
}

.app-card-caption {
    position: absolute;
    inset-inline: 24px;
    bottom: 26px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: start;
    overflow-wrap: anywhere;
    opacity: var(--card-opacity, 1);
    transition: opacity 600ms ease;
}

.app-card-category {
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
}

.app-card-name {
    font-size: 23px;
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
}

.app-card-current {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    z-index: 1;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--color-accent-new);
    color: #fff;
    font-size: 14px;
}

.app-cards-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-primary);
    cursor: pointer;
    font-size: 24px;
    display: grid;
    place-items: center;
    line-height: 1;
    transition: background 200ms ease, color 200ms ease;
}

#appCardsPrev { inset-inline-start: 0; }
#appCardsNext { inset-inline-end: 0; }

.app-cards-nav:hover {
    background: var(--color-primary);
    color: #fff;
}

.app-cards-nav:focus-visible,
.app-card-item:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: -5px;
}

.app-cards-counter {
    text-align: center;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.12em;
    color: var(--color-muted);
    margin-top: 12px;
}

#appCardsPosition { color: var(--color-primary); font-weight: 700; }

html[dir="rtl"] .app-cards-section .app-card-item { direction: rtl; }
html[dir="rtl"] .app-cards-section .app-cards-nav { transform: translateY(-50%) rotate(180deg); }

@media (max-width: 767px) {
    .app-cards-section .app-cards-outer {
        --card-width: min(64vw, 270px);
        --card-height: 340px;
    }
    .app-cards-section .app-card-caption { inset-inline: 18px; bottom: 22px; }
    .app-cards-section .app-card-name { font-size: 21px; }
}

@media (max-width: 480px) {
    .app-cards-section .app-cards-outer { --card-height: 300px; }
    .app-cards-section .app-card-name { font-size: 19px; }
    .app-cards-section .app-card-category { font-size: 11px; }
    .app-cards-section .app-cards-heading { margin-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .app-cards-section .app-card-item,
    .app-cards-section .app-card-item::after,
    .app-cards-section .app-card-photo,
    .app-cards-section .app-card-caption,
    .app-cards-section .app-cards-nav { transition: none; }
}

.grecaptcha-badge {
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    right: -186px !important;
    bottom: 14px !important;
    z-index: 99999 !important;
    transition: right 0.35s ease !important;
}

.grecaptcha-badge:hover {
    right: 0 !important;
}

@media (max-width: 576px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .grecaptcha-badge {
        right: -166px !important;
        bottom: 8px !important;
        transform: scale(0.85);
        transform-origin: bottom right;
    }

    .grecaptcha-badge:hover {
        right: 0 !important;
    }
}
