/* Hytale üretim tarifleri aracı: /araclar/hytale-uretim ve eşya sayfaları.
   Minecraft üretim masasının (og-minecraft.css) ikizi; Hytale'in mavi-altın arayüz tonları.
   Base = LIGHT (site varsayılanı data-theme="light"); dark override hemen altında.
   Tarif kartının oyun paneli (lacivert zemin, gözler) iki temada da koyudur: oyundaki gibi. */

.hy-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 56px;
    --hy-accent: #2f66c9;          /* Hytale arayüz mavisi, açık zeminde okunur ton */
    --hy-accent-soft: rgba(47, 102, 201, .10);
    --hy-gold: #a8730b;            /* altın vurgu: açık zeminde okunur koyu ton */
    --hy-card: #ffffff;
    --hy-bg: rgba(0, 0, 0, .025);
    --hy-border: rgba(0, 0, 0, .10);
    --hy-text: rgba(18, 24, 38, .95);
    --hy-muted: rgba(18, 24, 38, .62);
    --hy-panel: #1b2337;           /* tarif kartı gövdesi */
    --hy-panel-border: #2d3a5c;
    --hy-panel-text: #e9eefb;
    --hy-panel-muted: #a9b5d1;
    --hy-slot: #26314d;
    --hy-slot-border: #3a4a73;
    --hy-tip-bg: #22262f;
    --hy-tip-text: #ffffff;
    --hy-warn: #b45309;
    --hy-warn-soft: rgba(180, 83, 9, .10);
    color: var(--hy-text);
}

[data-theme="dark"] .hy-page {
    --hy-accent: #7aa7ff;
    --hy-accent-soft: rgba(122, 167, 255, .14);
    --hy-gold: #f2c14e;
    --hy-card: rgba(255, 255, 255, .05);
    --hy-bg: rgba(255, 255, 255, .03);
    --hy-border: rgba(255, 255, 255, .12);
    --hy-text: rgba(255, 255, 255, .95);
    --hy-muted: rgba(255, 255, 255, .64);
    --hy-panel: #141b2c;
    --hy-panel-border: #2a3655;
    --hy-tip-bg: #f2f3f5;
    --hy-tip-text: #14171d;
    --hy-warn: #f6ad55;
    --hy-warn-soft: rgba(246, 173, 85, .14);
}

/* ⚠️ site.css'teki genel gece-modu kuralı
   ([data-theme="dark"] a:not(.btn):not(.badge):not(.nav-link):not(.dropdown-item):not(.og-buy-btn))
   aracın bütün bağlantılarını mercan kırmızısına çeviriyor; özgüllük yarışıyla kazanılmıyor,
   !important şart (Minecraft aracındaki aynı tuzak, bkz. og-minecraft.css başı). */
.hy-page a.hy-cta { color: #fff !important; }
.hy-page a.hy-tile,
.hy-page .hy-mats a,
.hy-page .hy-linkrow a,
.hy-page a.hy-bench-card,
.hy-page a.hy-link-card,
.hy-page a.hy-link-card .hy-link-title { color: var(--hy-text) !important; }
.hy-page .hy-crumbs a,
.hy-page a.hy-link-card .hy-link-sub { color: var(--hy-muted) !important; }
.hy-page a.hy-link-card .hy-link-label,
.hy-page a.hy-link-card .hy-link-go,
.hy-page .hy-source a,
.hy-page .hy-give a { color: var(--hy-accent) !important; }
.hy-page .hy-card-title a { color: var(--hy-panel-text) !important; }

.hy-page a.hy-tile:hover,
.hy-page .hy-mats a:hover,
.hy-page .hy-linkrow a:hover,
.hy-page .hy-crumbs a:hover { color: var(--hy-accent) !important; }
/* Kart başlığı her temada koyu panelin üstünde: altın vurgu orada okunur. */
.hy-page .hy-card-title a:hover { color: #f2c14e !important; }

/* ---------------------------------------------------------------- başlık, kırıntı */

.hy-crumbs { font-size: .85rem; color: var(--hy-muted); margin-bottom: 16px; }
.hy-crumbs a { text-decoration: none; }
.hy-crumb-sep { margin: 0 6px; opacity: .6; }
.hy-crumb-current { color: var(--hy-text); font-weight: 600; }

.hy-head { margin-bottom: 20px; }
.hy-head h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; margin: 0 0 10px; }
.hy-head p { color: var(--hy-muted); line-height: 1.65; margin: 0; max-width: 72ch; }
.hy-head-meta { margin: 10px 0; font-size: .82rem; color: var(--hy-muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hy-head-item { display: flex; gap: 18px; align-items: flex-start; }
.hy-head-icon {
    flex: 0 0 auto; width: 88px; height: 88px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: var(--hy-panel); border: 2px solid var(--hy-panel-border);
}
.hy-head-icon img { width: 64px; height: 64px; object-fit: contain; }
/* Giriş (spot): H1'in altındaki tek cümlelik doğrudan cevap; gövde metninden belirgin. */
.hy-head p.hy-spot { color: var(--hy-text); font-size: 1.05rem; line-height: 1.6; margin: 0 0 4px; }
.hy-head p.hy-hint { font-size: .84rem; margin-top: 4px; }

.hy-badge {
    display: inline-block; background: var(--hy-accent-soft); color: var(--hy-accent);
    border-radius: 999px; padding: 3px 10px; font-size: .78rem; font-weight: 700;
}
.hy-pill {
    display: inline-flex; align-items: center; gap: 4px;
    border: 1px solid var(--hy-border); border-radius: 999px; padding: 2px 9px;
    font-size: .76rem; font-weight: 600; color: var(--hy-muted); background: var(--hy-card);
}
.hy-pill-warn { border-color: var(--hy-warn); color: var(--hy-warn); background: var(--hy-warn-soft); }
.hy-tr { font-size: .78rem; color: var(--hy-muted); font-weight: 600; margin-left: 6px; }

/* Kalite renkleri (oyundaki çerçeve renkleri) */
.hy-q-common { --hy-q: #9aa3ad; }
.hy-q-uncommon { --hy-q: #4caf50; }
.hy-q-rare { --hy-q: #3d8bfd; }
.hy-q-epic { --hy-q: #a855f7; }
.hy-q-legendary { --hy-q: #f59e0b; }
.hy-head-icon[class*="hy-q-"] { border-color: var(--hy-q); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hy-q) 22%, transparent); }
.hy-pill.hy-q[class*="hy-q-"] { border-color: var(--hy-q); color: var(--hy-q); }

/* Kaynak notu: verinin sürümü ve kaynağı (her sayfada) */
.hy-source {
    background: var(--hy-warn-soft); border: 1px solid var(--hy-border); border-left: 3px solid var(--hy-warn);
    border-radius: 8px; padding: 11px 14px; font-size: .86rem; color: var(--hy-muted); line-height: 1.6; margin: 0 0 18px;
}
.hy-source b { color: var(--hy-text); }

/* ---------------------------------------------------------------- tarif kartı */

.hy-card {
    background: var(--hy-panel); border: 1px solid var(--hy-panel-border); border-radius: 14px;
    color: var(--hy-panel-text); overflow: visible;
}
.hy-card-head {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    border-bottom: 1px solid var(--hy-panel-border);
}
.hy-bench-ic { width: 40px; height: 40px; object-fit: contain; flex: 0 0 40px; }
.hy-bench-ic-pocket { font-size: 1.6rem; display: inline-flex; align-items: center; justify-content: center; }
.hy-card-bench { min-width: 0; }
.hy-card-title { font-weight: 800; font-size: 1rem; }
.hy-card-title a { text-decoration: none; }
.hy-card .hy-tr { color: var(--hy-panel-muted); }
.hy-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.hy-card .hy-pill { background: rgba(255, 255, 255, .06); border-color: var(--hy-panel-border); color: var(--hy-panel-muted); }
.hy-card .hy-pill-warn { border-color: #f6ad55; color: #f6ad55; background: rgba(246, 173, 85, .10); }

.hy-card-body {
    display: flex; align-items: center; gap: 18px; padding: 16px; flex-wrap: wrap;
}
.hy-ins { display: flex; flex-wrap: wrap; gap: 12px; }
.hy-outs { display: flex; flex-wrap: wrap; gap: 12px; }
.hy-arrow { font-size: 1.8rem; color: var(--hy-panel-muted); line-height: 1; }

.hy-ing { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 76px; }
.hy-ing-name {
    font-size: .72rem; line-height: 1.2; text-align: center; color: var(--hy-panel-muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Kartın dışında (yükseltme, söküm bölümleri) isim sayfa renginde. */
.hy-section .hy-ing-name { color: var(--hy-muted); }
.hy-section .hy-card .hy-ing-name { color: var(--hy-panel-muted); }

.hy-slot {
    position: relative; width: 60px; height: 60px; border-radius: 9px;
    background: var(--hy-slot); border: 1px solid var(--hy-slot-border);
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35);
}
.hy-slot img { width: 48px; height: 48px; object-fit: contain; }
.hy-slot-link { text-decoration: none; }
.hy-slot-link:hover { border-color: var(--hy-gold); box-shadow: 0 0 0 2px var(--hy-gold); }
.hy-slot-link:focus-visible { outline: 2px solid var(--hy-gold); outline-offset: 2px; }
.hy-qty {
    position: absolute; right: 3px; bottom: 1px; font-size: .82rem; font-weight: 800;
    color: #fff; text-shadow: 1px 1px 0 #000, -1px 1px 0 #000;
}
/* Kaynak türü gözü ("herhangi biri"): köşede altın nokta. ::before kullanılır, ::after balonun. */
.hy-slot-any::before {
    content: ""; position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%;
    background: var(--hy-gold); box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .55); z-index: 2; pointer-events: none;
}
.hy-slot[data-tip]:hover::after {
    content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    background: var(--hy-tip-bg); color: var(--hy-tip-text); font-size: .78rem; font-weight: 600; line-height: 1.35;
    white-space: nowrap; padding: 6px 10px; border-radius: 7px; z-index: 20; pointer-events: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
@media (max-width: 560px) {
    .hy-slot[data-tip]:hover::after { white-space: normal; width: max-content; max-width: 170px; text-align: center; }
}

/* ---------------------------------------------------------------- hub sahnesi */

.hy-stage { background: var(--hy-bg); border: 1px solid var(--hy-border); border-radius: 16px; padding: 16px; }
.hy-stage[data-loading="true"] { opacity: .6; }
.hy-stage-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.hy-stage-head img { width: 48px; height: 48px; object-fit: contain; }
.hy-stage-name { font-weight: 800; font-size: 1.1rem; }
.hy-stage-tr { font-size: .82rem; color: var(--hy-muted); }
.hy-stage-head .hy-cta { margin-left: auto; }
#hyStageCards { display: flex; flex-direction: column; gap: 12px; }

.hy-cta {
    display: inline-block; background: var(--hy-accent); color: #fff; border-radius: 10px;
    padding: 9px 16px; font-weight: 700; text-decoration: none; font-size: .9rem;
}
.hy-cta:hover { opacity: .92; }

.hy-note {
    background: var(--hy-accent-soft); border: 1px solid var(--hy-border); border-left: 3px solid var(--hy-accent);
    border-radius: 8px; padding: 12px 14px; font-size: .88rem; color: var(--hy-muted); margin-top: 14px;
}

/* ---------------------------------------------------------------- arama + liste */

.hy-search-wrap { margin: 24px 0 12px; }
.hy-search {
    width: 100%; padding: 13px 16px; font-size: 1rem; border: 1px solid var(--hy-border); border-radius: 12px;
    background: var(--hy-card); color: var(--hy-text);
}
.hy-search:focus { outline: none; border-color: var(--hy-accent); box-shadow: 0 0 0 3px var(--hy-accent-soft); }

.hy-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.hy-chip {
    border: 1px solid var(--hy-border); background: transparent; color: var(--hy-text);
    border-radius: 999px; padding: 7px 14px; font-size: .86rem; font-weight: 600; cursor: pointer;
}
.hy-chip:hover { border-color: var(--hy-accent); }
.hy-chip[aria-pressed="true"] { background: var(--hy-accent); border-color: var(--hy-accent); color: #fff; }
.hy-chip-static {
    display: inline-flex; border: 1px solid var(--hy-border); background: var(--hy-card);
    border-radius: 999px; padding: 6px 13px; font-size: .86rem; font-weight: 600;
}

.hy-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.hy-tile {
    display: flex; align-items: center; gap: 10px; background: var(--hy-card); border: 1px solid var(--hy-border);
    border-radius: 10px; padding: 8px 10px; text-decoration: none; transition: border-color .15s, transform .1s;
}
.hy-tile:hover { border-color: var(--hy-accent); transform: translateY(-1px); }
.hy-tile img { width: 32px; height: 32px; object-fit: contain; flex: 0 0 32px; }
.hy-tile-text { display: flex; flex-direction: column; min-width: 0; }
.hy-tile-name { font-size: .86rem; font-weight: 600; line-height: 1.25; }
.hy-tile-tr { font-size: .74rem; color: var(--hy-muted); line-height: 1.2; }
.hy-empty { color: var(--hy-muted); padding: 18px 4px; }
.hy-more { text-align: center; margin-top: 16px; }

/* ---------------------------------------------------------------- bölümler */

.hy-section { margin-top: 38px; }
.hy-section h2 { font-size: 1.25rem; font-weight: 800; margin: 0 0 12px; }
.hy-section h3 { font-size: 1rem; font-weight: 700; margin: 18px 0 8px; }
.hy-sub { color: var(--hy-muted); font-size: .9rem; margin: 0 0 12px; line-height: 1.6; }

.hy-recipe-block { margin-bottom: 26px; }
.hy-recipe-block > h2 { font-size: 1.1rem; font-weight: 800; margin: 0 0 10px; }
.hy-recipe-block > h3 { font-size: 1rem; font-weight: 700; margin: 16px 0 8px; }

.hy-bench-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.hy-bench-card {
    display: flex; align-items: center; gap: 12px; background: var(--hy-card); border: 1px solid var(--hy-border);
    border-radius: 12px; padding: 12px 14px; text-decoration: none; transition: border-color .15s, transform .1s;
}
a.hy-bench-card:hover { border-color: var(--hy-accent); transform: translateY(-1px); }
.hy-bench-card img { width: 40px; height: 40px; object-fit: contain; }
.hy-bench-text { display: flex; flex-direction: column; min-width: 0; }
.hy-bench-name { font-weight: 700; font-size: .95rem; }
.hy-bench-tr { font-size: .78rem; color: var(--hy-muted); }
.hy-bench-count { font-size: .76rem; color: var(--hy-accent); font-weight: 700; margin-top: 2px; }

.hy-prose { line-height: 1.75; }
.hy-prose p { margin: 0 0 14px; }
.hy-prose p:last-child { margin-bottom: 0; }

/* .hy-page öneki şart: site.css "[data-theme=dark] blockquote" kuralı kenarı mercana boyuyor. */
.hy-page .hy-quote {
    margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid var(--hy-gold); background: var(--hy-bg);
    border-radius: 8px; font-style: italic; color: var(--hy-text);
}
/* Komutla almak: eşya kimliği + /give (hile arşivine köprü) */
.hy-give {
    margin: 16px 0 0; padding: 12px 14px; border: 1px dashed var(--hy-border); border-radius: 8px;
    background: var(--hy-accent-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
}
.hy-give-label { flex-basis: 100%; font-size: .72rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--hy-muted); }
.hy-give code {
    font-family: Consolas, "Courier New", monospace; color: var(--hy-text); background: var(--hy-card);
    border: 1px solid var(--hy-border); border-radius: 6px; padding: 1px 6px; font-size: .86rem;
}
.hy-give .hy-give-code { font-size: .95rem; padding: 4px 9px; user-select: all; word-break: break-all; }
.hy-give-note { font-size: .86rem; color: var(--hy-muted); line-height: 1.6; }
.hy-quote-label { display: block; font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--hy-muted); margin-bottom: 4px; }

.hy-mats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.hy-mats li { display: flex; align-items: center; gap: 10px; font-size: .95rem; flex-wrap: wrap; }
.hy-mats img { width: 32px; height: 32px; object-fit: contain; }
.hy-mats b { min-width: 38px; }
.hy-mats a { text-decoration: none; border-bottom: 1px solid var(--hy-border); }
.hy-mat-res { color: var(--hy-gold); font-weight: 600; }

.hy-linkrow { display: flex; flex-wrap: wrap; gap: 8px; }
.hy-linkrow a {
    display: inline-flex; align-items: center; gap: 7px; background: var(--hy-card); border: 1px solid var(--hy-border);
    border-radius: 999px; padding: 5px 12px; font-size: .86rem; font-weight: 600; text-decoration: none;
}
.hy-linkrow a:hover { border-color: var(--hy-accent); }
.hy-linkrow img { width: 24px; height: 24px; object-fit: contain; }

.hy-upgrades { display: grid; gap: 12px; }
.hy-upgrade { background: var(--hy-card); border: 1px solid var(--hy-border); border-radius: 12px; padding: 12px 14px; }
.hy-upgrade-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.hy-upgrade .hy-ing-name { color: var(--hy-muted); }

.hy-faq details {
    border: 1px solid var(--hy-border); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: var(--hy-card);
}
.hy-faq summary { cursor: pointer; font-weight: 700; }
.hy-faq p { margin: 10px 0 0; color: var(--hy-muted); line-height: 1.7; }

/* Köprü kartı (rehber, diğer araç) */
.hy-link-card {
    display: flex; align-items: center; gap: 14px; margin: 22px 0 0; padding: 14px 16px;
    background: var(--hy-card); border: 1px solid var(--hy-border); border-left: 3px solid var(--hy-accent);
    border-radius: 12px; text-decoration: none; transition: border-color .15s, transform .1s;
}
.hy-link-card:hover { border-color: var(--hy-accent); transform: translateY(-1px); }
.hy-link-icon { font-size: 1.6rem; flex: 0 0 auto; line-height: 1; }
.hy-link-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hy-link-label { font-size: .7rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.hy-link-title { font-weight: 700; font-size: .98rem; line-height: 1.3; }
.hy-link-sub { font-size: .82rem; line-height: 1.4; }
.hy-link-go { margin-left: auto; font-size: 1.3rem; flex: 0 0 auto; }

.hy-legal { margin-top: 30px; font-size: .78rem; color: var(--hy-muted); }

@media (max-width: 560px) {
    .hy-head-item { gap: 12px; }
    .hy-head-icon { width: 64px; height: 64px; }
    .hy-head-icon img { width: 48px; height: 48px; }
    .hy-card-body { gap: 12px; padding: 12px; }
    .hy-arrow { transform: rotate(90deg); width: 100%; text-align: center; }
    .hy-ing { width: 66px; }
    .hy-slot { width: 54px; height: 54px; }
    .hy-slot img { width: 40px; height: 40px; }
    .hy-results { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .hy-stage-head .hy-cta { margin-left: 0; }
}
