/* ==========================================================
   Bileşenler: butonlar, etiketler, kartlar, formlar, uyarılar,
   sayfa başlıkları, yazı detayı ve yardımcı parçalar
   ========================================================== */

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
    font-weight: 800; font-size: .95rem; text-decoration: none; white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand-grad); color: #fff; box-shadow: 0 8px 18px rgba(214, 36, 110, .26); }
.btn--primary:hover { color: #fff; box-shadow: 0 12px 24px rgba(248, 96, 111, .36); }
.btn--secondary { background: var(--blue-500); color: #fff; }
.btn--secondary:hover { background: var(--blue-600); color: #fff; }
.btn--soft { background: var(--tone-pink-bg); color: var(--tone-pink-fg); border: 2px solid #ffc7da; }
.btn--soft:hover { background: #ffd3e2; color: var(--tone-pink-fg); border-color: #ff9dbf; }
.btn--soft .icon { stroke-width: 2; }
.btn--soft[aria-pressed="true"] { background: var(--brand-grad); color: #fff; border-color: transparent; }
.btn--soft-blue { background: var(--tone-blue-bg); color: var(--tone-blue-fg); border-color: #b9d6ff; }
.btn--soft-blue:hover { background: #c9e0ff; color: var(--tone-blue-fg); border-color: #8dbcff; }
.btn--soft[aria-pressed="true"] .icon { fill: currentColor; }
.btn--lg { height: 54px; padding: 0 34px; font-size: 1.05rem; }
.btn--sm { height: 38px; padding: 0 18px; font-size: .86rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .9rem; color: var(--pink-500); white-space: nowrap; }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Etiket (chip) ---------- */
.chip {
    display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
    background: var(--tone-fg, var(--pink-500)); color: #fff; font-size: .78rem; font-weight: 800; line-height: 1.4;
}
.chip:hover { color: #fff; filter: brightness(1.05); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* ---------- Kategori şeridi ---------- */
.category-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px; }
.category-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 8px 4px; border-radius: var(--radius); color: var(--ink); }
.category-tile__icon {
    width: 82px; height: 82px; border-radius: 26px; display: grid; place-items: center; margin-bottom: 8px;
    background: var(--tone-bg); color: var(--tone-fg);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 6px 14px rgba(44, 49, 80, .06);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.category-tile__icon .icon { width: 40px; height: 40px; stroke-width: 1.7; }
.category-tile__name { font-weight: 800; font-size: .92rem; line-height: 1.25; }
.category-tile__sub { font-size: .76rem; color: var(--muted); }
.category-tile:hover { color: var(--ink); }
.category-tile:hover .category-tile__icon { transform: translateY(-5px) rotate(-3deg); box-shadow: 0 14px 24px rgba(44, 49, 80, .12); }

/* ---------- Öne çıkan kartlar ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.promo-card {
    position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; min-height: 200px;
    background: linear-gradient(135deg, var(--tone-bg), #fff 130%); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.promo-card__body { padding: 24px 0 24px 22px; align-self: center; position: relative; z-index: 1; }
.promo-card__title { font-size: 1.45rem; line-height: 1.1; margin-bottom: 8px; color: var(--tone-fg); filter: brightness(.82); }
.promo-card__title a { color: inherit; }
.promo-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.promo-card__text { font-size: .88rem; color: var(--ink-soft); margin-bottom: 14px; }
.promo-card__btn { background: var(--tone-fg); color: #fff; }
.promo-card__img { width: 100%; height: 100%; max-height: 210px; object-fit: cover; object-position: center; border-radius: 0; }

/* ---------- Yazı kartı ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

.article-card {
    position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
    border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.article-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--cream); }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.article-card:hover .article-card__media img { transform: scale(1.05); }
.article-card__top { position: relative; }
.article-card__chip { position: absolute; left: 14px; bottom: 12px; z-index: 3; }
.article-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.article-card__title { font-family: var(--font-body); font-weight: 800; font-size: 1.05rem; line-height: 1.35; margin-bottom: 8px; }
.article-card__title a { color: var(--ink); }
.article-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.article-card:hover .article-card__title a { color: var(--pink-600); }
.article-card__excerpt { color: var(--ink-soft); font-size: .9rem; margin-bottom: 14px; }
.article-card__meta { margin: auto 0 0; display: flex; align-items: center; gap: 6px; color: var(--meta); font-size: .8rem; font-weight: 600; flex-wrap: wrap; }
.article-card__meta .icon { color: var(--meta); opacity: .9; }

.fav-btn {
    position: absolute; top: 10px; right: 10px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255, 255, 255, .95); color: var(--tone-pink-fg); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(31, 42, 90, .14);
    transition: transform .18s var(--ease), background .18s, color .18s;
}
.fav-btn .icon { width: 20px; height: 20px; stroke-width: 2; }
.fav-btn:hover { transform: scale(1.08); background: #fff; }
.fav-btn:focus-visible { outline: 3px solid #ffb3cc; outline-offset: 2px; }
.fav-btn[aria-pressed="true"] { background: var(--brand-grad); color: #fff; }
.fav-btn[aria-pressed="true"] .icon { fill: currentColor; }

/* ---------- Uzman kartı ---------- */
.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.expert-card {
    display: flex; gap: 14px; padding: 16px; background: linear-gradient(160deg, #f4f8ff, #fff 70%);
    border: 1px solid #e6eefa; border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.expert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.expert-card__photo { width: 84px; height: 96px; object-fit: cover; border-radius: 14px; background: var(--blue-50); flex-shrink: 0; }
.expert-card__body { min-width: 0; display: flex; flex-direction: column; }
.expert-card__specialty { margin: 0; font-size: .78rem; font-weight: 800; color: var(--ink); }
.expert-card__name { font-family: var(--font-body); font-size: .92rem; font-weight: 800; margin: 0 0 6px; }
.expert-card__name a { color: var(--blue-600); }
.expert-card__quote { font-size: .82rem; color: var(--ink-soft); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.expert-card .link-arrow { margin-top: auto; font-size: .82rem; }

/* ---------- Kapanış banner ---------- */
.cta-banner {
    position: relative; display: grid; grid-template-columns: 200px 1fr 320px; align-items: center; gap: 12px;
    min-height: 160px; border-radius: var(--radius-lg); overflow: hidden;
    background: linear-gradient(100deg, #fff1ea 0%, #fff8f5 45%, #fbeef0 100%);
}
.cta-banner__img { height: 100%; max-height: 170px; width: 100%; object-fit: contain; }
.cta-banner__img--left { object-position: left bottom; align-self: end; }
.cta-banner__img--right { object-position: right center; }
.cta-banner__title { color: var(--blue-500); font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); margin-bottom: 8px; }
.cta-banner__text p { margin: 0; color: var(--ink-soft); }
.cta-banner__text { padding: 24px 0; }

/* ---------- İç sayfa başlığı ---------- */
.page-header { background: linear-gradient(120deg, var(--tone-bg, var(--pink-50)), #fff 85%); padding: 26px 0 34px; border-bottom: 1px solid var(--line); }
.page-header__row { display: flex; gap: 18px; align-items: center; }
.page-header__icon { width: 70px; height: 70px; border-radius: 22px; background: #fff; color: var(--tone-fg); display: grid; place-items: center; box-shadow: var(--shadow-sm); flex-shrink: 0; }
.page-header__icon .icon { width: 36px; height: 36px; stroke-width: 2; }
.page-header__icon--art { background: var(--tone-bg); box-shadow: 0 0 0 4px #fff, var(--shadow-sm); }
.page-header__icon--art img { width: 52px; height: 52px; }
.page-header__title { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); margin: 0 0 4px; }
.page-header__text { margin: 0; color: var(--ink-soft); max-width: 46em; }

.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--pink-500); }

.result-count { color: var(--muted); font-weight: 700; font-size: .9rem; }

/* ---------- Yazı detayı ---------- */
.article__header { background: linear-gradient(180deg, var(--tone-bg), #fff); padding: 26px 0 30px; }
.article__title { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); margin: 14px 0 12px; }
.article__lead { font-size: 1.15rem; color: var(--ink-soft); }
.article__meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--meta); font-size: .88rem; font-weight: 600; }
.article__meta li { display: flex; align-items: center; gap: 6px; }
.article__cover { margin: 0 0 30px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--cream); }
.article__cover img { width: 100%; aspect-ratio: 15 / 8; object-fit: cover; }
.article__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; max-width: 1100px; padding-bottom: 40px; }
.article__sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 140px; align-self: start; }
.article__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.prose { font-size: 1.07rem; line-height: 1.8; }
.prose h2 { font-size: 1.6rem; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.25rem; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--pink-500); }
.prose blockquote { margin: 1.5em 0; padding: 16px 22px; border-left: 4px solid var(--pink-500); background: var(--pink-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--blue-50); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.side-box__title { font-size: 1.1rem; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: .92rem; }
.toc a { color: var(--ink-soft); }
.toc a:hover { color: var(--pink-500); }
.author-box { display: flex; gap: 14px; align-items: center; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--blue-50); }
.author-box p { margin: 0; }
.author-box__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; }
.author-box__name { font-weight: 800; }
.author-box__spec { font-size: .85rem; color: var(--ink-soft); }

.disclaimer { display: flex; gap: 12px; align-items: flex-start; background: var(--tone-mint-bg); color: #1f6b54; border-radius: var(--radius); padding: 14px 18px; margin-top: 28px; font-size: .93rem; line-height: 1.55; }
.disclaimer .icon { flex-shrink: 0; margin-top: 2px; }
.disclaimer p { margin: 0; }
.disclaimer--top { margin: 0 0 24px; }
.section .disclaimer--top { max-width: 760px; }
.maintenance-bar { background: #2c3150; color: #fff; text-align: center; font-size: .88rem; font-weight: 700; padding: 8px 16px; }
.maintenance-bar a { color: #ffb3bd; margin-left: 8px; text-decoration: underline; }
.emergency-note { font-size: .9rem; color: var(--ink-soft); margin: 8px 0 0; }

.expert-profile { display: flex; gap: 26px; align-items: center; }
.expert-profile__photo { width: 140px; height: 140px; border-radius: 32px; object-fit: cover; background: #fff; box-shadow: var(--shadow); flex-shrink: 0; }

/* ---------- Formlar ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: start; }
.contact-info { padding: 10px 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 800; font-size: .9rem; margin-bottom: 6px; }
.field input:not([type=checkbox]), .field textarea, .field select {
    width: 100%; border: 1px solid #e3dde6; border-radius: 12px; padding: 12px 14px; background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px var(--blue-100); }
.field [aria-invalid="true"] { border-color: var(--tone-red-fg); }
.field__error { color: var(--tone-red-fg); font-size: .84rem; margin: 6px 0 0; font-weight: 700; }
.field--check { display: flex; gap: 10px; align-items: flex-start; }
.field--check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--pink-500); flex-shrink: 0; }
.field--check label { font-weight: 600; }

.search-inline { display: flex; gap: 10px; max-width: 620px; margin: 0 auto 30px; }
.search-inline input { flex: 1; min-width: 0; height: 50px; border: 1px solid #e3dde6; border-radius: 999px; padding: 0 20px; }
.search-inline input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px var(--blue-100); }

/* ---------- Uyarılar ---------- */
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 700; font-size: .93rem; }
.alert--success { background: var(--tone-mint-bg); color: #1f6b54; }
.alert--error { background: var(--tone-red-bg); color: #b33131; }
.alert--info { background: var(--blue-50); color: var(--blue-600); }

/* ---------- Sayfalama ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.pagination__item { min-width: 42px; height: 42px; padding: 0 10px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; border: 1px solid var(--line); color: var(--ink); background: #fff; }
.pagination__item:hover { border-color: var(--pink-500); color: var(--pink-500); }
.pagination__item.is-active { background: var(--pink-500); border-color: var(--pink-500); color: #fff; }

/* ---------- Boş durum ---------- */
.empty-state { text-align: center; padding: 40px 20px; color: var(--ink-soft); max-width: 560px; margin: 0 auto; }
.empty-state .icon--xl { margin: 0 auto 14px; color: var(--pink-500); stroke-width: 1.4; }
.empty-state h1, .empty-state h2 { font-size: 1.5rem; }
.empty-state--page { max-width: 640px; }
.error-code { font-family: var(--font-display); font-size: 6rem; font-weight: 800; line-height: 1; margin: 0; background: linear-gradient(135deg, var(--pink-500), var(--blue-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Arama önerileri ---------- */
.search-suggest {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; list-style: none; margin: 0; padding: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.search-suggest a { display: flex; flex-direction: column; padding: 9px 12px; border-radius: 10px; color: var(--ink); font-weight: 700; font-size: .92rem; }
.search-suggest a small { color: var(--muted); font-weight: 600; font-size: .76rem; }
.search-suggest a:hover, .search-suggest [aria-selected="true"] a { background: var(--pink-50); color: var(--pink-600); }
.search-suggest__all a { color: var(--blue-600); flex-direction: row; align-items: center; gap: 6px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.search-suggest__empty { padding: 10px 12px; color: var(--muted); font-size: .9rem; }

/* ---------- Bildirim ---------- */
.toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90;
    background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: .9rem;
    box-shadow: var(--shadow-lg); animation: toast-in .3s var(--ease);
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- Yorumlar ---------- */
.comments { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.6; }
.comments__title { font-size: 1.5rem; margin: 0 0 18px; }
.comments__title span { color: var(--muted); font-size: 1.1rem; }
.comments__empty { color: var(--ink-soft); }
.comment-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 14px; }
.comment-list li::marker { content: none; }
.comment { display: flex; gap: 14px; padding: 16px 18px; background: var(--cream); border-radius: var(--radius); }
.comment__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--pink-100); color: var(--pink-600); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.comment__meta { margin: 0 0 4px; font-size: .88rem; color: var(--muted); }
.comment__meta strong { color: var(--ink); }
.comment__text { margin: 0; }
.comment-form h3 { font-size: 1.25rem; margin: 0 0 4px; }
.hint-text { color: var(--muted); font-size: .88rem; margin-bottom: 16px; }
.muted-note { color: var(--muted); font-size: .88rem; margin-top: 30px; }
