/* Rehber listesi ve makale sayfaları */

/* ── Rehberler index hero ── */
.guides-index {
    padding-bottom: 3rem;
}

.guides-index__hero {
    position: relative;
    margin: 0 0 2.5rem;
    padding: 2.25rem 2rem;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-large);
    background:
        radial-gradient(ellipse 70% 80% at 50% 0%, color-mix(in srgb, #5b8def 14%, transparent), transparent 65%),
        linear-gradient(160deg, color-mix(in srgb, var(--color-surface) 85%, #5b8def 15%), var(--color-surface));
    overflow: hidden;
}

.guides-index__hero::after {
    content: "";
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background: color-mix(in srgb, #5b8def 10%, transparent);
    transform: rotate(12deg);
    pointer-events: none;
}

.guides-index__eyebrow {
    display: inline-block;
    margin-bottom: 0.65rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5b8def;
    background: color-mix(in srgb, #5b8def 12%, transparent);
    border: 1px solid color-mix(in srgb, #5b8def 28%, var(--color-border));
    border-radius: 999px;
}

.guides-index__title {
    margin-bottom: 0.65rem;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.guides-index__subtitle {
    max-width: 640px;
    margin: 0 auto;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

/* ── Makale sayfası ── */
.guide-page {
    padding-bottom: 3rem;
}

.guide-hero {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-large);
    background:
        radial-gradient(ellipse 80% 100% at 0% 0%, color-mix(in srgb, #5b8def 12%, transparent), transparent 55%),
        var(--color-surface);
    box-shadow: var(--shadow-small);
}

.guide-hero__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    font-size: 1.85rem;
    line-height: 1;
    background: color-mix(in srgb, #5b8def 16%, var(--color-surface-secondary));
    border: 1px solid color-mix(in srgb, #5b8def 30%, var(--color-border));
    border-radius: 16px;
    box-shadow: var(--btn-shadow);
}

.guide-hero__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.25;
}

.guide-hero__lead {
    margin: 0 0 0.85rem;
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.guide-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.guide-hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.guide-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 2rem;
    align-items: start;
}

/* ── Makale gövdesi ── */
.guide-prose {
    min-width: 0;
    padding: 1.75rem 1.6rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-small);
}

.guide-prose > :first-child {
    margin-top: 0;
}

.guide-prose h2 {
    margin-top: 2.25rem;
    margin-bottom: 0.85rem;
    padding-top: 0.5rem;
    font-size: 1.35rem;
    line-height: 1.35;
    scroll-margin-top: 1.5rem;
}

.guide-prose h2:first-child {
    margin-top: 0;
    padding-top: 0;
}

.guide-prose h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    scroll-margin-top: 1.5rem;
}

.guide-prose p,
.guide-prose ul,
.guide-prose ol {
    margin-bottom: 1rem;
    line-height: 1.65;
}

.guide-prose li {
    margin-bottom: 0.4rem;
}

.guide-prose a {
    color: #5b8def;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.guide-prose a:hover {
    color: color-mix(in srgb, #5b8def 80%, var(--color-primary));
}

.guide-prose code {
    padding: 0.12rem 0.4rem;
    font-size: 0.88em;
    font-family: Consolas, "Courier New", monospace;
    background: var(--color-surface-secondary);
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.guide-prose pre,
.guide-code {
    margin: 1rem 0 1.25rem;
    padding: 1rem 1.1rem;
    overflow-x: auto;
    font-size: 0.88rem;
    line-height: 1.55;
    font-family: Consolas, "Courier New", monospace;
    color: #e6edf3;
    background: #0d1117;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-medium);
}

.guide-prose pre code,
.guide-code code {
    padding: 0;
    background: none;
    border: none;
    font-size: inherit;
    color: inherit;
}

/* Bilgi kutuları */
.guide-callout {
    margin: 1.25rem 0;
    padding: 1rem 1.1rem 1rem 1.15rem;
    border-radius: var(--border-radius-medium);
    border-left: 4px solid;
    line-height: 1.55;
}

.guide-callout p:last-child {
    margin-bottom: 0;
}

.guide-callout--tip {
    background: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface-secondary));
    border-left-color: var(--color-primary);
}

.guide-callout--warn {
    background: color-mix(in srgb, var(--color-warning) 12%, var(--color-surface-secondary));
    border-left-color: var(--color-warning);
}

.guide-callout--info {
    background: color-mix(in srgb, #5b8def 12%, var(--color-surface-secondary));
    border-left-color: #5b8def;
}

.guide-callout__title {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 700;
    font-size: 0.92rem;
}

/* Adımlar */
.guide-steps {
    counter-reset: guide-step;
    list-style: none;
    margin: 1rem 0 1.25rem;
    padding: 0;
}

.guide-steps > li {
    position: relative;
    counter-increment: guide-step;
    margin-bottom: 1rem;
    padding-left: 2.75rem;
}

.guide-steps > li::before {
    content: counter(guide-step);
    position: absolute;
    left: 0;
    top: 0.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, #5b8def, #3d6fc4);
    border-radius: 999px;
    box-shadow: var(--btn-shadow);
}

/* Karşılaştırma tablosu */
.guide-table-wrap {
    margin: 1rem 0 1.25rem;
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-medium);
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.guide-table th,
.guide-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.guide-table th {
    background: var(--color-surface-secondary);
    font-weight: 700;
}

.guide-table tr:last-child td {
    border-bottom: none;
}

/* ── Kenar çubuğu ── */
.guide-sidebar {
    position: sticky;
    top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.guide-toc {
    padding: 1.1rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-small);
}

.guide-toc__title {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.guide-toc__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.guide-toc__list li {
    margin-bottom: 0.35rem;
}

.guide-toc__link {
    display: block;
    padding: 0.35rem 0.5rem;
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--color-text-muted);
    text-decoration: none;
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition:
        color var(--transition-fast),
        background var(--transition-fast),
        border-color var(--transition-fast);
}

.guide-toc__link:hover {
    color: var(--color-text);
    background: var(--color-surface-secondary);
}

.guide-toc__link.is-active {
    color: #5b8def;
    font-weight: 600;
    border-left-color: #5b8def;
    background: color-mix(in srgb, #5b8def 10%, transparent);
}

.guide-related {
    padding: 1.15rem 1rem;
    background: linear-gradient(
        160deg,
        color-mix(in srgb, var(--color-primary) 12%, var(--color-surface)),
        var(--color-surface)
    );
    border: 1px solid color-mix(in srgb, var(--color-primary) 30%, var(--color-border));
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-small);
}

.guide-related__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.guide-related__title {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    line-height: 1.35;
}

.guide-related__text {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.guide-related__btn {
    width: 100%;
    justify-content: center;
}

.guide-sidebar__back .btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 960px) {
    .guide-page__layout {
        grid-template-columns: 1fr;
    }

    .guide-sidebar {
        position: static;
        order: -1;
    }

    .guide-toc__list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .guide-toc__list li {
        margin-bottom: 0;
    }

    .guide-toc__link {
        border: 1px solid var(--color-border);
        border-left: 1px solid var(--color-border);
    }

    .guide-toc__link.is-active {
        border-color: color-mix(in srgb, #5b8def 50%, var(--color-border));
    }

    .guide-sidebar__back {
        display: none;
    }
}

@media (max-width: 600px) {
    .guide-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .guide-hero__meta {
        justify-content: center;
    }

    .guide-prose {
        padding: 1.25rem 1.1rem;
    }
}

/* ── Basit rehber (panelden eklenen, CSS bilgisi gerekmez) ── */
.guide-simple {
    min-width: 0;
    padding: 1.75rem 1.6rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-small);
    line-height: 1.65;
}

.guide-simple > :first-child {
    margin-top: 0;
}

.guide-simple h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.35rem;
    font-size: 1.3rem;
    line-height: 1.35;
    border-bottom: 1px solid var(--color-border);
    scroll-margin-top: 1.5rem;
}

.guide-simple h2:first-child {
    margin-top: 0;
}

.guide-simple h3 {
    margin-top: 1.35rem;
    margin-bottom: 0.55rem;
    font-size: 1.08rem;
    scroll-margin-top: 1.5rem;
}

.guide-simple p,
.guide-simple ul,
.guide-simple ol {
    margin-bottom: 1rem;
}

.guide-simple li {
    margin-bottom: 0.35rem;
}

.guide-simple a {
    color: #5b8def;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.guide-simple code {
    padding: 0.1rem 0.35rem;
    font-size: 0.88em;
    font-family: Consolas, "Courier New", monospace;
    background: var(--color-surface-secondary);
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.guide-simple-code {
    margin: 1rem 0 1.15rem;
    padding: 1rem 1.1rem;
    overflow-x: auto;
    font-size: 0.88rem;
    line-height: 1.55;
    font-family: Consolas, "Courier New", monospace;
    color: #e6edf3;
    background: #0d1117;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-medium);
}

.guide-simple-code code {
    padding: 0;
    background: none;
    border: none;
    color: inherit;
}

.guide-simple blockquote {
    margin: 1.1rem 0;
    padding: 0.85rem 1rem;
    border-radius: var(--border-radius-medium);
    border-left: 4px solid;
    font-size: 0.95rem;
}

.guide-simple-tip {
    background: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface-secondary));
    border-left-color: var(--color-primary);
}

.guide-simple-warn {
    background: color-mix(in srgb, var(--color-warning) 12%, var(--color-surface-secondary));
    border-left-color: var(--color-warning);
}

.guide-simple-note {
    background: color-mix(in srgb, #5b8def 10%, var(--color-surface-secondary));
    border-left-color: #5b8def;
}

.guide-simple-list {
    padding-left: 1.35rem;
}

.guide-simple-table-wrap {
    margin: 1rem 0 1.25rem;
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-medium);
}

.guide-simple table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.guide-simple th,
.guide-simple td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.guide-simple th {
    background: var(--color-surface-secondary);
    font-weight: 700;
}

.guide-simple tr:last-child td {
    border-bottom: none;
}

@media (max-width: 600px) {
    .guide-simple {
        padding: 1.25rem 1.1rem;
    }
}
