/* =====================================================================
   Deneme ana sayfaları — ortak temel. Renkler ve biçim her tasarımın
   kendi dosyasında (trial-first.css, trial-second.css) değişkenlerle verilir.
   Logo çarkının renkleri: mavi #36B3E5, açık yeşil #C5D82E, sarı #F7E10F,
   turuncu #F39120, kırmızı #EB2046, pembe #EE4580, mor #9D4F9E, yeşil #76BD43.
   ===================================================================== */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("/admin/fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("/admin/fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Janda Manatee";
    font-display: swap;
    src: url("/site/fonts/janda-manatee-solid.ttf") format("truetype");
}

:root {
    --wheel-blue: #36b3e5;
    --wheel-lime: #c5d82e;
    --wheel-yellow: #f7e10f;
    --wheel-orange: #f39120;
    --wheel-red: #eb2046;
    --wheel-pink: #ee4580;
    --wheel-purple: #9d4f9e;
    --wheel-green: #76bd43;
    --t-ease: cubic-bezier(.2, .8, .2, 1);
    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body.trial {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.trial section[id] {
    scroll-margin-top: 84px;
}

.trial img {
    max-width: 100%;
}

.min-w-0 {
    min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* Kaydırınca beliren bölümler */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--t-ease), transform .7s var(--t-ease);
}

    [data-reveal].is-visible {
        opacity: 1;
        transform: none;
    }

[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }

/* ---------------------------------------------------------------- randevu formu (ortak işleyiş) */
.t-form .t-field {
    margin-bottom: 14px;
}

.t-form .form-floating > textarea.form-control {
    height: 116px;
    resize: vertical;
}

.t-form .form-control {
    border-radius: var(--t-field-radius, 12px);
}

.t-submit {
    width: 100%;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    transition: transform .2s var(--t-ease), box-shadow .2s, background-color .2s;
}

    .t-submit:hover {
        transform: translateY(-1px);
    }

    .t-submit[disabled] {
        cursor: progress;
        opacity: .85;
        transform: none;
    }

    .t-submit .when-busy {
        display: none;
    }

.t-form.is-busy .t-submit .when-idle {
    display: none;
}

.t-form.is-busy .t-submit .when-busy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.t-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: t-spin .8s linear infinite;
}

@keyframes t-spin {
    to {
        transform: rotate(360deg);
    }
}

.t-alert {
    margin-top: 14px;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.55;
    background: #fff4f4;
    color: #8a1c2b;
    border: 1px solid #f6caca;
}

    .t-alert strong,
    .t-alert-detail {
        display: block;
    }

    .t-alert a {
        color: inherit;
        font-weight: 600;
    }

.t-note {
    font-size: 12.5px;
    margin: 12px 0 0;
    opacity: .75;
}

.t-success {
    text-align: center;
    padding: 24px 8px;
    animation: t-fade-up .5s var(--t-ease);
}

    .t-success h3 {
        font-weight: 800;
        margin: 18px 0 8px;
    }

.t-success-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: #fff;
    background: var(--wheel-green);
    box-shadow: 0 14px 30px -14px rgba(118, 189, 67, .9);
    animation: t-pop .5s var(--t-ease);
}

.t-reset {
    margin-top: 12px;
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
    border-radius: 999px;
    padding: 8px 20px;
    font-weight: 600;
}

.hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@keyframes t-pop {
    from {
        transform: scale(.6);
        opacity: 0;
    }
}

@keyframes t-fade-up {
    from {
        transform: translateY(12px);
        opacity: 0;
    }
}

/* ---------------------------------------------------------------- ayrıntı penceresi */
.t-modal .modal-content {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 40px 90px -30px rgba(15, 23, 42, .55);
}

.t-modal .modal-header {
    align-items: center;
    gap: 16px;
    padding: 22px 26px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.t-modal.has-color .modal-header {
    background: var(--detail-color);
    color: #fff;
    border-bottom: 0;
}

    .t-modal.has-color .modal-header .btn-close {
        filter: invert(1) grayscale(1) brightness(2);
    }

.t-modal .modal-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0;
}

.t-detail-kicker {
    display: block;
    font-size: 13px;
    font-weight: 600;
    opacity: .7;
    margin-bottom: 2px;
}

.t-detail-image {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    flex-shrink: 0;
}

.t-modal .btn-close {
    margin-left: auto;
    align-self: flex-start;
}

.t-modal .modal-body {
    padding: 22px 26px 28px;
}

.t-rich {
    font-size: 16px;
    line-height: 1.75;
    color: #2a3445;
}

    .t-rich p {
        margin-bottom: 14px;
    }

        .t-rich p:last-child {
            margin-bottom: 0;
        }

    .t-rich img {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
    }

    /* Eski sitede duyurular kırmızı zeminde gösterildiği için metinleri beyaz ve Calibri/pt boyutlarıyla kaydedilmiş.
       Açık zeminli pencerede okunur olsun diye bu satır içi biçimler etkisizleştirilir (diğer renkler korunur). */
    /* HTML temizleyici renkleri "rgba(255, 255, 255, 1)" biçimine çevirir; elle girilmiş biçimler de yakalanır */
    .t-rich [style*="255, 255, 255"],
    .t-rich [style*="255,255,255"],
    .t-rich [style*="color:#fff" i],
    .t-rich [style*="color: #fff" i],
    .t-rich [style*="color:white" i],
    .t-rich [style*="color: white" i] {
        color: inherit !important;
    }

    .t-rich [style*="font-family"] {
        font-family: inherit !important;
    }

    .t-rich [style*="font-size"] {
        font-size: inherit !important;
    }

.modal-backdrop.show {
    opacity: .55;
}

@supports ((-webkit-backdrop-filter: blur(2px)) or (backdrop-filter: blur(2px))) {
    .modal-backdrop.show {
        opacity: 1;
        background: rgba(11, 18, 32, .5);
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
    }
}

/* ---------------------------------------------------------------- galeri görüntüleyici */
.t-lightbox .modal-content {
    background: #0e1420;
    color: #fff;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
}

.t-lightbox .modal-header {
    border: 0;
    gap: 14px;
    padding: 18px 22px 8px;
}

.t-lightbox .modal-title {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
}

.t-lightbox-counter {
    font-size: 13px;
    color: #aab4c8;
    margin-left: auto;
}

.t-lightbox .btn-close {
    margin: 0;
}

.t-lightbox .modal-body {
    padding: 8px 22px 22px;
}

.t-lightbox-stage {
    position: relative;
    margin: 0;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
}

    .t-lightbox-stage img {
        display: block;
        width: 100%;
        height: min(70vh, 640px);
        object-fit: contain;
    }

    .t-lightbox-stage figcaption {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 26px 18px 14px;
        font-size: 14px;
        background: linear-gradient(transparent, rgba(0, 0, 0, .65));
    }

        .t-lightbox-stage figcaption:empty {
            display: none;
        }

.t-lightbox-prev,
.t-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(14, 20, 32, .6);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s;
}

    .t-lightbox-prev:hover,
    .t-lightbox-next:hover {
        background: rgba(14, 20, 32, .85);
    }

.t-lightbox-prev {
    left: 12px;
}

.t-lightbox-next {
    right: 12px;
}

.t-lightbox-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 2px 2px;
    scrollbar-width: thin;
}

    .t-lightbox-thumbs button {
        flex: 0 0 auto;
        border: 2px solid transparent;
        border-radius: 10px;
        padding: 0;
        overflow: hidden;
        background: none;
        opacity: .55;
        transition: opacity .2s, border-color .2s;
    }

        .t-lightbox-thumbs button.active,
        .t-lightbox-thumbs button:hover {
            opacity: 1;
        }

        .t-lightbox-thumbs button.active {
            border-color: var(--wheel-blue);
        }

    .t-lightbox-thumbs img {
        display: block;
        height: 58px;
        width: 84px;
        object-fit: cover;
    }

@media (max-width: 575.98px) {
    .t-lightbox .modal-body {
        padding: 6px 10px 14px;
    }

    .t-lightbox-stage img {
        height: 56vh;
    }
}

/* ---------------------------------------------------------------- sabit düğmeler */
.t-whatsapp,
.t-to-top {
    position: fixed;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: transform .2s var(--t-ease), opacity .3s, visibility .3s;
}

.t-whatsapp {
    right: 20px;
    bottom: 20px;
    width: 58px;
    height: 58px;
    background: #25d366;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 14px 30px -12px rgba(37, 211, 102, .9);
}

    .t-whatsapp:hover {
        color: #fff;
        transform: scale(1.06);
    }

.t-to-top {
    right: 20px;
    bottom: 90px;
    width: 44px;
    height: 44px;
    background: #fff;
    color: #1f2a3c;
    font-size: 18px;
    box-shadow: 0 10px 26px -10px rgba(15, 23, 42, .45);
    opacity: 0;
    visibility: hidden;
}

    .t-to-top.is-visible {
        opacity: 1;
        visibility: visible;
    }

body:not(:has(.t-whatsapp)) .t-to-top {
    bottom: 20px;
}
