/* ============================================================
   YZ Merkezi — Rehberler Modülü CSS
   Standart: Emil Kowalski & Apple Tasarım Mühendisliği
   Kural: Sıfır Renk Literali (Yalnızca CSS tokenları)
   ============================================================ */

/* ------------------------------------------------------------
   0. Kategori Navigasyon Hapları (Pills)
   ------------------------------------------------------------ */
.gd-category-nav,
.blog-category-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 16px;
    margin-bottom: var(--space-4);
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
    -webkit-overflow-scrolling: touch;
}

.gd-cat-pill,
.blog-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--duration-fast) var(--ease-out);
}

.gd-cat-pill:hover,
.blog-cat-pill:hover {
    color: var(--color-text);
    border-color: var(--color-border-strong);
    background: var(--color-surface-subtle);
}

.gd-cat-pill.active,
.blog-cat-pill.active {
    color: var(--color-on-brand);
    background: var(--color-brand);
    border-color: var(--color-brand);
    box-shadow: var(--shadow-sm);
}

.gd-cat-pill__count,
.blog-cat-pill__count {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: var(--radius-pill);
    background: var(--color-surface-subtle);
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
    transition: all var(--duration-fast) var(--ease-out);
}

.gd-cat-pill.active .gd-cat-pill__count,
.blog-cat-pill.active .blog-cat-pill__count {
    background: var(--color-brand-strong);
    color: var(--color-on-brand);
}

/* ------------------------------------------------------------
   1. Rehber Kartları (Grid & Liste)
   ------------------------------------------------------------ */
.gd-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) var(--ease-out);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.gd-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-brand-border);
}

.gd-card__media {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-surface-subtle);
    position: relative;
}

.gd-card__media img {
    transition: transform var(--duration-normal) var(--ease-out);
}

.gd-card:hover .gd-card__media img {
    transform: scale(1.03);
}

.gd-card__body {
    padding: var(--space-4);
}

.gd-card__title {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    line-height: var(--line-height-normal);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--space-2);
}

.gd-card__meta {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: auto;
    padding-top: var(--space-2);
}

/* ------------------------------------------------------------
   2. Profesyonel & Minimalist Rozetler (Sıfır Emoji)
   ------------------------------------------------------------ */
.gd-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-sm);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.gd-badge--beginner {
    color: var(--color-success);
    background: var(--color-success-subtle);
    border: 1px solid var(--color-success-border-soft);
}

.gd-badge--intermediate {
    color: var(--color-warning);
    background: var(--color-warning-soft);
    border: 1px solid var(--color-warning-border);
}

.gd-badge--advanced {
    color: var(--color-danger);
    background: var(--color-danger-soft);
    border: 1px solid var(--color-danger-border);
}

.gd-badge--creative {
    color: var(--color-brand);
    background: var(--color-brand-soft);
    border: 1px solid var(--color-brand-border-soft);
}

.gd-badge--pro {
    color: var(--color-text);
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
}

.gd-badge--cat {
    color: var(--color-text-secondary);
    background: var(--color-surface-subtle);
    border: 1px solid var(--color-border);
}

/* ------------------------------------------------------------
   3. Öne Çıkan Rehber Kartı
   ------------------------------------------------------------ */
.gd-featured-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.gd-featured-card__media {
    background: var(--color-surface-muted);
    position: relative;
    overflow: hidden;
}

.gd-featured-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--color-surface);
    color: var(--color-brand-strong);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    z-index: 2;
}

.gd-video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--color-surface);
    opacity: 0.85;
    transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
    pointer-events: none;
    filter: drop-shadow(0 2px 8px var(--color-mask-soft));
}

.gd-card__media:hover .gd-video-overlay,
.gd-featured-card__media:hover .gd-video-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
}

/* ------------------------------------------------------------
   4. Filtre Alanı
   ------------------------------------------------------------ */
.gd-filter-pills form {
    background: var(--color-surface);
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
}

.gd-filter-label {
    cursor: pointer;
    margin: 0;
}

.gd-filter-label input[type="radio"] {
    display: none;
}

.gd-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    background: var(--color-surface-subtle);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    transition: all var(--duration-normal) var(--ease-out);
}

.gd-filter-label input[type="radio"]:checked + .gd-filter-btn {
    background: var(--color-brand);
    color: var(--color-on-brand);
    border-color: var(--color-brand-strong);
    box-shadow: var(--shadow-xs);
}

/* ------------------------------------------------------------
   5. Rehber Detay — Hero & Adım Blokları
   ------------------------------------------------------------ */
.gd-detail-hero {
    margin-bottom: var(--space-4);
}

.gd-detail-hero .page-header-component__title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
}

.gd-detail-hero .page-header-component__desc {
    font-size: var(--font-size-md);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-secondary);
    max-width: 860px;
    margin-bottom: var(--space-3);
}

.gd-hero__meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-2);
}

.gd-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.gd-meta-divider {
    color: var(--color-border-strong);
    opacity: 0.7;
}

/* Adım Blokları */
.gd-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.gd-step {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-brand);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) var(--ease-out);
}

.gd-step:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-brand-border);
    border-left-color: var(--color-brand);
}

.gd-step__header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--color-border);
}

.gd-step__number {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--color-brand);
    color: var(--color-on-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-md);
    flex-shrink: 0;
}

.gd-step__title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin: 0;
}

.gd-step__content {
    font-size: var(--font-size-sm);
    color: var(--color-text);
    line-height: var(--line-height-relaxed);
}

.gd-step__content p:last-child {
    margin-bottom: 0;
}

.gd-step__image {
    margin-top: var(--space-3);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.gd-step__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* İpucu ve Uyarı Kutuları */
.gd-step__tip {
    margin-top: var(--space-3);
    background: var(--color-brand-faint);
    border: 1px solid var(--color-brand-border-soft);
    border-left: 3px solid var(--color-brand);
    border-radius: var(--radius-md);
    padding: var(--space-3);
}

.gd-step__tip-header {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    color: var(--color-brand-strong);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.gd-step__tip-body {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    line-height: var(--line-height-normal);
    margin: 0;
}

.gd-step__warning {
    margin-top: var(--space-3);
    background: var(--color-warning-soft);
    border: 1px solid var(--color-warning-border);
    border-left: 3px solid var(--color-warning);
    border-radius: var(--radius-md);
    padding: var(--space-3);
}

.gd-step__warning-header {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    color: var(--color-warning);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.gd-step__warning-body {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    line-height: var(--line-height-normal);
    margin: 0;
}

/* ------------------------------------------------------------
   6. İçindekiler Tablosu (Sticky TOC)
   ------------------------------------------------------------ */
.gd-toc {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-xs);
}

.gd-toc__title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gd-toc__title i {
    color: var(--color-brand);
}

.gd-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gd-toc__link {
    display: block;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
}

.gd-toc__link:hover,
.gd-toc__link.active {
    background: var(--color-brand-faint);
    color: var(--color-brand-strong);
    font-weight: var(--font-weight-semibold);
}

/* ------------------------------------------------------------
   7. İlgili Rehberler Kartları
   ------------------------------------------------------------ */
.gd-related-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    transition: transform var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
}

.gd-related-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-brand-border);
    box-shadow: var(--shadow-sm);
}

.gd-related-card__media {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-surface-subtle);
}

.gd-related-card__body {
    padding: var(--space-3);
}

.gd-related-card__title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
/* ------------------------------------------------------------
   8. Rehber Sonucu ve Çıktı Alanı (Result & Outcome)
   ------------------------------------------------------------ */
.gd-result {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-success);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 100px;
}

@media (min-width: 768px) {
    .gd-result {
        padding: var(--space-5);
    }
}

.gd-result__header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border);
}

.gd-result__badge {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--color-success-subtle);
    color: var(--color-success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    flex-shrink: 0;
}

.gd-result__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin: 0;
}

.gd-result__subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-top: var(--space-1);
    margin-bottom: 0;
}

.gd-result__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.gd-result__media {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.gd-result__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

.gd-result__content {
    font-size: var(--font-size-sm);
    color: var(--color-text);
    line-height: var(--line-height-relaxed);
}

.gd-result__content p:last-child {
    margin-bottom: 0;
}

.gd-toc__link--result {
    font-weight: var(--font-weight-medium);
}

.gd-toc__link--result.active {
    color: var(--color-success) !important;
    border-color: var(--color-success) !important;
}

/* ------------------------------------------------------------
   9. Responsive & Reduced Motion
   ------------------------------------------------------------ */
@media (max-width: 992px) {
    .gd-hero__content {
        padding: var(--space-4);
    }
}

@media (max-width: 576px) {
    .gd-filter-pills form {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gd-card,
    .gd-featured-card,
    .gd-step,
    .gd-related-card,
    .gd-video-overlay {
        transition: none !important;
        transform: none !important;
    }
}
