/* ============================================================
   Hurdafi.com - Tasarım Sistemi
   ============================================================ */

:root {
    --ink: #0e1512;
    --ink-soft: #4b5563;
    --ink-faint: #8a948f;
    --bg: #f6f8f7;
    --card: #ffffff;
    --line: #e5eae7;
    --green: #0e9f6e;
    --green-dark: #0b7a55;
    --green-tint: #e6f6ef;
    --dark: #0c1f16;
    --up: #0e9f6e;
    --down: #dc2626;
    --accent: #0e9f6e;
    --radius: 18px;
    --shadow: 0 10px 40px rgba(12, 31, 22, .06);
    --shadow-lg: 0 24px 70px rgba(12, 31, 22, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 15.5px;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
small { font-weight: 500; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

/* ---------- Header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 66px; }

.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -.03em; white-space: nowrap; }
.logo-mark {
    width: 34px; height: 34px; border-radius: 10px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff; font-size: 17px; flex: none;
}
.logo-dot { color: var(--green); }

.nav { display: flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 10px; border-radius: 9px; white-space: nowrap; transition: .15s; }
.nav-ico { margin-right: 4px; font-size: 13px; }
.nav a:hover { color: var(--ink); background: var(--green-tint); }
.nav a.active { color: var(--green-dark); background: var(--green-tint); }
.nav-cta { background: var(--dark); color: #fff !important; padding: 9px 15px !important; border-radius: 10px; }
.nav-cta:hover { background: var(--green-dark) !important; }

/* ---------- Ticker ---------- */

.ticker { background: var(--dark); color: #cfe3d8; font-size: 12.5px; }
.ticker-inner { display: flex; align-items: center; gap: 26px; height: 40px; overflow-x: auto; scrollbar-width: none; }
.ticker-inner::-webkit-scrollbar { display: none; }
.tick { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.tick-label { color: #7fa392; font-weight: 600; text-transform: uppercase; font-size: 10.5px; letter-spacing: .06em; }
.tick-value { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.tick-chg { font-weight: 700; font-variant-numeric: tabular-nums; }
.tick-chg.up { color: #4ade80; }
.tick-chg.down { color: #f87171; }
.tick-live { color: #4ade80; font-weight: 600; }
.tick-time { margin-left: auto; color: #7fa392; }

/* ---------- Hero ---------- */

.hero { padding: 74px 0 46px; text-align: center; background: radial-gradient(900px 420px at 50% -10%, #e4f2ea, transparent); }
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px;
    background: var(--green-tint); border: 1px solid #cdebdd;
    color: var(--green-dark); font-size: 12.5px; font-weight: 700;
    margin-bottom: 22px;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.hero h1 { font-size: clamp(38px, 6vw, 62px); font-weight: 900; letter-spacing: -.045em; margin: 0 auto 18px; max-width: 850px; }
.hero h1 span { color: var(--green-dark); }
.hero-sub { max-width: 680px; margin: 0 auto 26px; color: var(--ink-soft); font-size: 17px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 22px; border-radius: 12px; border: 0;
    font-weight: 700; font-size: 14.5px; transition: .18s;
}
.btn-primary { background: var(--dark); color: #fff; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-dark); }
.btn-sm { padding: 9px 15px; font-size: 13px; border-radius: 10px; }

/* ---------- Bölümler ---------- */

.section { padding: 34px 0 46px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 34px); font-weight: 800; margin: 0; }
.section-head p { margin: 8px 0 0; color: var(--ink-soft); max-width: 640px; }

.eyebrow {
    color: var(--green-dark); font-size: 11.5px; font-weight: 800;
    letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px;
}
.eyebrow-light { color: #6ee7b7; }

/* ---------- Malzeme kartları ---------- */

.material-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.material-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow);
    display: flex; flex-direction: column; gap: 14px;
    transition: transform .18s, box-shadow .18s;
    border-top: 3px solid var(--accent);
}
.material-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.material-card-head { display: flex; align-items: center; gap: 12px; }
.material-card-head h3, .material-card-head .h3 { margin: 0; font-size: 18px; font-weight: 800; }
.material-card-head a:hover { color: var(--accent); }
.material-bench { font-size: 11.5px; color: var(--ink-faint); font-weight: 600; }

.symbol-chip {
    flex: none; min-width: 44px; height: 44px; padding: 0 8px;
    border-radius: 12px; display: grid; place-items: center;
    background: color-mix(in srgb, var(--accent) 12%, #fff);
    color: var(--accent); font-weight: 800; font-size: 15px; letter-spacing: -.02em;
}
.symbol-chip-lg { min-width: 58px; height: 58px; font-size: 19px; border-radius: 15px; background: color-mix(in srgb, var(--accent) 14%, #fff); }

.chg-pill { margin-left: auto; font-size: 12px; font-weight: 800; padding: 5px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.chg-pill.up { background: #e7f8f0; color: var(--up); }
.chg-pill.down { background: #fdecec; color: var(--down); }
.chg-inline.up { color: var(--up); font-weight: 700; }
.chg-inline.down { color: var(--down); font-weight: 700; }

.mini-price-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mini-price-list li {
    display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
    padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px;
}
.mini-price-list li:last-child { border-bottom: 0; }
.mini-price-list span { color: var(--ink-soft); font-weight: 500; }
.mini-price-list strong { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini-price-list small { color: var(--ink-faint); font-weight: 600; font-size: 11px; }

.card-link { font-size: 13.5px; font-weight: 700; color: var(--accent); margin-top: auto; }
.card-link:hover { text-decoration: underline; }
.card-actions { display: flex; gap: 10px; margin-top: auto; }
.material-summary { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* ---------- Sayfa başlıkları ---------- */

.page-head {
    padding: 44px 0 30px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--bg)), var(--bg));
    border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 900; letter-spacing: -.035em; }
.page-sub { color: var(--ink-soft); font-size: 16px; max-width: 760px; margin-bottom: 4px; }
.page-head-flex { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.page-head .hero-actions { justify-content: flex-start; margin-top: 18px; }

.breadcrumb { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--green-dark); text-decoration: underline; }
.breadcrumb strong { color: var(--ink-soft); }

/* ---------- Fiyat tablosu ---------- */

.table-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.table-scroll { overflow-x: auto; }

.price-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.price-table th {
    text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ink-faint); padding: 14px 18px; border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--accent) 4%, #fff);
}
.price-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: color-mix(in srgb, var(--accent) 3%, #fff); }
.price-table td strong { display: block; font-size: 15px; font-weight: 700; }
.price-table td small { display: block; color: var(--ink-faint); font-size: 12px; margin-top: 3px; max-width: 420px; }
.price-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-table .strong-col { font-weight: 800; font-size: 15.5px; color: var(--ink); }
.price-table td.strong-col { background: color-mix(in srgb, var(--accent) 5%, #fff); }
.price-table .unit-col { color: var(--ink-faint); font-size: 12px; }

.table-foot { padding: 13px 18px; font-size: 12px; color: var(--ink-faint); background: #fafbfa; border-top: 1px solid var(--line); }

/* ---------- Model kutusu ---------- */

.model-box { background: var(--dark); color: #e6efe9; border-radius: 22px; padding: clamp(24px, 4vw, 40px); }
.model-box h2 { color: #fff; font-size: clamp(24px, 3vw, 30px); }
.model-box h3 { color: #fff; font-size: 16.5px; margin-top: 0; }
.model-text { color: #a8c0b4; font-size: 14.5px; }
.model-text strong { color: #fff; font-weight: 700; }
.model-text a { color: #6ee7b7; }

.formula {
    margin: 18px 0; padding: 16px 18px; border-radius: 13px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 13.5px; color: #7ef0bb; overflow-x: auto; line-height: 1.7;
}
.formula strong { color: #fff; }

.model-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 8px; }

/* Petrokimya endeks tablosu (koyu model kutusu içinde) */
.petchem-table { width: 100%; border-collapse: collapse; min-width: 560px; margin-top: 6px; font-size: 13.5px; }
.petchem-table th {
    text-align: left; font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
    color: #7fa392; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.petchem-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .07); color: #cfe3d8; }
.petchem-table tbody tr:last-child td { border-bottom: 0; }
.petchem-table td strong { color: #fff; font-weight: 700; }
.petchem-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pt-up { color: #4ade80; font-weight: 700; }
.pt-down { color: #f87171; font-weight: 700; }

.basket-tag { color: var(--accent) !important; font-weight: 600; }
.source-badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.source-badges span {
    font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
}

/* ---------- Hesaplama aracı ---------- */

.tool-section { padding: 34px 0 46px; }
.tool {
    max-width: 880px; margin: auto; background: var(--card);
    border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 4vw, 32px);
    box-shadow: var(--shadow-lg);
}
.tool-header h2 { font-size: 26px; font-weight: 800; }
.tool-header p { color: var(--ink-soft); margin-bottom: 20px; }

.form-grid { display: grid; grid-template-columns: 1fr 1.3fr .8fr; gap: 13px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
select, input {
    width: 100%; border: 1.5px solid var(--line); background: #fafbfa;
    border-radius: 11px; padding: 12px 13px; outline: none; transition: .15s;
    color: var(--ink);
}
select:focus, input:focus { border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(14, 159, 110, .12); }

.calculate {
    width: 100%; margin-top: 15px; border: 0; border-radius: 12px; padding: 15px;
    background: var(--dark); color: #fff; font-weight: 800; font-size: 15px; transition: .18s;
}
.calculate:hover { background: var(--green-dark); transform: translateY(-1px); }

.result { display: none; margin-top: 16px; padding: 20px 22px; border-radius: 15px; background: var(--green-tint); border: 1px solid #cdebdd; }
.result.show { display: block; animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.result-name { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.result-price { font-size: 36px; font-weight: 900; letter-spacing: -.03em; margin-top: 3px; font-variant-numeric: tabular-nums; }
.result-total { color: var(--ink); font-weight: 600; margin-top: 3px; }
.result-range { color: var(--ink-soft); font-size: 13px; margin-top: 3px; }
.tool-note { font-size: 12.5px; color: var(--ink-faint); margin: 14px 0 0; }

/* ---------- İçerik ---------- */

.content { max-width: 780px; }
.content h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; margin-top: 1.4em; }
.content h2:first-child { margin-top: 0; }
.content h3 { font-size: 19px; margin-top: 1.5em; }
.content p { color: var(--ink-soft); }
.content a { color: var(--green-dark); font-weight: 600; }
.content a:hover { text-decoration: underline; }

.check-list { padding-left: 0; list-style: none; color: var(--ink-soft); }
.check-list li { padding: 8px 0 8px 30px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 8px; width: 21px; height: 21px; border-radius: 7px; background: var(--green-tint); color: var(--green-dark); font-weight: 800; font-size: 12px; display: grid; place-items: center; }

.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.sidebar { position: sticky; top: 122px; display: flex; flex-direction: column; gap: 16px; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border-top: 3px solid var(--accent); }
.side-card h3 { font-size: 15px; margin-bottom: 10px; }
.side-note { font-size: 12.5px; color: var(--ink-faint); margin: 12px 0 0; }
.side-link { display: block; padding: 7px 0; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); border-bottom: 1px dashed var(--line); }
.side-link:last-child { border-bottom: 0; }
.side-link:hover { color: var(--green-dark); }

/* Sınıf listesi (malzeme sayfası) */
.class-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.class-item { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 13px; padding: 15px 18px; }
.class-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.class-item h3 { font-size: 15.5px; margin: 0; }
.class-item p { margin: 5px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.class-price { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--accent); font-size: 16px; }
.class-price small { color: var(--ink-faint); font-size: 11px; }

/* ---------- SSS ---------- */

.faq-wrap { max-width: 820px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.faq-item summary {
    padding: 16px 20px; font-weight: 700; font-size: 15px; cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; font-weight: 600; color: var(--green-dark); transition: .2s; flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 20px 16px; margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- Footer ---------- */

.footer { background: var(--dark); color: #a8c0b4; margin-top: 30px; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; padding: 46px 0 30px; }
.footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; }
.footer a { display: block; padding: 4px 0; color: #a8c0b4; }
.footer a:hover { color: #6ee7b7; }
.footer-brand p { margin-top: 14px; }
.footer-note { font-size: 12px; color: #7fa392; }
.footer-note strong { color: #cfe3d8; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 0 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12.5px; color: #7fa392; }
.footer-bottom a { display: inline; padding: 0; color: #a8c0b4; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: #6ee7b7; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
    .material-grid { grid-template-columns: repeat(2, 1fr); }
    .two-col { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .nav a:not(.nav-cta) { padding: 8px 7px; }
}

@media (max-width: 640px) {
    body { font-size: 15px; }
    .container { width: calc(100% - 28px); }
    .header-inner { height: 58px; }
    .logo-text { font-size: 17px; }
    .nav { font-size: 12.5px; }
    .hero { padding: 46px 0 34px; }
    .material-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .model-cols { grid-template-columns: 1fr; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .page-head-flex { flex-direction: row; }
    .result-price { font-size: 30px; }
}
