/*
Theme Name: Kripto Atlas
Theme URI: https://btcturk.ist/
Author: btcturk.ist Review Desk
Description: Independent exchange review desk theme — bold editorial layout with hard shadows and inspection-card UI.
Version: 1.4.2
Requires at least: 6.2
Tested up to: 6.5.5
License: GNU General Public License v2 or later
Text Domain: kripto-atlas
*/

:root {
  --ink: #16181d;
  --ink-soft: #3c3f4a;
  --ink-mute: #6b6e7b;
  --paper: #f2f2f4;
  --card: #ffffff;
  --line: #16181d;
  --line-soft: #d8d9e0;
  --rasp: #e8305a;
  --rasp-dark: #c31e46;
  --indigo: #5a5fe0;
  --indigo-ink: #23245c;
  --mustard: #f5c542;
  --mint: #2fae7d;
  --shadow: 6px 6px 0 rgba(22, 24, 29, 1);
  --shadow-sm: 4px 4px 0 rgba(22, 24, 29, 1);
  --shadow-tint: 8px 8px 0 rgba(90, 95, 224, .22);
  --r: 14px;
  --r-sm: 10px;
  --font-head: "Space Grotesk", "Trebuchet MS", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(90, 95, 224, .07), transparent 34%),
    radial-gradient(circle at 95% 12%, rgba(232, 48, 90, .06), transparent 30%),
    var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--rasp); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 999; border-radius: 8px; }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  padding: 12px 22px;
  line-height: 1.2;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn--primary { background: var(--rasp); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--rasp-dark); color: #fff; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(22,24,29,1); }
.btn--primary:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(22,24,29,1); }
.btn--ghost { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { background: var(--mustard); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(22,24,29,1); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 15px 28px; font-size: 18px; }

/* -------------------------------------------------------------- topbar */
.topbar { background: var(--ink); color: #cfd1da; font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; gap: 14px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: var(--mustard); }
.topbar__contact a { color: #cfd1da; text-decoration: none; }
.topbar__contact a:hover { color: #fff; }

/* -------------------------------------------------------------- header */
.site-header { background: var(--card); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 60; }
.site-header__inner { display: flex; align-items: center; gap: 26px; padding-top: 13px; padding-bottom: 13px; }
.site-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.site-logo__mark { flex-shrink: 0; }
.site-logo__name { font-family: var(--font-head); font-weight: 700; font-size: 21px; letter-spacing: -.02em; display: block; line-height: 1.1; }
.site-logo__name b { color: var(--rasp); }
.site-logo__tag { display: block; font-size: 11px; color: var(--ink-mute); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }

.main-navigation { margin-left: auto; }
.main-navigation .menu { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-navigation .menu a {
  display: block; padding: 8px 13px; text-decoration: none; color: var(--ink-soft);
  font-weight: 700; font-size: 14.5px; font-family: var(--font-head); border-radius: 8px; border: 2px solid transparent;
}
.main-navigation .menu a:hover { color: var(--ink); background: var(--paper); border-color: var(--ink); }
.main-navigation .current-menu-item a { color: #fff; background: var(--indigo); border-color: var(--ink); box-shadow: 3px 3px 0 rgba(22,24,29,1); }

.header-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.lang-switch { display: flex; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; background: #fff; }
.lang-switch a { padding: 6px 10px; font-size: 12.5px; font-weight: 800; text-decoration: none; color: var(--ink-mute); font-family: var(--font-head); }
.lang-switch a + a { border-left: 2px solid var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--mustard); color: var(--ink); }
.lang-switch a:hover { background: var(--paper); color: var(--ink); }

.menu-toggle { display: none; background: #fff; border: 2px solid var(--ink); border-radius: 8px; width: 44px; height: 40px; cursor: pointer; padding: 8px 10px; box-shadow: 3px 3px 0 rgba(22,24,29,1); }
.menu-toggle span { display: block; height: 3px; background: var(--ink); border-radius: 2px; margin: 4px 0; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero */
.hero {
  border-bottom: 2px solid var(--ink);
  background:
    linear-gradient(0deg, rgba(22,24,29,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,24,29,.035) 1px, transparent 1px),
    linear-gradient(120deg, #fdfdfe 0%, #f4f2ff 55%, #fff3f5 100%);
  background-size: 34px 34px, 34px 34px, 100% 100%;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 44px; align-items: center; padding-top: 54px; padding-bottom: 58px; }
.hero__breadcrumbs { font-size: 13px; color: var(--ink-mute); margin: 0 0 14px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.hero__breadcrumbs a { color: var(--ink-mute); }
.hero__title { font-family: var(--font-head); font-size: clamp(30px, 4.6vw, 46px); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 18px; }
.hero__title mark { background: linear-gradient(transparent 58%, var(--mustard) 58%); color: inherit; padding: 0 2px; }
.hero__lead { font-size: 19px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 26px; max-width: 56ch; }
.hero__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero__updated { margin: 22px 0 0; font-size: 13.5px; color: var(--ink-mute); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.hero__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); border: 1.5px solid var(--ink); display: inline-block; }
.hero__media { margin: 0; position: relative; }
.hero__media img { border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow), var(--shadow-tint); width: 100%; height: auto; max-height: 430px; object-fit: cover; background: #fff; }
.hero__media-tag {
  position: absolute; top: -14px; left: 18px; background: var(--mustard); border: 2px solid var(--ink); border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 12.5px; padding: 4px 13px; box-shadow: 3px 3px 0 rgba(22,24,29,1);
}

/* -------------------------------------------------------- disclaimer chip */
.disclaimer-chip {
  position: relative; display: inline-flex; align-items: center; gap: 6px; cursor: help;
  font-size: 12.5px; font-weight: 700; color: var(--ink-mute);
  border: 1.5px dashed var(--ink-mute); border-radius: 999px; padding: 6px 13px; background: rgba(255,255,255,.75);
}
.disclaimer-chip:hover, .disclaimer-chip:focus { color: var(--ink); border-color: var(--ink); }
.disclaimer-chip__tip {
  visibility: hidden; opacity: 0; transition: opacity .15s ease;
  position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  width: 290px; background: var(--ink); color: #f0f0f4; font-weight: 500; font-size: 13px; line-height: 1.55;
  padding: 13px 15px; border-radius: 10px; z-index: 40; box-shadow: 5px 5px 0 rgba(90,95,224,.35);
}
.disclaimer-chip__tip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 8px solid transparent; border-top-color: var(--ink); }
.disclaimer-chip:hover .disclaimer-chip__tip, .disclaimer-chip:focus .disclaimer-chip__tip { visibility: visible; opacity: 1; }

/* ---------------------------------------------------------- article body */
.site-main { padding: 52px 0 26px; }
.article-body { max-width: 860px; }
.article-body > h2, .faq__title {
  font-family: var(--font-head); font-size: clamp(24px, 3vw, 31px); letter-spacing: -.02em; line-height: 1.2;
  margin: 52px 0 18px; padding-left: 16px; border-left: 6px solid var(--rasp);
}
.article-body > h2:first-child { margin-top: 0; }
.article-body h3 { font-family: var(--font-head); font-size: 21px; margin: 34px 0 12px; letter-spacing: -.01em; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 26px; }
.article-body li { margin-bottom: 9px; }
.article-body strong { font-weight: 800; }
.article-body code {
  font-family: "SFMono-Regular", Consolas, monospace; font-size: .88em; background: #fff;
  border: 1.5px solid var(--line-soft); border-radius: 6px; padding: 2px 7px; color: var(--indigo-ink); font-weight: 600;
}

/* tables */
.wp-block-table { margin: 26px 0 30px; overflow-x: auto; border: 2px solid var(--ink); border-radius: var(--r); background: #fff; box-shadow: var(--shadow-sm); }
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 560px; }
.wp-block-table th {
  background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 700; text-align: left;
  padding: 12px 16px; font-size: 14px; letter-spacing: .03em;
}
.wp-block-table td { padding: 12px 16px; border-top: 1.5px solid var(--line-soft); vertical-align: top; }
.wp-block-table tbody tr:nth-child(even) { background: #f7f7fa; }
.wp-block-table figcaption { font-size: 13px; color: var(--ink-mute); padding: 9px 16px 12px; border-top: 1.5px dashed var(--line-soft); }

/* blockquote — risk warnings */
.wp-block-quote, .article-body blockquote {
  margin: 28px 0; padding: 18px 22px; background: #fff4f6; border: 2px solid var(--rasp);
  border-radius: var(--r); box-shadow: 5px 5px 0 rgba(232,48,90,.25); font-weight: 600;
}
.wp-block-quote p, .article-body blockquote p { margin: 0; }
.wp-block-quote p + p { margin-top: 10px; }

/* note boxes */
.note { margin: 26px 0; padding: 18px 20px 18px 56px; border: 2px solid var(--ink); border-radius: var(--r); position: relative; background: #fff; box-shadow: var(--shadow-sm); }
.note::before { position: absolute; left: 18px; top: 17px; font-size: 20px; }
.note--info { background: #f1f2ff; }
.note--info::before { content: "🧭"; }
.note--warn { background: #fff8e6; }
.note--warn::before { content: "⚠️"; }
.note--check { background: #eefaf4; }
.note--check::before { content: "✅"; }
.note p { margin: 0; }
.note p + p { margin-top: 10px; }
.note__label { display: block; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 6px; color: var(--ink-soft); }

/* stat grid */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 16px; margin: 28px 0 32px; }
.stat { background: #fff; border: 2px solid var(--ink); border-radius: var(--r); padding: 18px 18px 15px; box-shadow: var(--shadow-sm); }
.stat__num { font-family: var(--font-head); font-weight: 700; font-size: 27px; letter-spacing: -.02em; display: block; color: var(--indigo-ink); }
.stat__label { font-size: 13.5px; color: var(--ink-mute); font-weight: 600; line-height: 1.45; display: block; margin-top: 4px; }

/* steps */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 32px; }
ol.steps > li {
  counter-increment: step; position: relative; padding: 16px 20px 16px 66px; background: #fff;
  border: 2px solid var(--ink); border-radius: var(--r); margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
ol.steps > li::before {
  content: counter(step); position: absolute; left: 16px; top: 15px; width: 34px; height: 34px;
  background: var(--indigo); color: #fff; border: 2px solid var(--ink); border-radius: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center;
  box-shadow: 2px 2px 0 rgba(22,24,29,1);
}
ol.steps > li > strong:first-child { font-family: var(--font-head); font-size: 17px; display: block; margin-bottom: 4px; }

/* verdict box */
.verdict { margin: 30px 0; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.verdict__head { background: var(--indigo); color: #fff; font-family: var(--font-head); font-weight: 700; padding: 12px 20px; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; border-bottom: 2px solid var(--ink); }
.verdict__body { padding: 18px 22px; }
.verdict__body p { margin: 0 0 12px; }
.verdict__body p:last-child { margin-bottom: 0; }

/* pros / cons */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0 32px; }
.proscons__col { border: 2px solid var(--ink); border-radius: var(--r); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.proscons__col h3, .proscons__col .proscons__head { margin: 0; padding: 11px 18px; font-family: var(--font-head); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; border-bottom: 2px solid var(--ink); }
.proscons__col--pro h3, .proscons__col--pro .proscons__head { background: #d9f3e7; }
.proscons__col--con h3, .proscons__col--con .proscons__head { background: #ffe3e9; }
.proscons__col ul { list-style: none; margin: 0; padding: 14px 18px; }
.proscons__col li { padding-left: 26px; position: relative; margin-bottom: 10px; font-size: 15.5px; }
.proscons__col--pro li::before { content: "+"; position: absolute; left: 4px; font-weight: 800; color: var(--mint); }
.proscons__col--con li::before { content: "–"; position: absolute; left: 4px; font-weight: 800; color: var(--rasp); }

/* CTA banner */
.cta-banner { margin: 40px 0; border: 2px solid var(--ink); border-radius: var(--r); background: var(--ink); color: #eef0f6; box-shadow: 8px 8px 0 rgba(232,48,90,.4); position: relative; overflow: hidden; }
.cta-banner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, rgba(90,95,224,.5), transparent 70%); }
.cta-banner__inner { padding: 30px 34px; position: relative; z-index: 1; }
.cta-banner__kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mustard); }
.cta-banner__title { margin: 0 0 10px; font-family: var(--font-head); font-weight: 700; font-size: clamp(21px, 2.6vw, 27px); line-height: 1.25; letter-spacing: -.015em; color: #fff; }
.cta-banner__text { margin: 0 0 20px; color: #c6c9d6; max-width: 62ch; }
.cta-banner__actions { margin: 0; }
.cta-banner .btn--primary { border-color: #fff; }

/* inline figures */
.article-body .wp-block-image { margin: 28px 0; }
.article-body .wp-block-image img { border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.article-body .wp-block-image figcaption { font-size: 13.5px; color: var(--ink-mute); margin-top: 10px; }

/* faq */
.faq { margin-top: 54px; }
.faq__item { border: 2px solid var(--ink); border-radius: var(--r-sm); background: #fff; margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-family: var(--font-head); font-weight: 700; font-size: 16.5px; position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 27px; height: 27px; border: 2px solid var(--ink); border-radius: 8px; background: var(--mustard);
  font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.faq__item[open] summary::after { content: "–"; background: var(--rasp); color: #fff; }
.faq__item[open] summary { border-bottom: 1.5px dashed var(--line-soft); }
.faq__a { padding: 15px 20px 17px; }
.faq__a p { margin: 0; }

/* -------------------------------------------------------------- footer */
.site-footer { margin-top: 64px; background: var(--ink); color: #b9bcc8; border-top: 6px solid var(--rasp); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; padding-top: 46px; padding-bottom: 12px; }
.footer-logo { font-family: var(--font-head); font-weight: 700; font-size: 24px; color: #fff; margin: 0 0 6px; }
.footer-logo b { color: var(--rasp); }
.footer-tagline { margin: 0 0 12px; font-size: 14px; }
.footer-contact a { color: var(--mustard); }
.footer-heading { font-family: var(--font-head); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .07em; text-transform: uppercase; margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #b9bcc8; text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-disclaimer { border-top: 1px solid #33363f; padding-top: 20px; padding-bottom: 30px; font-size: 12.5px; line-height: 1.65; color: #8a8d99; }
.footer-disclaimer p { margin: 0 0 10px; }
.footer-copy { color: #6b6e7b; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1020px) {
  .main-navigation .menu a { padding: 8px 9px; font-size: 13.5px; }
  .hero__grid { gap: 30px; }
}
@media (max-width: 880px) {
  .site-header__inner { flex-wrap: wrap; gap: 12px; }
  .main-navigation { order: 3; width: 100%; margin-left: 0; }
  .menu-toggle { display: block; }
  .menu-primary-container { display: none; padding-top: 10px; }
  .main-navigation.toggled .menu-primary-container { display: block; }
  .main-navigation .menu { flex-direction: column; gap: 6px; }
  .main-navigation .menu a { border: 2px solid var(--ink); background: #fff; }
  .header-cta { margin-left: auto; }
  .hero__grid { grid-template-columns: 1fr; padding-top: 38px; padding-bottom: 42px; }
  .hero__media { max-width: 560px; }
  .proscons { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .topbar__inner { justify-content: center; text-align: center; }
  .topbar__contact { display: none; }
  .header-cta .btn { display: none; }
  .hero__lead { font-size: 17px; }
  .btn--lg { width: 100%; text-align: center; }
  .disclaimer-chip__tip { left: 0; transform: none; width: min(290px, 86vw); }
  .disclaimer-chip__tip::after { left: 24px; }
  .cta-banner__inner { padding: 24px 20px; }
  .site-main { padding-top: 38px; }
  .article-body > h2, .faq__title { margin-top: 40px; }
}
