/* =========================================
   TR DESTEK ELİT - Scroll deneyimi stilleri
   Animasyonlar public/js/trdestek-scroll.js içinde (GSAP + ScrollTrigger).
   .trs-on   : JS ve kütüphaneler hazır, efektler açık
   .trs-static: hareket azaltma tercihi veya kütüphane yok, her şey sabit görünür
   ========================================= */

/* Lenis yumuşak kaydırma için gerekli temel ayarlar */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Sayfa üstünde kaydırma ilerleme çizgisi */
.trs-progress {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 2px;
    z-index: 1100;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, rgb(var(--vb-secondary)), rgb(var(--vb-primary)));
    pointer-events: none;
}

/* Başlık kelime maskesi: kelime, taşmayı gizleyen kutunun altından kayar */
.trs-m {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.12em;
    margin-bottom: -0.12em;
}
.trs-w {
    display: inline-block;
    transform-origin: 0 100%;
    will-change: transform;
}

/* Bölümler arası nefes */
.about-lex-section, .services-v2-section, .rules-section, .faq-section, .application-section-vip, .reviews-section {
    padding-top: 140px !important;
    padding-bottom: 140px !important;
}

/* -----------------------------------------
   Manifesto: kelimeler kaydırdıkça aydınlanır
   ----------------------------------------- */
.trs-on [data-trs-manifesto] {
    font-family: var(--vb-font-display) !important;
    font-size: clamp(1.2rem, 1.9vw, 1.75rem) !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
    letter-spacing: -0.012em !important;
    color: #fff !important;
    max-width: 820px !important;
    margin: 32px auto 0 !important;
}
.trs-word { display: inline-block; opacity: 0.18; will-change: opacity; }
.trs-on .about-header { margin-bottom: 90px; }

/* -----------------------------------------
   Hizmetler: küçük kartlar, 4'lü / 3'lü / 2'li / tekli ızgara
   Son satır eksik kalırsa ortalanır (flex-wrap + center)
   ----------------------------------------- */
.services-v2-section .services-v2-grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px !important;
    max-width: 1240px;
    margin: 0 auto;
    --svc-cols: 4;
}
.services-v2-section .service-v2-card {
    flex: 0 0 calc((100% - (var(--svc-cols) - 1) * 18px) / var(--svc-cols));
    display: flex !important;
    flex-direction: column;
    position: relative;
    min-height: 0;
    padding: 24px 22px 26px !important;
    border-radius: 18px !important;
}
.services-v2-section .card-v2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px !important;
}
.services-v2-section .card-v2-icon {
    width: 44px;
    height: 44px;
    margin: 0 !important;
    display: grid;
    place-items: center;
    font-size: 20px !important;
    border-radius: 12px !important;
}
.services-v2-section .card-v2-status {
    font-size: 10px !important;
    padding: 4px 8px !important;
    white-space: nowrap;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.services-v2-section .service-v2-card h3 {
    margin: 0 0 8px !important;
    font-family: var(--vb-font-display);
    font-size: 1.05rem !important;
    line-height: 1.3;
    letter-spacing: -0.015em;
}
.services-v2-section .service-v2-card p {
    margin: 0 !important;
    font-size: 0.86rem !important;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55) !important;
}
.svc-index {
    position: absolute;
    right: 22px;
    bottom: 18px;
    font-family: var(--vb-font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.14);
    transition: color 0.3s ease;
}
.services-v2-section .service-v2-card:hover .svc-index { color: rgb(var(--vb-primary)); }
.services-v2-section .service-v2-card p { padding-right: 18px; }

@media (max-width: 1100px) { .services-v2-section .services-v2-grid { --svc-cols: 3; } }
@media (max-width: 820px)  { .services-v2-section .services-v2-grid { --svc-cols: 2; } }
@media (max-width: 520px)  { .services-v2-section .services-v2-grid { --svc-cols: 1; } }

/* -----------------------------------------
   Kurallar: 2x2 ızgara, büyük ince sıra numarası
   ----------------------------------------- */
.rules-section .rules-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px !important;
    max-width: 1040px;
    margin: 0 auto;
}
.rules-section .rule-card {
    position: relative;
    display: grid !important;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "num  icon"
        "title title"
        "text  text";
    align-items: start !important;
    text-align: left !important;
    padding: 34px 32px 32px !important;
    min-height: 0;
    overflow: hidden !important;
}
.rules-section .rule-card::after {
    /* Fareyle üzerine gelince solda beliren ince vurgu çizgisi */
    content: '';
    position: absolute;
    left: 0; top: 28px; bottom: 28px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, rgb(var(--vb-secondary)), rgb(var(--vb-primary)));
    transform: scaleY(0);
    transition: transform 0.4s ease;
}
.rules-section .rule-card:hover::after { transform: scaleY(1); }
.rule-index {
    grid-area: num;
    font-family: var(--vb-font-display);
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
    transition: -webkit-text-stroke-color 0.35s ease;
}
.rule-index span { display: none; }
.rules-section .rule-card:hover .rule-index { -webkit-text-stroke-color: rgb(var(--vb-primary)); }
.rules-section .rule-card .rule-icon {
    grid-area: icon;
    justify-self: end;
    width: 44px;
    height: 44px;
    margin: 0 !important;
    display: grid;
    place-items: center;
    font-size: 20px !important;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.rules-section .rule-card h3 {
    grid-area: title;
    margin: 26px 0 10px !important;
    font-family: var(--vb-font-display);
    font-size: 1.2rem !important;
    letter-spacing: -0.015em;
}
.rules-section .rule-card p {
    grid-area: text;
    margin: 0 !important;
    font-size: 0.92rem !important;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.58) !important;
}
.rule-glow-top { display: none !important; }
@media (max-width: 768px) {
    .rules-section .rules-grid { grid-template-columns: 1fr; }
    .rules-section .rule-card { padding: 28px 24px !important; }
    .rule-index { font-size: 2.6rem; }
}

/* -----------------------------------------
   SSS: sol bilgi alanı sabit kalır (masaüstü)
   ----------------------------------------- */
/* clip: taşan arka plan ışığını her ekranda keser ama (hidden'dan farklı olarak) sticky'yi bozmaz */
.faq-section { overflow: clip !important; }
@media (min-width: 993px) {
    .faq-container { overflow: visible !important; }
    .faq-info { position: sticky !important; top: 130px !important; align-self: flex-start; }
}

/* -----------------------------------------
   Mobil
   ----------------------------------------- */
@media (max-width: 768px) {
    .about-lex-section, .services-v2-section, .rules-section, .faq-section, .application-section-vip, .reviews-section {
        padding-top: 90px !important;
        padding-bottom: 90px !important;
    }
    .trs-on [data-trs-manifesto] { font-size: 1.15rem !important; }
}

/* Hareket azaltma / kütüphane yoksa: her şey normal akışta görünür */
.trs-static .trs-word { opacity: 1; }
