/**
 * SSs.html (SSS) — namespace: .tts-page
 * Token’lar: style.css. Dekoratif stroke yok (DESIGN.md); radius 6–10px; gölgelerle ayrım.
 */

.page-sss section {
    height: auto;
    min-height: 0;
    display: block;
}

.tts-page {
    position: relative;
    padding-top: clamp(1rem, 3vw, 1.75rem);
    padding-bottom: clamp(2.5rem, 6vw, 4rem);
    /* Üst kenar: sayfa/hero arka planına yumuşak geçiş (transparent → token) */
    background: linear-gradient(
        180deg,
        transparent 0%,
        color-mix(in srgb, var(--bg-color) 35%, transparent) 10%,
        color-mix(in srgb, var(--tertiary-color-low) 55%, transparent) 28%,
        var(--tertiary-color-low) 52%,
        var(--bg-color) 78%,
        var(--card-bg) 100%
    );
}

.tts-page__shell {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.tts-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
    gap: clamp(1.5rem, 3.5vw, 2.75rem);
    align-items: start;
}

@media (max-width: 1024px) {
    .tts-page__layout {
        grid-template-columns: 1fr;
    }
}

.tts-page__toolbar {
    margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.tts-page__search-label {
    display: block;
    margin-bottom: 0.85rem;
}

.tts-page__search {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    background: var(--card-bg);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 12px 32px color-mix(in srgb, var(--color-secondary) 8%, transparent);
}

.tts-page__search i {
    font-size: 1rem;
    color: var(--color-primary);
    opacity: 0.9;
}

.tts-page__search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text-dark);
}

.tts-page__search input::placeholder {
    color: var(--secondary-color-dark);
    opacity: 0.85;
}

.tts-page__search input:focus {
    outline: none;
}

.tts-page__cat-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    row-gap: 0.55rem;
}

/* Kategori kısayolları: beyaz yüzey + gölge; hover’da marka moru (stroke yok, DESIGN.md) */
.tts-page__cat-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.95rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.01em;
    text-transform: none;
    text-decoration: none;
    text-align: center;
    color: var(--section-dark-bg);
    background: #ffffff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.98) inset,
        0 6px 22px color-mix(in srgb, var(--color-secondary) 9%, transparent),
        0 2px 8px color-mix(in srgb, var(--section-dark-bg) 6%, transparent);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        color 0.2s ease,
        background-color 0.2s ease;
}

.tts-page__cat-pill:hover {
    color: #ffffff;
    background: var(--color-primary);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--color-primary) 35%, transparent);
    transform: translateY(-2px);
}

.tts-page__cat-pill:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--color-primary) 28%, transparent);
}

.tts-page__cat-pill:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.tts-page__group {
    scroll-margin-top: calc(7.75rem + env(safe-area-inset-top, 0px));
    margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.tts-page__group:last-of-type {
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.tts-page__group-head {
    margin-bottom: 1rem;
}

.tts-page__group-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.55rem;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: none;
    color: var(--color-primary);
    background: #ffffff;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--color-secondary) 7%, transparent);
}

.tts-page__group-eyebrow i {
    font-size: 0.78rem;
    opacity: 0.95;
}

.tts-page__group-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--section-dark-bg);
}

.tts-page__group-lede {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--secondary-color-dark);
    max-width: 40rem;
}

.tts-page__list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.tts-page__item {
    border-radius: 8px;
    background: var(--card-bg);
    box-shadow: 0 8px 28px color-mix(in srgb, var(--color-secondary) 8%, transparent);
    overflow: hidden;
}

.tts-page__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.38;
}

.tts-page__summary::-webkit-details-marker {
    display: none;
}

.tts-page__q {
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
}

.tts-page__icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
    color: var(--color-primary);
    transition: transform 0.28s ease, background-color 0.2s ease;
}

.tts-page__icon i {
    font-size: 0.75rem;
    transition: transform 0.28s ease;
}

.tts-page__item[open] .tts-page__icon {
    background: var(--color-primary);
    color: var(--text-light);
}

.tts-page__item[open] .tts-page__icon i {
    transform: rotate(45deg);
}

.tts-page__panel {
    padding: 0 1.15rem 1.1rem;
}

.tts-page__panel p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.68;
    color: var(--secondary-color-dark);
    max-width: 50rem;
}

.tts-page__hint {
    margin: clamp(1.25rem, 3vw, 1.75rem) 0 0;
    font-size: 0.875rem;
    color: var(--secondary-color-dark);
}

.tts-page__hint-link {
    margin-left: 0.35rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.tts-page__hint-link:hover {
    border-bottom-color: var(--color-primary);
}

.tts-page__aside {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    position: sticky;
    /* Navbar (sabit + scroll sıkışması) altında kalmaması için üst boşluk */
    top: calc(7.75rem + env(safe-area-inset-top, 0px));
}

@media (max-width: 1024px) {
    .tts-page__aside {
        position: relative;
        top: auto;
        order: -1;
    }
}

.tts-page__cta-card {
    display: block;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    aspect-ratio: 9 / 16;
    max-height: min(56vh, 480px);
    margin: 0 auto;
    width: 100%;
    box-shadow: 0 18px 50px color-mix(in srgb, var(--color-secondary) 18%, transparent);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.tts-page__cta-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 56px color-mix(in srgb, var(--color-secondary) 22%, transparent);
}

.tts-page__cta-visual {
    position: absolute;
    inset: 0;
}

.tts-page__cta-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.tts-page__cta-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        185deg,
        color-mix(in srgb, var(--color-secondary) 12%, transparent) 0%,
        color-mix(in srgb, var(--color-secondary) 45%, transparent) 38%,
        color-mix(in srgb, var(--color-primary) 82%, transparent) 88%,
        rgba(68, 40, 115, 0.92) 100%
    );
    pointer-events: none;
}

.tts-page__cta-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: clamp(1rem, 3vw, 1.35rem);
    z-index: 1;
    color: var(--text-light);
}

.tts-page__cta-eyebrow {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.88;
    margin-bottom: 0.35rem;
}

.tts-page__cta-title {
    display: block;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.45rem;
}

.tts-page__cta-sub {
    margin: 0 0 0.85rem;
    font-size: 0.78rem;
    line-height: 1.5;
    opacity: 0.94;
    max-width: 22rem;
}

.tts-page__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--section-dark-bg);
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tts-page__cta-btn .fa-brands {
    font-family: "Font Awesome 6 Brands", sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
    color: #25d366;
}

.tts-page__cta-link {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    text-align: center;
    padding: 0.35rem 0.25rem;
    transition: opacity 0.2s ease;
}

.tts-page__cta-link:hover {
    opacity: 0.82;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tts-page i[class*="fa-"]:not(.fa-brands) {
    font-family: "Font Awesome 6 Free", sans-serif;
    font-weight: 900;
}
