/* ==========================================================================
   GALAVERSE CREATIONS — TOOL PAGES
   Loaded after home.css. Maps the legacy design tokens used by the tool
   pages' inline styles onto the new system, plus shared tool-page blocks.
   ========================================================================== */

:root {
    --bg-main: var(--bg);
    --bg-card: var(--card);
    --bg-card-hover: var(--card-2);
    --border-color: var(--line-2);
    --border-color-hover: color-mix(in srgb, var(--accent) 55%, transparent);
    --accent-glow: var(--accent-soft);
    --accent-hover: color-mix(in srgb, var(--accent) 82%, #fff);
    --text-primary: var(--text);
    --text-secondary: var(--text-2);
    --text-muted: var(--text-3);
    --font-heading: var(--font-display);
    --transition-smooth: all 0.35s var(--ease);
    --transition-fast: all 0.18s var(--ease);
}

[data-theme="light"] {
    --accent-hover: color-mix(in srgb, var(--accent) 80%, #000);
}

/* Previews must show artwork exactly as exported. */
body::after { display: none; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; }
h4, h5, h6 { font-family: var(--font-display); color: var(--text); }
p { color: var(--text-2); }

.tool-page main { min-height: 60vh; }

/* ---------- Breadcrumb ---------- */
.tool-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
    list-style: none;
    margin-bottom: 14px;
}
.tool-crumbs a:hover { color: var(--accent); }
.tool-crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line-2); }
.tool-crumbs [aria-current] { color: var(--accent); }

/* ---------- Guide / SEO content ---------- */
.tool-guide {
    border-top: 1px solid var(--line);
    background: var(--bg-2);
}
.tool-guide .section-container { padding-top: 110px; padding-bottom: 110px; }
.tool-guide .section-title { font-size: clamp(32px, 4.6vw, 56px); }
.tool-guide .section-desc { max-width: 720px; }

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 48px 0 72px;
}
.guide-step {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}
.guide-step-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.1em;
}
.guide-step h3 { font-size: 22px; margin: 12px 0 10px; }
.guide-step p { font-size: 15px; line-height: 1.65; }

.guide-h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 20px; }
.guide-lead { margin-bottom: 24px; max-width: 760px; }

.size-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    margin-bottom: 72px;
}
.size-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.size-table th, .size-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.size-table tr:last-child td { border-bottom: none; }
.size-table th {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
    font-weight: 500;
    background: var(--card-2);
}
.size-table td:first-child { font-weight: 600; color: var(--text); white-space: nowrap; }
.size-table td:nth-child(2) { font-family: var(--font-mono); color: var(--accent); white-space: nowrap; }
.size-table td { color: var(--text-2); }

.faq-list { display: grid; gap: 10px; max-width: 900px; }
.faq-item {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    transition: border-color 0.2s;
}
.faq-item[open] { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 22px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-mono); color: var(--accent); transition: transform 0.25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; font-size: 15px; line-height: 1.7; }
.faq-item a, .guide-lead a, .guide-step a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.related-tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 72px; }
.related-tool {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    transition: border-color 0.25s, transform 0.25s var(--ease);
}
.related-tool:hover { border-color: var(--accent); transform: translateY(-3px); }
.related-tool-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.related-tool strong { font-family: var(--font-display); font-size: 22px; color: var(--text); }
.related-tool span:last-child { color: var(--text-2); font-size: 15px; }

/* Bilingual long-form blocks (driven by <html lang>) */
html[lang="tr"] [data-lang-block="en"],
html:not([lang="tr"]) [data-lang-block="tr"] { display: none; }

/* ---------- Tool footer ---------- */
.tool-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.tool-footer-brand p { margin-top: 14px; max-width: 340px; font-size: 14px; color: var(--text-3); }
.tool-footer-col h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 14px;
}
.tool-footer-col ul { list-style: none; display: grid; gap: 9px; }
.tool-footer-col a { font-size: 14px; color: var(--text-2); }
.tool-footer-col a:hover { color: var(--accent); }

/* ---------- Size guide page ---------- */
.guide-hero .section-container { padding-top: 150px; padding-bottom: 40px; }
.guide-hero h1 { font-size: clamp(38px, 5.6vw, 72px); margin: 18px 0 20px; max-width: 980px; }
.guide-hero h1 em { font-family: var(--font-serif, 'Instrument Serif', serif); font-style: italic; font-weight: 400; color: var(--accent); }
.guide-hero .section-desc { max-width: 760px; font-size: 18px; }
.guide-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.guide-updated { margin-top: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.guide-page .tool-guide .section-container { padding-top: 40px; }
.guide-block { margin-top: 72px; }
.guide-block:first-child { margin-top: 0; }
.rule-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rule-col { border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; background: var(--bg-2); }
.rule-col h3 { font-size: 20px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.rule-col ul { list-style: none; display: grid; gap: 10px; }
.rule-col li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.rule-col li::before { position: absolute; left: 0; top: 0; font-family: var(--font-mono); }
.rule-col.do li::before { content: '✓'; color: #7bd88f; }
.rule-col.dont li::before { content: '✕'; color: #ff8a72; }
.cta-band {
    margin-top: 72px;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
    background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), var(--bg-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.cta-band p { max-width: 560px; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
    .guide-grid, .related-tools, .rule-cols { grid-template-columns: 1fr; }
    .tool-footer-grid { grid-template-columns: 1fr 1fr; }
    .tool-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .tool-guide .section-container { padding-top: 80px; padding-bottom: 80px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
