/* ═══════════════════════════════════════════════════════════════
   content-pages.css — SEO içerik sayfaları ortak stili
   /araclar, /besinler, /saglik-rehberleri için paylaşılan tasarım dili.
   Sistem değişkenlerini (budiyet.css'deki --theme-*) miras alır.
   ═══════════════════════════════════════════════════════════════ */

/* ── Soft Hero ─────────────────────────────────────────────────
   Tam ekran hero değil, kompakt başlık şeridi. Marketplace/Blog
   pattern'ine paralel. */
.content-hero {
    position: relative;
    padding: 3rem 0 2.5rem;
    background:
        radial-gradient(circle at 15% 20%, rgba(194, 24, 91, .06), transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(233, 30, 99, .04), transparent 50%),
        linear-gradient(180deg, #fff 0%, #fff5f8 100%);
    border-bottom: 1px solid #f3e6ec;
}
.content-hero .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: var(--theme-primary-light);
    color: var(--theme-primary-dark);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.content-hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--budiyet-navy);
    letter-spacing: -.02em;
    margin-bottom: .75rem;
    line-height: 1.15;
}
.content-hero .hero-lead {
    font-size: 1.05rem;
    color: var(--budiyet-muted);
    max-width: 680px;
    line-height: 1.65;
}

/* ── Breadcrumb (soft / clean) ────────────────────────────── */
.content-breadcrumb {
    margin: 0 0 1.25rem;
    padding: 0;
    font-size: .82rem;
    color: var(--budiyet-muted);
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.content-breadcrumb a {
    color: var(--budiyet-muted);
    text-decoration: none;
    transition: color .15s;
}
.content-breadcrumb a:hover { color: var(--theme-primary); }
.content-breadcrumb li + li::before {
    content: "›";
    margin-right: 6px;
    color: #c8cdd1;
}
.content-breadcrumb .active { color: var(--budiyet-text); font-weight: 500; }

/* ── Ortak Card ──────────────────────────────────────────── */
.content-card {
    background: #fff;
    border: 1px solid #f1f3f5;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}
.content-card.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--theme-primary-light);
}
.content-card .body-pad { padding: 1.5rem; }
.content-card .body-pad-lg { padding: 2rem; }
@media (max-width: 575px) { .content-card .body-pad-lg { padding: 1.5rem; } }

/* ── Calculator Form ─────────────────────────────────────── */
.calc-form .form-label {
    font-weight: 600;
    color: var(--budiyet-text);
    font-size: .9rem;
    margin-bottom: .35rem;
}
.calc-form .form-control,
.calc-form .form-select {
    border-radius: 12px;
    border: 1.5px solid var(--budiyet-border);
    padding: .65rem .9rem;
    font-size: 1rem;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.calc-form .form-control:focus,
.calc-form .form-select:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 .2rem rgba(var(--theme-primary-rgb), .15);
    outline: none;
}
.calc-form .form-control-lg {
    padding: .85rem 1.1rem;
    font-size: 1.1rem;
}
/* Bootstrap radio button group temizle */
.calc-form .btn-check + .btn {
    border-radius: 12px;
    border: 1.5px solid var(--budiyet-border);
    background: #fff;
    color: var(--budiyet-text);
    font-weight: 500;
    padding: .65rem 1rem;
    transition: var(--transition);
}
.calc-form .btn-check:checked + .btn {
    background: var(--theme-primary);
    color: #fff;
    border-color: var(--theme-primary);
    box-shadow: 0 4px 12px rgba(var(--theme-primary-rgb), .25);
}

/* ── Primary CTA Button ──────────────────────────────────── */
.btn-content-primary {
    background: var(--theme-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: .85rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -.01em;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(var(--theme-primary-rgb), .25);
}
.btn-content-primary:hover {
    background: var(--theme-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(var(--theme-primary-rgb), .35);
}
.btn-content-primary:active { transform: translateY(0); }

/* ── Result Card ─────────────────────────────────────────── */
.result-card {
    background: linear-gradient(135deg, var(--theme-primary-light) 0%, #fff 100%);
    border: 1px solid var(--theme-primary-light);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(var(--theme-primary-rgb), .08);
}
.result-card .result-label {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--theme-primary-dark);
    font-weight: 600;
    margin: 0 0 4px;
}
.result-card .result-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--theme-primary-dark);
    line-height: 1;
    letter-spacing: -.03em;
}
.result-card .result-unit { font-size: 1rem; color: var(--budiyet-muted); font-weight: 500; }

/* ── Metric tile (mini stat) ────────────────────────────── */
.metric-tile {
    background: #fff;
    border: 1.5px solid #f1f3f5;
    border-radius: 14px;
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
}
.metric-tile.active {
    border-color: var(--theme-primary);
    background: var(--theme-primary-light);
}
.metric-tile .tile-label {
    font-size: .75rem;
    color: var(--budiyet-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 4px;
}
.metric-tile .tile-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-primary-dark);
    line-height: 1.1;
}
.metric-tile .tile-sub { font-size: .78rem; color: var(--budiyet-muted); margin-top: 2px; }

/* ── BMI / Range Gauge ──────────────────────────────────── */
.range-gauge {
    height: 14px;
    border-radius: 8px;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.1);
}
/* Marker formülü: (bmi/40)*100 — yani gauge 0-40 BMI aralığını 0-100% olarak haritalar.
   Stop'lar buna göre orantılı: 18.5/40=46.25%, 25/40=62.5%, 30/40=75%, 40/40=100%. */
.range-gauge.bmi {
    background: linear-gradient(to right,
        #60a5fa 0% 46.25%,
        #10b981 46.25% 62.5%,
        #fbbf24 62.5% 75%,
        #ef4444 75% 100%);
}
.range-gauge .marker {
    position: absolute;
    top: -5px;
    width: 4px;
    height: 24px;
    background: var(--budiyet-navy);
    border-radius: 2px;
    transition: left .5s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

/* ── Content Article (rich body) ────────────────────────── */
.content-article {
    background: #fff;
    border: 1px solid #f1f3f5;
    border-radius: var(--radius-md);
    padding: 2.25rem;
    box-shadow: var(--shadow-card);
    color: var(--budiyet-text);
    line-height: 1.75;
}
@media (max-width: 575px) { .content-article { padding: 1.5rem; } }
.content-article h2 {
    margin: 2rem 0 1rem;
    color: var(--budiyet-navy);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -.01em;
}
.content-article h2:first-child { margin-top: 0; }
.content-article h3 {
    margin: 1.5rem 0 .75rem;
    color: var(--budiyet-text);
    font-weight: 600;
    font-size: 1.15rem;
}
.content-article p { margin-bottom: 1rem; }
.content-article ul, .content-article ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.content-article li { margin-bottom: .35rem; }
.content-article strong { color: var(--budiyet-navy); font-weight: 600; }
.content-article em { color: var(--budiyet-muted); }
.content-article table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
}
.content-article table th,
.content-article table td {
    padding: .65rem .9rem;
    border-bottom: 1px solid var(--budiyet-border);
    text-align: left;
}
.content-article table th {
    background: #fafafa;
    font-weight: 600;
    color: var(--budiyet-navy);
}

/* ── Food/Guide Cards (grid) ────────────────────────────── */
.tile-grid-card {
    background: #fff;
    border: 1px solid #f1f3f5;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}
.tile-grid-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(var(--theme-primary-rgb), .12);
    border-color: var(--theme-primary-light);
    color: inherit;
}
.tile-grid-card .tile-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--theme-primary-light);
    color: var(--theme-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.tile-grid-card .tile-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--budiyet-navy);
    margin: 0 0 .5rem;
    letter-spacing: -.01em;
}
.tile-grid-card .tile-desc {
    color: var(--budiyet-muted);
    font-size: .9rem;
    line-height: 1.55;
    margin: 0 0 .85rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tile-grid-card .tile-cta {
    font-size: .85rem;
    font-weight: 600;
    color: var(--theme-primary);
}
.tile-grid-card .tile-cta i { transition: transform .2s; }
.tile-grid-card:hover .tile-cta i { transform: translateX(3px); }

/* ── Food card (calorie pill specific) ──────────────────── */
.food-tile {
    background: #fff;
    border: 1px solid #f1f3f5;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    overflow: hidden;
    transition: var(--transition);
}
.food-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--theme-primary-rgb), .1);
    border-color: var(--theme-primary-light);
    color: inherit;
}
.food-tile .food-thumb {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}
.food-tile .food-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.food-tile .food-thumb .kcal-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}
.food-tile .food-body { padding: .9rem 1.1rem 1rem; }
.food-tile .food-name {
    font-size: .98rem;
    font-weight: 700;
    color: var(--budiyet-navy);
    margin: 0;
    flex-grow: 1;
    padding-right: 8px;
}
.food-tile .kcal-pill {
    background: var(--theme-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .78rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(var(--theme-primary-rgb), .25);
}
.food-tile .food-cat {
    color: var(--budiyet-muted);
    font-size: .78rem;
    margin: 6px 0 10px;
}
.food-tile .food-macros {
    display: flex;
    gap: 10px;
    font-size: .78rem;
    color: var(--budiyet-muted);
}
.food-tile .food-macros strong { color: var(--budiyet-text); font-weight: 600; }
.food-tile .food-per { font-size: .72rem; color: #b0b6bb; margin-top: 8px; }

/* ── Category Chips ──────────────────────────────────────── */
.cat-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
}
.cat-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 500;
    text-decoration: none;
    border: 1.5px solid var(--budiyet-border);
    background: #fff;
    color: var(--budiyet-text);
    transition: var(--transition);
}
.cat-chip:hover {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
    background: var(--theme-primary-light);
}
.cat-chip.active {
    background: var(--theme-primary);
    color: #fff;
    border-color: var(--theme-primary);
    box-shadow: 0 3px 10px rgba(var(--theme-primary-rgb), .25);
}

/* ── Macro pill row (good vs avoid) ─────────────────────── */
.macro-list-box {
    padding: 1.25rem;
    border-radius: 14px;
    height: 100%;
}
.macro-list-box.good { background: #ecfdf5; }
.macro-list-box.bad  { background: #fef2f2; }
.macro-list-box .title {
    font-weight: 700;
    margin-bottom: .75rem;
    font-size: .95rem;
}
.macro-list-box.good .title { color: #065f46; }
.macro-list-box.bad  .title { color: #991b1b; }
.macro-pill {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .82rem;
    margin: 3px;
}
.macro-pill.good { background: #d1fae5; color: #065f46; }
.macro-pill.bad  { background: #fee2e2; color: #991b1b; }

/* ── FAQ Accordion (system style) ───────────────────────── */
.content-article .accordion-item,
.content-card .accordion-item {
    border: 1px solid #f1f3f5;
    border-radius: 12px !important;
    margin-bottom: 8px;
    overflow: hidden;
}
.content-article .accordion-button,
.content-card .accordion-button {
    background: #fff;
    color: var(--budiyet-navy);
    font-weight: 600;
    padding: 1rem 1.25rem;
    box-shadow: none;
}
.content-article .accordion-button:not(.collapsed),
.content-card .accordion-button:not(.collapsed) {
    background: var(--theme-primary-light);
    color: var(--theme-primary-dark);
}
.content-article .accordion-button:focus,
.content-card .accordion-button:focus {
    box-shadow: 0 0 0 .2rem rgba(var(--theme-primary-rgb), .15);
}

/* ── CTA Block (alt section) ────────────────────────────── */
.cta-block {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 12px 30px rgba(var(--theme-primary-rgb), .2);
}
.cta-block h2 { color: #fff; font-weight: 700; margin-bottom: .5rem; }
.cta-block p  { color: rgba(255,255,255,.9); margin-bottom: 1.25rem; }
.cta-block .btn-light {
    border-radius: 999px;
    padding: .7rem 1.75rem;
    font-weight: 600;
    color: var(--theme-primary-dark);
    border: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.cta-block .btn-light:hover { background: #fff; color: var(--theme-primary-dark); }

/* ── Toc / sidebar sticky ────────────────────────────────── */
.side-card {
    background: #fff;
    border: 1px solid #f1f3f5;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
}
.side-card .side-title {
    font-size: .85rem;
    font-weight: 700;
    color: var(--budiyet-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .85rem;
}
.side-card ul { list-style: none; padding: 0; margin: 0; }
.side-card ul li { margin-bottom: .55rem; }
.side-card ul li:last-child { margin-bottom: 0; }
.side-card ul a {
    color: var(--budiyet-text);
    text-decoration: none;
    font-size: .92rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    margin: 0 -8px;
    border-radius: 8px;
    transition: var(--transition);
}
.side-card ul a:hover {
    background: var(--theme-primary-light);
    color: var(--theme-primary-dark);
}
.side-card ul a i { color: var(--theme-primary); width: 18px; text-align: center; }
@media (min-width: 992px) {
    .side-card.sticky-side { position: sticky; top: 90px; }
}
