/* Merak Sözlüğü liste sayfası (/sozluk) — anasayfadaki sözlük bölümüyle aynı adaçayı tonu */
.gl-page {
    --gl: #6b9080;
    --gl-2: #4f7a68;
    --gl-ink: #8fb5a5;
    --gl-soft: rgba(107, 144, 128, 0.16);
}
[data-theme="light"] .gl-page {
    --gl-ink: #4a7262;
    --gl-soft: rgba(107, 144, 128, 0.14);
}

/* ---------- Üst bölüm ---------- */
.gl-hero {
    position: relative;
    padding: 0.75rem 0 2.5rem;
    overflow: hidden;
}
.gl-hero::before {
    content: '';
    position: absolute;
    inset: -30% -10% 0;
    background:
        radial-gradient(38rem 22rem at 12% 30%, rgba(107, 144, 128, 0.2), transparent 62%),
        radial-gradient(28rem 18rem at 88% 15%, rgba(232, 163, 23, 0.08), transparent 60%);
    pointer-events: none;
}
.gl-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}
.gl-hero-grid--solo { grid-template-columns: minmax(0, 1fr); }
.gl-hero-grid--solo .gl-hero-main { max-width: 46rem; }

.gl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gl-ink);
}
.gl-eyebrow-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--gl);
    box-shadow: 0 0 0 4px var(--gl-soft);
}
.gl-title {
    margin: 0.6rem 0 0.8rem;
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 5.2vw, 3.7rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.gl-title em { font-style: italic; font-weight: 600; color: var(--gl-ink); }
.gl-lead {
    max-width: 36rem;
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.gl-search {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    max-width: 36rem;
    padding: 0.35rem 0.35rem 0.35rem 1.15rem;
    border: 1px solid var(--border-card);
    border-radius: 999px;
    background: var(--bg-card);
    box-shadow: 0 14px 34px -24px rgba(0, 0, 0, 0.7);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.gl-search:focus-within {
    border-color: var(--gl);
    box-shadow: 0 0 0 4px var(--gl-soft), 0 14px 34px -24px rgba(0, 0, 0, 0.7);
}
.gl-search > i { color: var(--text-muted); flex-shrink: 0; }
.gl-search-input {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: 1rem;
    outline: none;
}
.gl-search-input::placeholder { color: var(--text-muted); }
.gl-search-btn {
    flex-shrink: 0;
    padding: 0.7rem 1.4rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gl), var(--gl-2));
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}
.gl-search-btn:hover { filter: brightness(1.1); }
.gl-search-btn:active { transform: scale(0.97); }
.gl-search-btn:focus-visible { outline: 2px solid var(--gl-ink); outline-offset: 3px; }
.gl-search-clear {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
}
.gl-search-clear:hover { color: var(--gl-ink); }

.gl-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.35rem 0 0;
    padding: 0;
    list-style: none;
}
.gl-stats li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg-card) 80%, transparent);
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.gl-stats strong { font-family: var(--font-mono); color: var(--text-primary); }
.gl-stats i { color: var(--gl-ink); }

/* Günün kavramı */
.gl-tod {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-height: 16rem;
    padding: 1.6rem 1.6rem 1.5rem;
    overflow: hidden;
    isolation: isolate;
    border-radius: 1.4rem;
    background: linear-gradient(150deg, #5f8474 0%, #3e5a4f 58%, #2d4239 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 28px 54px -30px rgba(0, 0, 0, 0.75);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gl-tod:hover { transform: translateY(-4px); box-shadow: 0 34px 60px -30px rgba(0, 0, 0, 0.8); color: #fff; }
.gl-tod:focus-visible { outline: 2px solid var(--gl-ink); outline-offset: 4px; }
.gl-tod-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.gl-tod-badge i { color: #fcd34d; }
.gl-tod-letter {
    position: absolute;
    z-index: -1;
    right: -0.4rem;
    bottom: -3rem;
    font-family: var(--font-display);
    font-size: 13rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}
.gl-tod-term { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; line-height: 1.15; }
.gl-tod-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.86);
}
.gl-tod-more { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: auto; padding-top: 0.4rem; font-weight: 700; }
.gl-tod-more i { transition: transform 0.25s ease; }
.gl-tod:hover .gl-tod-more i { transform: translateX(4px); }

/* ---------- Harf şeridi (kaydırırken üstte kalır) ---------- */
.gl-alpha {
    position: sticky;
    top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    z-index: 20;
    padding: 0.3rem 0 0.45rem;
    border-block: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-primary) 86%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.gl-alpha-track {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
    mask-image: linear-gradient(90deg, #000 92%, transparent);
    /* Sayı rozetleri harf kutusunun üstüne taşar; kaydırma alanı onları kesmesin. */
    padding: 0.5rem 0.5rem 0.2rem 0.1rem;
}
.gl-alpha-track::-webkit-scrollbar { display: none; }
.gl-alpha-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 0.6rem;
    border: 1px solid var(--border-card);
    border-radius: 0.8rem;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.gl-alpha-link--all { padding: 0 0.95rem; font-family: var(--font-main); font-size: 0.85rem; }
.gl-alpha-count {
    position: absolute;
    top: -0.35rem;
    right: -0.3rem;
    min-width: 1.05rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.56rem;
    font-weight: 600;
    line-height: 1rem;
    text-align: center;
}
.gl-alpha-link:hover { color: var(--text-primary); border-color: var(--gl); transform: translateY(-2px); }
.gl-alpha-link.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--gl), var(--gl-2));
    color: #fff;
    box-shadow: 0 8px 18px -10px rgba(79, 122, 104, 0.9);
}
.gl-alpha-link.is-active .gl-alpha-count { background: #fff; border-color: #fff; color: var(--gl-2); }
.gl-alpha-link:focus-visible { outline: 2px solid var(--gl-ink); outline-offset: 2px; }

/* ---------- Terim ızgarası ---------- */
.gl-list-section { padding: 2rem 0 3.5rem; }
.gl-list-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4rem 1.5rem;
    margin-bottom: 1.25rem;
}
.gl-list-title { margin: 0; font-family: var(--font-display); font-size: 1.6rem; color: var(--text-primary); }
.gl-list-meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }

.gl-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.gl-divider {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 0.75rem 0 0.1rem;
}
.gl-divider:first-child { margin-top: 0; }
.gl-divider span {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.75rem;
    background: var(--gl-soft);
    color: var(--gl-ink);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
}
.gl-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.gl-card { display: flex; min-width: 0; }
.gl-card-link {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
    padding: 1.25rem 1.25rem 1.1rem;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid var(--border-card);
    border-radius: 1.1rem;
    background: var(--bg-card);
    color: inherit;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.gl-card-link:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--gl) 60%, var(--border-card));
    box-shadow: 0 18px 34px -26px rgba(0, 0, 0, 0.75);
}
.gl-card-link:focus-visible { outline: 2px solid var(--gl-ink); outline-offset: 3px; }
.gl-card-letter {
    position: absolute;
    z-index: -1;
    top: -1.4rem;
    right: -0.4rem;
    font-family: var(--font-display);
    font-size: 6.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--gl-soft);
    transition: color 0.25s ease, transform 0.35s ease;
    pointer-events: none;
}
.gl-card-link:hover .gl-card-letter { color: color-mix(in srgb, var(--gl) 30%, transparent); transform: rotate(-6deg) scale(1.05); }
.gl-card-term {
    margin: 0;
    padding-right: 2.5rem;
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}
.gl-card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-secondary);
}
.gl-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}
.gl-card-more { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-main); font-size: 0.82rem; font-weight: 700; color: var(--gl-ink); }
.gl-card-more i { font-size: 0.8em; transition: transform 0.25s ease; }
.gl-card-link:hover .gl-card-more i { transform: translateX(3px); }

/* ---------- Duyarlı ---------- */
@media (max-width: 1024px) {
    .gl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .gl-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
    .gl-tod { min-height: 0; }
}
@media (max-width: 600px) {
    .gl-hero { padding-bottom: 1.75rem; }
    .gl-lead { font-size: 0.98rem; }
    .gl-search { padding-left: 0.95rem; }
    .gl-search-btn { padding: 0.65rem 1.05rem; }
    .gl-grid { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
    .gl-list-section { padding-top: 1.5rem; }
    .gl-tod-letter { font-size: 10rem; }
}
@media (prefers-reduced-motion: reduce) {
    .gl-tod,
    .gl-card-link,
    .gl-card-letter,
    .gl-alpha-link { transition: none; }
}
