/*
Theme Name: Coinsfera Rehberi
Theme URI: https://coinsfera.ist/
Author: coinsfera.ist Editorial
Description: Warm "shop sign" editorial theme for an independent crypto guide. Espresso, saffron and paper.
Version: 1.4.2
Requires at least: 6.0
Tested up to: 6.5
License: GNU General Public License v2 or later
Text Domain: coinsfera-rehberi
*/

:root {
  --paper: #faf5ec;
  --paper-deep: #f3ead9;
  --ink: #2b1d12;
  --ink-soft: #55402e;
  --saffron: #f29b1d;
  --saffron-soft: #fbe3bb;
  --ember: #e2560e;
  --ember-deep: #b23f06;
  --line: #d9c9ae;
  --card: #fffdf8;
  --ok: #2e7d4f;
  --shadow: 6px 6px 0 rgba(43, 29, 18, .16);
  --radius: 14px;
  --font-display: "Zilla Slab", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--ember-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ember); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; color: var(--ink); }
h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 2.2em 0 .6em; }
h3 { font-size: clamp(20px, 2.6vw, 25px); margin: 1.8em 0 .5em; }

/* ---------- top bar ---------- */
.topbar { background: var(--ink); color: #f7ead6; font-size: 12.5px; }
.topbar__inner { display: flex; justify-content: space-between; gap: 14px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: var(--saffron); }
.topbar__contact { opacity: .85; }

/* ---------- header ---------- */
.site-header { background: var(--paper); border-bottom: 3px solid var(--ink); position: sticky; top: 0; z-index: 60; }
.site-header__inner { display: flex; align-items: center; gap: 22px; padding-top: 12px; padding-bottom: 12px; }
.site-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.site-logo__name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: .2px; display: block; line-height: 1; }
.site-logo__name b { color: var(--ember); }
.site-logo__tag { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); margin-top: 3px; }
.main-navigation { margin-left: auto; }
.main-navigation ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-navigation a { display: block; padding: 9px 13px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; border-radius: 10px; border: 2px solid transparent; }
.main-navigation a:hover { border-color: var(--ink); background: var(--saffron-soft); }
.current-menu-item a { background: var(--ink); color: var(--paper); }
.current-menu-item a:hover { border-color: transparent; background: var(--ink); color: var(--saffron); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; }
.lang-switch a { padding: 5px 9px; font-size: 12.5px; font-weight: 700; text-decoration: none; color: var(--ink); }
.lang-switch a + a { border-left: 2px solid var(--ink); }
.lang-switch a[aria-current] { background: var(--saffron); }
.menu-toggle { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-block; font-family: var(--font-body); font-weight: 700; text-decoration: none; border-radius: 12px; border: 2px solid var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.btn--primary { background: var(--ember); color: #fff; padding: 13px 24px; box-shadow: 4px 4px 0 var(--ink); }
.btn--primary:hover { background: var(--ember-deep); color: #fff; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn--sm { padding: 9px 16px; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--paper-deep), var(--paper)); border-bottom: 3px solid var(--ink); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; padding-top: 46px; padding-bottom: 50px; }
.hero--plain .hero__grid { grid-template-columns: 1fr; max-width: 880px; }
.hero__breadcrumbs { font-size: 13px; color: var(--ink-soft); margin: 0 0 14px; }
.hero__breadcrumbs a { color: var(--ink-soft); }
.hero__title { font-size: clamp(30px, 4.6vw, 46px); margin: 0 0 16px; }
.hero__lead { font-size: 18.5px; color: var(--ink-soft); margin: 0 0 24px; max-width: 56ch; }
.hero__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero__updated { font-size: 13px; color: var(--ink-soft); margin: 18px 0 0; }
.hero__media { margin: 0; position: relative; }
.hero__media img { display: block; width: 100%; border-radius: var(--radius); border: 3px solid var(--ink); box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 4 / 3; }

/* disclaimer chip */
.disclaimer-chip { position: relative; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); border: 1.5px dashed var(--ink-soft); border-radius: 999px; padding: 6px 12px; cursor: help; background: var(--card); }
.disclaimer-chip__tip { display: none; position: absolute; left: 0; top: calc(100% + 10px); width: 290px; background: var(--ink); color: #f7ead6; font-weight: 400; font-size: 13px; line-height: 1.55; padding: 12px 14px; border-radius: 10px; z-index: 50; box-shadow: var(--shadow); }
.disclaimer-chip:hover .disclaimer-chip__tip, .disclaimer-chip:focus .disclaimer-chip__tip { display: block; }

/* ---------- article ---------- */
.site-main { padding: 46px 0 30px; }
.article-body { max-width: 860px; }
.article-body > p, .article-body > ul, .article-body > ol { color: #33261a; }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li { margin: 6px 0; }
.article-body strong { color: var(--ink); }
.article-body code { background: var(--paper-deep); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; font-size: .88em; color: var(--ember-deep); }
.article-body figure { margin: 30px 0; }
.article-body figure img { border-radius: var(--radius); border: 3px solid var(--ink); box-shadow: var(--shadow); display: block; }
.article-body figcaption { font-size: 13.5px; color: var(--ink-soft); margin-top: 12px; }

.wp-block-quote, blockquote { margin: 28px 0; padding: 18px 22px; background: #fdeee2; border: 2px solid var(--ember); border-left-width: 8px; border-radius: 10px; color: #6b3211; font-weight: 500; }
.wp-block-quote p, blockquote p { margin: 0; }

.wp-block-table, .article-body table { width: 100%; border-collapse: collapse; margin: 26px 0; background: var(--card); border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; font-size: 15.5px; box-shadow: var(--shadow); display: table; }
.article-body th { background: var(--ink); color: var(--paper); text-align: left; padding: 11px 14px; font-family: var(--font-display); font-size: 15px; letter-spacing: .02em; }
.article-body td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.article-body tr:nth-child(even) td { background: #fbf6ea; }
.table-scroll { overflow-x: auto; }

/* info cards */
.info-card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px 24px; margin: 28px 0; box-shadow: var(--shadow); }
.info-card--ticket { border-style: dashed; background: repeating-linear-gradient(-45deg, var(--card), var(--card) 14px, #fdf8ee 14px, #fdf8ee 28px); }
.info-card h3 { margin-top: 0; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; background: var(--saffron); border: 1.5px solid var(--ink); border-radius: 6px; padding: 2px 9px; margin-bottom: 10px; }

/* steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 62px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--saffron); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.steps li::after { content: ""; position: absolute; left: 20px; top: 48px; bottom: 4px; border-left: 2px dashed var(--line); }
.steps li:last-child::after { display: none; }
.steps h3, .steps strong.step-title { display: block; margin: 4px 0 6px; font-family: var(--font-display); font-size: 20px; }

/* CTA banner */
.cta-banner { margin: 40px 0; background: var(--ink); border-radius: var(--radius); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--saffron); color: #f4e7d2; overflow: hidden; position: relative; }
.cta-banner::before { content: "₿"; position: absolute; right: -18px; bottom: -42px; font-size: 170px; font-family: var(--font-display); color: rgba(242, 155, 29, .16); line-height: 1; }
.cta-banner__inner { padding: 30px 34px; position: relative; }
.cta-banner__kicker { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--saffron); }
.cta-banner__title { margin: 0 0 10px; font-family: var(--font-display); font-size: clamp(21px, 2.8vw, 27px); font-weight: 700; color: #fff; line-height: 1.25; }
.cta-banner__text { margin: 0 0 20px; font-size: 15.5px; color: #e8d5b8; max-width: 62ch; }
.cta-banner__actions { margin: 0; }
.cta-banner .btn--primary { border-color: var(--saffron); box-shadow: 4px 4px 0 var(--saffron); }

/* FAQ */
.faq { max-width: 860px; margin: 40px 0 10px; }
.faq__item { background: var(--card); border: 2px solid var(--ink); border-radius: 12px; margin: 12px 0; box-shadow: 4px 4px 0 rgba(43, 29, 18, .12); overflow: hidden; }
.faq__item summary { cursor: pointer; padding: 15px 20px; font-weight: 600; font-family: var(--font-display); font-size: 17.5px; list-style: none; position: relative; padding-right: 46px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--ember); font-weight: 700; }
.faq__item[open] summary::after { content: "–"; }
.faq__a { padding: 0 20px 16px; color: #33261a; }

/* ---------- footer ---------- */
.site-footer { margin-top: 60px; background: var(--ink); color: #e8d5b8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; padding-top: 46px; padding-bottom: 26px; }
.footer-logo { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: #fff; margin: 0 0 4px; }
.footer-logo b { color: var(--saffron); }
.footer-tagline { margin: 0 0 12px; font-size: 13.5px; color: #c9ab84; }
.footer-heading { font-family: var(--font-display); color: var(--saffron); font-size: 16px; margin: 0 0 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 7px 0; }
.site-footer a { color: #f0dfc4; text-decoration: none; }
.site-footer a:hover { color: var(--saffron); text-decoration: underline; }
.footer-disclaimer { border-top: 1px solid rgba(242, 155, 29, .25); padding-top: 20px; padding-bottom: 30px; font-size: 12.5px; line-height: 1.65; color: #b3946c; }
.footer-disclaimer p { margin: 0 0 10px; }
.footer-copy { color: #8a7052; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__media { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-header__inner { flex-wrap: wrap; gap: 12px; }
  .main-navigation { order: 3; width: 100%; margin-left: 0; }
  .menu-toggle { display: flex; flex-direction: column; gap: 5px; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; padding: 10px 11px; cursor: pointer; margin-left: auto; }
  .menu-toggle span { width: 20px; height: 2.5px; background: var(--ink); border-radius: 2px; }
  .menu-primary-container { display: none; padding: 6px 0 10px; }
  .main-navigation.toggled .menu-primary-container { display: block; }
  .main-navigation ul { flex-direction: column; gap: 2px; }
  .main-navigation a { border: 2px solid var(--line); }
  .header-cta { margin-left: auto; order: 2; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar__inner { justify-content: center; text-align: center; }
  .topbar__contact { display: none; }
  .hero__grid { padding-top: 30px; padding-bottom: 34px; }
  .hero__actions { gap: 12px; }
  .header-cta .btn { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-banner__inner { padding: 24px 20px; }
  .steps li { padding-left: 54px; }
  .article-body table { font-size: 14px; }
  .article-body th, .article-body td { padding: 9px 10px; }
}
