/* Google Yorumları / 3D Testimonials */

/* Keyframes */

@keyframes tm-scroll-up {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes tm-scroll-down {
    0%   { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

@keyframes tm-fade-in-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* Section */

.tm-section {
    position: relative;
    width: 100%;
    background: #080808;
    padding: 100px 0 100px;
    touch-action: pan-y;
}

/* Fade gradients */
.tm-section-fade-top,
.tm-section-fade-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 160px;
    pointer-events: none;
    z-index: 30;
}
.tm-section-fade-top {
    top: 0;
    background: linear-gradient(to bottom, #080808 0%, transparent 100%);
}
.tm-section-fade-bottom {
    bottom: 0;
    background: linear-gradient(to top, #080808 0%, transparent 100%);
}


/* Header */

.tm-header {
    text-align: center;
    padding: 0 20px;
    margin-bottom: 60px;
    position: relative;
    z-index: 40;
    animation: tm-fade-in-up 0.7s ease-out both;
}

/* Badge */
.tm-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 7px 20px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}
.tm-badge svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* Title */
.tm-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin: 0 0 16px;
}
.tm-title em {
    font-style: normal;
    background: linear-gradient(120deg, #b8935a 0%, #e8c98a 45%, #c9a96e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtitle */
.tm-subtitle {
    color: rgba(255, 255, 255, 0.38);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 auto;
    max-width: 520px;
}

/* Rating bar */
.tm-rating-bar {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 100px;
    padding: 10px 24px;
}
.tm-rating-score {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.tm-stars {
    display: flex;
    gap: 3px;
}
.tm-stars svg {
    width: 17px;
    height: 17px;
}
.tm-rating-count {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.38);
    font-weight: 500;
}
.tm-rating-sep {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
}
.tm-gmaps-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.3px;
}
.tm-gmaps-tag svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}


/* ================================================================
   3D SCENE
   Perspective parent olan .tm-scene üzerinde tanımlanır.
   ================================================================ */

.tm-scene {
    position: relative;
    width: 100%;
    height: 620px;
    /* Perspective BURADA tanımlanır — child üzerinde değil */
    perspective: 900px;
    perspective-origin: 50% 50%;
    touch-action: pan-y;
    pointer-events: none;
    clip-path: inset(0);
}

/* Kenar solma overlayları */
.tm-fade {
    position: absolute;
    z-index: 20;
    pointer-events: none;
}
.tm-fade-left {
    top: 0; left: 0; bottom: 0;
    width: 18%;
    background: linear-gradient(to right, #080808 0%, transparent 100%);
}
.tm-fade-right {
    top: 0; right: 0; bottom: 0;
    width: 18%;
    background: linear-gradient(to left, #080808 0%, transparent 100%);
}
.tm-fade-top {
    top: 0; left: 0; right: 0;
    height: 22%;
    background: linear-gradient(to bottom, #080808 0%, transparent 100%);
}
.tm-fade-bottom {
    bottom: 0; left: 0; right: 0;
    height: 22%;
    background: linear-gradient(to top, #080808 0%, transparent 100%);
}


/* ================================================================
   3D WRAPPER — İÇERİK BLOĞU
   ================================================================ */

.tm-3d-wrapper {
    /* Konumlandırma: merkezde, hafif sola kaydır */
    position: absolute;
    top: 50%;
    left: 50%;

    /* 3D perspektif dönüşümü — genişletilmiş, nefes alan görünüm */
    transform:
        translate(-50%, -50%)
        rotateX(20deg)
        rotateY(-10deg)
        rotateZ(20deg)
        translateX(-40px);

    transform-style: preserve-3d;

    /* Sütunları yan yana diz */
    display: flex;
    flex-direction: row;
    gap: 14px;
    align-items: flex-start;
    
    /* Scroll'u engellememek için */
    pointer-events: none;
}


/* ================================================================
   SÜTUNLAR (COLUMNS)
   ================================================================ */

.tm-col {
    flex-shrink: 0;
    overflow: hidden;
    /* Sütun yüksekliği sahneden taşır — fade overlay kapatır */
    height: 900px;
    pointer-events: none;
}

/* Tek track — içeriği JS 2× kopyalar, animasyon 0→-50% gider */
.tm-track {
    display: flex;
    flex-direction: column;
    gap: 14px;
    will-change: transform;
    pointer-events: none;
}

.tm-track.going-up {
    animation: tm-scroll-up var(--tm-dur, 36s) linear infinite;
}
.tm-track.going-down {
    animation: tm-scroll-down var(--tm-dur, 36s) linear infinite;
}

/* Hover: tüm sütun durur */
.tm-col:hover .tm-track {
    animation-play-state: paused;
}


/* ================================================================
   YORUM KARTI
   ================================================================ */

.tm-card {
    width: 250px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 20px;
    cursor: default;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    /* Blur: dekoratif, performans için isteğe bağlı */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto;
}

/* Üst parlama çizgisi */
.tm-card::after {
    content: '';
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tm-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(201, 169, 110, 0.3);
    transform: translateY(-3px) scale(1.025);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 169, 110, 0.1);
}
.tm-card:hover::after {
    opacity: 1;
}

/* Card header */
.tm-card-header {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 13px;
}

.tm-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0;
    background: linear-gradient(135deg, #7c5a38 0%, #c9a96e 100%);
}
.tm-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.tm-card-info {
    flex: 1;
    min-width: 0;
}
.tm-reviewer-name {
    font-size: 0.87rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    margin-bottom: 3px;
}
.tm-reviewer-date {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.32);
    font-weight: 400;
}

/* Google icon */
.tm-google-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Stars */
.tm-card-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 11px;
}
.tm-card-stars svg {
    width: 13px;
    height: 13px;
}

/* Card text */
.tm-card-text {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    display: -moz-box;
    display: box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
}


/* ================================================================
   CTA BUTONU
   ================================================================ */

.tm-cta {
    text-align: center;
    padding-top: 52px;
    position: relative;
    z-index: 40;
}

.tm-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 36px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all 0.35s ease;
}
.tm-cta-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.tm-cta-btn:hover {
    background: rgba(201, 169, 110, 0.14);
    border-color: rgba(201, 169, 110, 0.45);
    color: #e0bb83;
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(201, 169, 110, 0.12);
}


/* ================================================================
   RESPONSIVE — TABLET (≤ 1100px)
   ================================================================ */

@media (max-width: 1100px) {
    .tm-scene {
        height: 560px;
        perspective: 700px;
        pointer-events: none;
        clip-path: inset(0);
    }

    .tm-3d-wrapper {
        transform: 
            translate(-50%, -50%) 
            rotateX(18deg) 
            rotateY(-8deg) 
            rotateZ(18deg) 
            translateX(-30px)
            scale(0.9);
        gap: 12px;
    }

    .tm-card { width: 220px; }
    .tm-col  { height: 820px; }
}


/* ================================================================
   RESPONSIVE — MOBİL (≤ 768px)
   3D Tasarımı mobilde de koruyoruz, 4 sütun birden gösteriyoruz.
   ================================================================ */

@media (max-width: 768px) {
    .tm-section {
        padding: 40px 0 40px;
    }
    
    .tm-header {
        margin-bottom: 40px;
    }
    
    .tm-badge {
        font-size: 0.65rem;
        padding: 5px 14px;
        margin-bottom: 16px;
    }
    
    .tm-badge svg {
        width: 12px;
        height: 12px;
    }
    
    .tm-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }
    
    .tm-subtitle {
        font-size: 0.9rem;
        max-width: 90%;
    }
    
    .tm-rating-bar {
        flex-wrap: nowrap;
        gap: 6px;
        padding: 6px 14px;
    }
    
    .tm-rating-score {
        font-size: 1.2rem;
    }
    
    .tm-stars svg {
        width: 14px;
        height: 14px;
    }
    
    .tm-rating-count {
        font-size: 0.7rem;
    }
    
    .tm-gmaps-tag {
        font-size: 0.68rem;
        gap: 3px;
    }
    
    .tm-gmaps-tag svg {
        width: 12px;
        height: 12px;
    }

    .tm-scene {
        height: 480px;
        perspective: 600px;
        pointer-events: none;
        clip-path: inset(0);
    }

    .tm-3d-wrapper {
        /* Mobilde daha az agresif 3D dönüşüm */
        transform: 
            translate(-50%, -50%) 
            rotateX(10deg) 
            rotateY(-4deg) 
            rotateZ(10deg) 
            translateX(-5px)
            scale(0.65); 
        gap: 10px;
        width: 100%;
        justify-content: center;
    }

    .tm-col {
        height: 800px;
        display: flex;
    }

    /* Hide the 4th column on mobile */
    .tm-col:nth-child(4) {
        display: none !important;
    }

    .tm-card {
        width: min(200px, 45vw);
        padding: 14px;
        border-radius: 14px;
    }
    
    .tm-card-header {
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .tm-avatar {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }
    
    .tm-reviewer-name {
        font-size: 0.8rem;
    }
    
    .tm-reviewer-date {
        font-size: 0.65rem;
    }
    
    .tm-google-icon {
        width: 15px;
        height: 15px;
    }
    
    .tm-card-stars {
        margin-bottom: 8px;
    }
    
    .tm-card-stars svg {
        width: 11px;
        height: 11px;
    }
    
    .tm-card-text {
        font-size: 0.75rem;
        line-height: 1.5;
    }
    
    .tm-cta {
        padding-top: 36px;
    }
    
    .tm-cta-btn {
        padding: 12px 28px;
        font-size: 0.85rem;
    }
    
    .tm-cta-btn svg {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 480px) {
    .tm-section {
        padding: 30px 0 30px;
    }
    
    .tm-header {
        margin-bottom: 30px;
    }
    
    .tm-badge {
        font-size: 0.6rem;
        padding: 4px 12px;
    }
    
    .tm-title {
        font-size: 1.6rem;
    }
    
    .tm-subtitle {
        font-size: 0.85rem;
    }
    
    .tm-rating-bar {
        gap: 4px;
        padding: 5px 12px;
    }
    
    .tm-rating-score {
        font-size: 1.1rem;
    }
    
    .tm-stars svg {
        width: 12px;
        height: 12px;
    }
    
    .tm-rating-count {
        font-size: 0.65rem;
    }
    
    .tm-gmaps-tag {
        font-size: 0.62rem;
        gap: 2px;
    }
    
    .tm-gmaps-tag svg {
        width: 10px;
        height: 10px;
    }
    
    .tm-scene {
        height: 420px;
        perspective: 500px;
        pointer-events: none;
        clip-path: inset(0);
    }

    .tm-3d-wrapper {
        /* Çok dar ekranlarda daha az 3D */
        transform: 
            translate(-50%, -50%) 
            rotateX(8deg) 
            rotateY(-3deg) 
            rotateZ(8deg) 
            translateX(-3px) 
            scale(0.55);
        gap: 8px;
    }

    .tm-col {
        height: 700px;
    }
    
    .tm-col:nth-child(4) {
        display: none !important;
    }

    .tm-card {
        width: min(180px, 48vw);
        padding: 12px;
        border-radius: 12px;
    }
    
    .tm-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    
    .tm-reviewer-name {
        font-size: 0.75rem;
    }
    
    .tm-reviewer-date {
        font-size: 0.6rem;
    }
    
    .tm-card-text {
        font-size: 0.7rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .tm-cta-btn {
        padding: 10px 24px;
        font-size: 0.8rem;
    }
}


/* ================================================================
   REDUCED MOTION
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
    .tm-track {
        animation: none !important;
    }
}
