/* =================================================
   YARDIM MERKEZİ — yardim.garantiliarabam.com
   Ana sitenin dili: koyu hero + kırmızı vurgu + temiz kartlar
   (static-modern.css ile aynı palet, ölçüler yardım akışına göre)
   ================================================= */

:root {
    --yd-red: #DC1F26;
    --yd-red-dark: #B71C1C;
    --yd-red-light: #FEF2F2;
    --yd-text: #1a1a1a;
    --yd-muted: #6b7280;
    --yd-border: #E5E7EB;
    --yd-bg: #F9FAFB;
}

/* ---------- HERO + ARAMA ---------- */
.yd-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 56px 0 60px;
    position: relative;
    overflow: hidden;
}
.yd-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 25%, rgba(220, 31, 38, 0.20) 0%, transparent 52%);
    pointer-events: none;
}
.yd-hero__inner { position: relative; text-align: center; }
.yd-hero__title {
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}
.yd-hero__sub {
    font-size: 16px;
    color: rgba(255,255,255,0.72);
    margin: 0 auto 26px;
    max-width: 620px;
    line-height: 1.6;
}

/* Arama kutusu */
.yd-search { max-width: 640px; margin: 0 auto; }
.yd-search__form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 14px;
    padding: 6px 6px 6px 18px;
    box-shadow: 0 10px 34px rgba(0,0,0,0.24);
}
.yd-search__icon { color: var(--yd-muted); flex-shrink: 0; display: flex; }
.yd-search__input {
    flex: 1;
    border: 0;
    outline: 0;
    font-size: 15.5px;
    color: var(--yd-text);
    padding: 13px 12px;
    background: transparent;
    min-width: 0;
}
.yd-search__input::placeholder { color: #9ca3af; }
.yd-search__btn {
    border: 0;
    background: var(--yd-red);
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.18s ease;
    white-space: nowrap;
}
.yd-search__btn:hover { background: var(--yd-red-dark); }

/* Sık aranan kısayollar */
.yd-hero__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}
.yd-hero__tags span { font-size: 13px; color: rgba(255,255,255,0.55); margin-right: 2px; }
.yd-hero__tags a {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    padding: 5px 13px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.yd-hero__tags a:hover { background: rgba(255,255,255,0.19); border-color: rgba(255,255,255,0.3); color: #fff; }

/* ---------- GÖVDE ---------- */
.yd-body { background: var(--yd-bg); padding: 46px 0 72px; }

.yd-section__title {
    font-size: 21px;
    font-weight: 800;
    color: var(--yd-text);
    margin: 0 0 4px;
}
.yd-section__desc { font-size: 14.5px; color: var(--yd-muted); margin: 0 0 22px; }

/* Kategori kartları */
.yd-cats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.yd-cat {
    background: #fff;
    border: 1px solid var(--yd-border);
    border-radius: 15px;
    padding: 24px 22px;
    text-decoration: none;
    display: block;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.yd-cat:hover {
    border-color: rgba(220,31,38,0.35);
    box-shadow: 0 10px 26px rgba(0,0,0,0.07);
    transform: translateY(-2px);
    text-decoration: none;
}
.yd-cat__icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--yd-red-light);
    color: var(--yd-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    margin-bottom: 14px;
}
.yd-cat__title {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--yd-text);
    margin: 0 0 6px;
}
.yd-cat__desc {
    font-size: 13.8px;
    color: var(--yd-muted);
    line-height: 1.6;
    margin: 0 0 12px;
    min-height: 44px;
}
.yd-cat__count {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--yd-red);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Popüler makaleler */
.yd-popular {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 14px;
}
.yd-pop {
    background: #fff;
    border: 1px solid var(--yd-border);
    border-radius: 12px;
    padding: 16px 18px;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: border-color 0.18s ease, background 0.18s ease;
}
.yd-pop:hover { border-color: rgba(220,31,38,0.32); text-decoration: none; }
.yd-pop__ico { color: var(--yd-red); flex-shrink: 0; margin-top: 2px; opacity: 0.85; }
.yd-pop__title { font-size: 14.8px; font-weight: 600; color: var(--yd-text); margin: 0 0 3px; line-height: 1.45; }
.yd-pop__cat { font-size: 12.3px; color: var(--yd-muted); }

/* ---------- İÇ SAYFA DÜZENİ (kategori + makale) ---------- */
.yd-layout {
    display: grid;
    grid-template-columns: 268px 1fr;
    gap: 30px;
    align-items: start;
}
.yd-sidebar {
    background: #fff;
    border: 1px solid var(--yd-border);
    border-radius: 14px;
    padding: 10px;
    position: sticky;
    top: 20px;
}
.yd-sidebar__title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--yd-muted);
    padding: 10px 14px 8px;
}
.yd-sidebar__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10.5px 14px;
    border-radius: 9px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    transition: background 0.18s ease, color 0.18s ease;
}
.yd-sidebar__link:hover { background: var(--yd-bg); color: var(--yd-text); text-decoration: none; }
.yd-sidebar__link--active { background: var(--yd-red-light); color: var(--yd-red); font-weight: 600; }
.yd-sidebar__link svg { flex-shrink: 0; opacity: 0.55; }
.yd-sidebar__link--active svg { opacity: 1; }

/* İçerik kartı */
.yd-content {
    background: #fff;
    border: 1px solid var(--yd-border);
    border-radius: 16px;
    padding: 34px 38px;
}
.yd-content__title {
    font-size: 25px;
    font-weight: 800;
    color: var(--yd-text);
    margin: 0 0 8px;
    line-height: 1.3;
}
.yd-content__meta {
    font-size: 13px;
    color: var(--yd-muted);
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--yd-border);
}

/* Makale listesi (kategori sayfası) */
.yd-list { display: flex; flex-direction: column; gap: 10px; }
.yd-list__item {
    border: 1px solid var(--yd-border);
    border-radius: 12px;
    padding: 16px 18px;
    text-decoration: none;
    display: block;
    transition: border-color 0.18s ease, background 0.18s ease;
}
.yd-list__item:hover { border-color: rgba(220,31,38,0.32); background: #fffdfd; text-decoration: none; }
.yd-list__title {
    font-size: 15.5px;
    font-weight: 650;
    color: var(--yd-text);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.yd-list__title svg { color: var(--yd-red); flex-shrink: 0; opacity: 0.8; }
.yd-list__desc { font-size: 13.8px; color: var(--yd-muted); line-height: 1.6; margin: 0; }

/* Zengin metin — sp-richtext ile aynı ölçüler */
.yd-richtext { font-size: 16px; line-height: 1.82; color: #374151; }
.yd-richtext h2, .yd-richtext h3, .yd-richtext h4 {
    color: var(--yd-text);
    font-weight: 700;
    line-height: 1.35;
    margin: 1.7em 0 0.55em;
}
.yd-richtext h2 { font-size: 21px; }
.yd-richtext h3 { font-size: 18px; }
.yd-richtext h4 { font-size: 16px; }
.yd-richtext p { margin: 0 0 1.15em; }
.yd-richtext a { color: var(--yd-red); text-decoration: underline; }
.yd-richtext a:hover { color: var(--yd-red-dark); }
.yd-richtext ul, .yd-richtext ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.yd-richtext li { margin-bottom: 0.5em; }
.yd-richtext img { max-width: 100%; height: auto; border-radius: 10px; margin: 1.2em 0; }
.yd-richtext table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.yd-richtext th, .yd-richtext td { border: 1px solid var(--yd-border); padding: 9px 13px; text-align: left; }
.yd-richtext th { background: var(--yd-bg); font-weight: 600; }
.yd-richtext blockquote {
    border-left: 4px solid var(--yd-red);
    background: var(--yd-red-light);
    margin: 1.3em 0;
    padding: 12px 20px;
    border-radius: 0 8px 8px 0;
    color: #4b5563;
}
/* Adım adım anlatım — makalelerde sık kullanılıyor */
.yd-richtext ol.yd-steps { counter-reset: adim; list-style: none; padding-left: 0; }
.yd-richtext ol.yd-steps > li {
    counter-increment: adim;
    position: relative;
    padding: 0 0 0 42px;
    margin-bottom: 1em;
}
.yd-richtext ol.yd-steps > li::before {
    content: counter(adim);
    position: absolute;
    left: 0;
    top: 1px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: var(--yd-red);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Uyarı / ipucu kutuları */
.yd-not, .yd-uyari {
    border-radius: 10px;
    padding: 14px 18px;
    margin: 1.3em 0;
    font-size: 15px;
    line-height: 1.7;
}
.yd-not { background: #F0F9FF; border-left: 4px solid #0284C7; color: #0c4a6e; }
.yd-uyari { background: #FFFBEB; border-left: 4px solid #D97706; color: #78350f; }
.yd-not strong, .yd-uyari strong { display: block; margin-bottom: 3px; }

/* Makale altı gezinme */
.yd-next {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--yd-border);
}
.yd-next__title { font-size: 14px; font-weight: 700; color: var(--yd-text); margin: 0 0 12px; }
.yd-next__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

/* Yardım kutusu (iletişim) */
.yd-help {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 16px;
    padding: 30px 34px;
    color: #fff;
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.yd-help__title { font-size: 19px; font-weight: 750; margin: 0 0 5px; }
.yd-help__desc { font-size: 14.3px; color: rgba(255,255,255,0.72); margin: 0; line-height: 1.6; }
.yd-help__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.yd-help__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 14.2px;
    font-weight: 650;
    text-decoration: none;
    transition: background 0.18s ease;
    white-space: nowrap;
}
.yd-help__btn--primary { background: var(--yd-red); color: #fff; }
.yd-help__btn--primary:hover { background: var(--yd-red-dark); color: #fff; text-decoration: none; }
.yd-help__btn--ghost { background: rgba(255,255,255,0.11); color: #fff; border: 1px solid rgba(255,255,255,0.19); }
.yd-help__btn--ghost:hover { background: rgba(255,255,255,0.2); color: #fff; text-decoration: none; }

/* Breadcrumb (iç sayfa hero) */
.yd-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 13px;
    flex-wrap: wrap;
}
.yd-crumb a { color: rgba(255,255,255,0.8); text-decoration: none; }
.yd-crumb a:hover { color: #fff; }
.yd-crumb span { color: rgba(255,255,255,0.35); }
.yd-hero--inner { padding: 40px 0 44px; }
.yd-hero--inner .yd-hero__inner { text-align: left; }
.yd-hero--inner .yd-hero__title { font-size: 28px; margin-bottom: 6px; }
.yd-hero--inner .yd-hero__sub { margin: 0; max-width: 700px; font-size: 15px; }

/* Arama sonuç sayfası */
.yd-result__head { font-size: 14.5px; color: var(--yd-muted); margin: 0 0 18px; }
.yd-result__head strong { color: var(--yd-text); }
.yd-empty {
    background: #fff;
    border: 1px solid var(--yd-border);
    border-radius: 14px;
    padding: 46px 30px;
    text-align: center;
}
.yd-empty__ico { color: #d1d5db; margin-bottom: 14px; }
.yd-empty__title { font-size: 18px; font-weight: 700; color: var(--yd-text); margin: 0 0 7px; }
.yd-empty__desc { font-size: 14.5px; color: var(--yd-muted); margin: 0 0 20px; line-height: 1.65; }

/* Sayfa içi mini arama (iç sayfalarda) */
.yd-minisearch { margin-bottom: 22px; }
.yd-minisearch__form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--yd-border);
    border-radius: 12px;
    padding: 4px 4px 4px 15px;
}
.yd-minisearch__form:focus-within { border-color: rgba(220,31,38,0.4); }
.yd-minisearch__input {
    flex: 1;
    border: 0;
    outline: 0;
    font-size: 14.5px;
    padding: 10px;
    background: transparent;
    min-width: 0;
}
.yd-minisearch__btn {
    border: 0;
    background: var(--yd-red);
    color: #fff;
    font-size: 13.5px;
    font-weight: 650;
    padding: 9px 18px;
    border-radius: 9px;
    cursor: pointer;
}
.yd-minisearch__btn:hover { background: var(--yd-red-dark); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    .yd-cats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
    .yd-layout { grid-template-columns: 1fr; }
    .yd-sidebar { position: static; }
    .yd-content { padding: 26px 20px; }
    .yd-popular { grid-template-columns: 1fr; }
    .yd-next__grid { grid-template-columns: 1fr; }
    .yd-hero__title { font-size: 27px; }
    .yd-hero { padding: 44px 0 46px; }
    .yd-help { flex-direction: column; align-items: flex-start; padding: 26px 24px; }
}
@media (max-width: 600px) {
    .yd-cats { grid-template-columns: 1fr; }
    .yd-cat__desc { min-height: 0; }
    .yd-search__form { flex-wrap: wrap; padding: 10px; gap: 8px; }
    .yd-search__icon { display: none; }
    .yd-search__input { width: 100%; flex: 1 1 100%; padding: 10px 6px; }
    .yd-search__btn { width: 100%; }
    .yd-hero__title { font-size: 23px; }
    .yd-hero__sub { font-size: 14.5px; }
    .yd-help__actions { width: 100%; }
    .yd-help__btn { flex: 1; justify-content: center; }
}
