/*
Theme Name: Crypto
Theme URI: https://wordpress.org
Author: Orkhan Chichitov
Author URI: https://wordpress.org
Description: A simple and clean WordPress theme for cryptocurrency-related websites. It features a modern design, responsive layout, and customizable options to create a unique online presence for your crypto business or blog.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* =====================================================================
   ROOT VARIABLES — Orange / Neon Pink palette
   ===================================================================== */
:root {
    --crypto-bg: #ffffff;
    --crypto-bg-soft: #fef6ee;
    --crypto-accent: #f57e1e;
    --crypto-accent-dark: #d9670f;
    --crypto-accent-soft: rgba(245, 126, 30, .12);
    --crypto-pink: #f52380;
    --crypto-pink-soft: rgba(245, 35, 128, .1);
    --crypto-text: #111827;
    --crypto-text-muted: #6b7280;
    --crypto-border: #e5e7eb;
    --crypto-section-y: 20px;
    --crypto-radius: 16px;
    --crypto-shadow: 0 10px 30px rgba(17, 24, 39, .08);
    --crypto-shadow-hover: 0 18px 40px rgba(245, 126, 30, .2);
}

/* =====================================================================
   RESET / BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--crypto-text);
    background: var(--crypto-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 { margin: 0 0 12px; line-height: 1.25; }

p { margin: 0 0 16px; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn--primary {
    background: linear-gradient(135deg, var(--crypto-accent), var(--crypto-pink));
    color: #fff;
    box-shadow: var(--crypto-shadow);
}
.btn--primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--crypto-shadow-hover);
}
.btn--secondary {
    background: transparent;
    border-color: var(--crypto-accent);
    color: var(--crypto-accent);
}
.btn--secondary:hover {
    background: var(--crypto-accent);
    color: #fff;
    transform: translateY(-3px);
}
a.button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--crypto-accent), var(--crypto-pink));
    color: #fff;
    box-shadow: var(--crypto-shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}
a.button:hover, .button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--crypto-shadow-hover);
}

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--crypto-border);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 76px;
}
.site-header__logo-text {
    font-weight: 800;
    font-size: 22px;
    background: linear-gradient(135deg, var(--crypto-accent), var(--crypto-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav__list {
    display: flex;
    align-items: center;
    gap: 8px;
}
.main-nav__list > li { position: relative; }
.main-nav__list > li > a {
    display: block;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14.5px;
    transition: background .2s ease, color .2s ease;
    white-space: nowrap;
}
.main-nav__list > li > a:hover,
.main-nav__list > li.current-menu-item > a {
    background: var(--crypto-accent-soft);
    color: var(--crypto-accent-dark);
}
.main-nav__list .sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 240px;
    background: #fff;
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.main-nav__list > li.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.main-nav__list .sub-menu li a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
}
.main-nav__list .sub-menu li a:hover {
    background: var(--crypto-bg-soft);
    color: var(--crypto-accent-dark);
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.burger__line {
    width: 100%;
    height: 2px;
    background: var(--crypto-text);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}
.burger.is-active .burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-active .burger__line:nth-child(2) { opacity: 0; }
.burger.is-active .burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    background: #fff;
    border-bottom: 1px solid var(--crypto-border);
}
.mobile-menu.is-open { max-height: 1200px; }
.mobile-menu__list { padding: 12px 20px 20px; }
.mobile-menu__list li a {
    display: block;
    padding: 12px 0;
    font-weight: 600;
    border-bottom: 1px solid var(--crypto-border);
}
.mobile-menu__list .sub-menu { padding-left: 16px; }
.mobile-menu__list .sub-menu li a { font-weight: 500; color: var(--crypto-text-muted); border-bottom: none; padding: 8px 0; }

/* =====================================================================
   HERO / EXCHANGE WIDGET
   ===================================================================== */
.hero {
    padding: 48px 0 var(--crypto-section-y);
    background: radial-gradient(circle at 85% 0%, var(--crypto-accent-soft), transparent 55%),
                radial-gradient(circle at 0% 100%, var(--crypto-pink-soft), transparent 45%);
}
.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: center;
}
.hero__content h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
}
.hero__content p { color: var(--crypto-text-muted); font-size: 17px; }
.hero__widget { display: flex; justify-content: center; order: 2; }

.exchange-widget {
    background: #fff;
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow);
    padding: 12px;
    display: inline-block;
    transition: box-shadow .3s ease, transform .3s ease;
}
.exchange-widget:hover { box-shadow: var(--crypto-shadow-hover); transform: translateY(-4px); }
.exchange-widget__frame {
    width: 100%;
    max-width: 500px;
    height: 400px;
    border: 0;
    border-radius: 12px;
    display: block;
}

/* widget placed with an accompanying image outside the hero */
.widget-block {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 40px;
    align-items: center;
}
.widget-block__media { border-radius: var(--crypto-radius); overflow: hidden; box-shadow: var(--crypto-shadow); }
.widget-block__media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.widget-block__media:hover img { transform: scale(1.06); }

.js-parallax { will-change: transform; transition: transform .1s linear; }

/* =====================================================================
   SECTIONS / TYPOGRAPHY
   ===================================================================== */
.section { padding: 44px 0 var(--crypto-section-y); }
.section__title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.section__lead { color: var(--crypto-text-muted); max-width: 760px; }

/* =====================================================================
   CARDS / ICON GRID
   ===================================================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.card {
    background: #fff;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 24px;
    box-shadow: var(--crypto-shadow);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--crypto-shadow-hover);
    border-color: var(--crypto-accent);
}
.card__icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--crypto-accent-soft), var(--crypto-pink-soft));
    margin-bottom: 16px;
    transition: transform .3s ease;
}
.card:hover .card__icon { transform: scale(1.12) rotate(-4deg); }
.card__icon svg { width: 26px; height: 26px; stroke: var(--crypto-accent); }
.card__title { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.card__text { color: var(--crypto-text-muted); font-size: 14.5px; margin: 0; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}
.stat-card {
    background: linear-gradient(160deg, #fff, var(--crypto-bg-soft));
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 20px;
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--crypto-shadow-hover); }
.stat-card__value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--crypto-accent), var(--crypto-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 6px;
}
.stat-card__label { font-size: 13.5px; color: var(--crypto-text-muted); }

/* =====================================================================
   ROUTE / PAIR LINK TABLE
   ===================================================================== */
.route-table-wrap { overflow-x: auto; margin-top: 16px; }
.route-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--crypto-radius);
    overflow: hidden;
    box-shadow: var(--crypto-shadow);
}
.route-table th, .route-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--crypto-border);
    font-size: 14.5px;
}
.route-table th { background: var(--crypto-bg-soft); font-weight: 700; }
.route-table tr:last-child td { border-bottom: none; }
.route-table tr:hover td { background: var(--crypto-accent-soft); }
.route-table a { font-weight: 700; color: var(--crypto-accent-dark); }
.route-table a:hover { color: var(--crypto-pink); }

.coin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--crypto-accent), var(--crypto-pink));
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    margin-right: 8px;
    vertical-align: middle;
}

/* =====================================================================
   BENEFITS / STEPS
   ===================================================================== */
.steps-list { counter-reset: step; margin-top: 20px; display: grid; gap: 14px; }
.steps-list__item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 18px 20px;
    transition: transform .3s ease, box-shadow .3s ease;
}
.steps-list__item:hover { transform: translateX(6px); box-shadow: var(--crypto-shadow); }
.steps-list__num {
    flex: none;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--crypto-accent), var(--crypto-pink));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px;
}
.steps-list__text { margin: 0; padding-top: 4px; }

.check-list { display: grid; gap: 10px; margin-top: 16px; }
.check-list__item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 16px;
    background: var(--crypto-bg-soft);
    border-radius: 12px;
    font-size: 14.5px;
}
.check-list__item svg { flex: none; width: 18px; height: 18px; stroke: var(--crypto-accent); margin-top: 2px; }

/* generic content table (privacy/aml lists rendered as table) */
.content-table-wrap { overflow-x: auto; margin: 16px 0; }
.content-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--crypto-radius); overflow: hidden; box-shadow: var(--crypto-shadow); }
.content-table th, .content-table td { padding: 14px 18px; border-bottom: 1px solid var(--crypto-border); text-align: left; font-size: 14.5px; }
.content-table th { background: var(--crypto-bg-soft); font-weight: 700; }
.content-table tr:last-child td { border-bottom: none; }

/* =====================================================================
   CHART (shortcode-rendered inline SVG)
   ===================================================================== */
.chart {
    background: #fff;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow);
    padding: 16px;
    margin-top: 20px;
}
.chart__svg { width: 100%; height: auto; display: block; }
.chart__grid { stroke: var(--crypto-border); stroke-width: 1; }
.chart__grid--v { stroke-dasharray: 4 4; }
.chart__label { fill: var(--crypto-text-muted); font-size: 10px; }
.chart__label--date { text-anchor: middle; }
.chart__area { fill: var(--crypto-accent-soft); }
.chart__line { fill: none; stroke: var(--crypto-accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart__dot { fill: var(--crypto-pink); stroke: #fff; stroke-width: 2; }
.chart-empty {
    background: var(--crypto-bg-soft);
    border: 1px dashed var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 24px;
    text-align: center;
    color: var(--crypto-text-muted);
    margin-top: 20px;
}

/* coin-price-data shortcode */
.coin-price__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-top: 16px; }
.coin-price__stat {
    background: #fff;
    border: 1px solid var(--crypto-border);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
}
.coin-price__stat:hover { transform: translateY(-4px); box-shadow: var(--crypto-shadow); }
.coin-price__stat-label { display: block; font-size: 12.5px; color: var(--crypto-text-muted); margin-bottom: 6px; }
.coin-price__stat-value { font-size: 19px; font-weight: 800; }
.coin-price__stat-value--up { color: #16a34a; }
.coin-price__stat-value--down { color: var(--crypto-pink); }

/* pair-rate / pair-rate-table shortcodes */
.pair-rate {
    display: inline-flex;
    padding: 14px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--crypto-accent-soft), var(--crypto-pink-soft));
    margin-top: 16px;
}
.pair-rate__value { font-weight: 800; font-size: 18px; color: var(--crypto-accent-dark); }
.rate-table { overflow-x: auto; margin-top: 16px; }
.rate-table__table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--crypto-radius); overflow: hidden; box-shadow: var(--crypto-shadow); }
.rate-table__table th, .rate-table__table td { padding: 12px 18px; border-bottom: 1px solid var(--crypto-border); text-align: left; font-size: 14.5px; }
.rate-table__table th { background: var(--crypto-bg-soft); font-weight: 700; }
.rate-table__table tr:last-child td { border-bottom: none; }
.rate-table__table tr:hover td { background: var(--crypto-accent-soft); }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq-list { display: grid; gap: 12px; margin-top: 20px; }
.faq-item {
    background: #fff;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 4px;
    transition: box-shadow .3s ease, border-color .3s ease;
}
.faq-item:hover { box-shadow: var(--crypto-shadow); border-color: var(--crypto-accent); }
.faq-item__q {
    margin: 0;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 15.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.faq-item__q::after {
    content: "+";
    flex: none;
    font-size: 20px;
    color: var(--crypto-accent);
    transition: transform .3s ease;
}
.faq-item.is-open .faq-item__q::after { transform: rotate(45deg); }
.faq-item__a {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    color: var(--crypto-text-muted);
    transition: max-height .35s ease, padding .35s ease;
}
.faq-item.is-open .faq-item__a { max-height: 400px; padding: 0 20px 18px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: #14100e; color: #e5e7eb; padding: 56px 0 24px; margin-top: 40px; }
.site-footer__columns {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}
.site-footer__title { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer__list { display: grid; gap: 10px; }
.site-footer__list a { color: #9ca3af; font-size: 13.5px; transition: color .2s ease, padding-left .2s ease; }
.site-footer__list a:hover { color: var(--crypto-accent); padding-left: 4px; }
.site-footer__partners { margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); }
.site-footer__partners-label { display: block; color: #9ca3af; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer__partners-list { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; }
.site-footer__partner img { height: 26px; width: auto; filter: grayscale(1) brightness(2); opacity: .7; transition: opacity .3s ease, filter .3s ease, transform .3s ease; }
.site-footer__partner:hover img, .site-footer__partner:has(img):hover img { opacity: 1; filter: none; transform: translateY(-2px); }
.site-footer__copyright { margin-top: 32px; color: #6b7280; font-size: 13px; }

/* =====================================================================
   404
   ===================================================================== */
.error404__wrapper { padding: 100px 0; text-align: center; }
.error404__code {
    font-size: clamp(90px, 18vw, 160px);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--crypto-accent), var(--crypto-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.error404__title { font-size: 28px; font-weight: 800; margin-top: 12px; }
.error404__text { color: var(--crypto-text-muted); }
.error404__actions { margin-top: 24px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
    .site-footer__columns { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .burger { display: flex; }
    .hero__inner { grid-template-columns: 1fr; }
    .hero__widget { order: 1; }
    .hero__content { order: 2; }
    .widget-block { grid-template-columns: 1fr; }
    .widget-block__media { order: -1; height: 220px; }
    .site-footer__columns { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 32px 0 var(--crypto-section-y); }
}

@media (max-width: 480px) {
    .site-header__inner { height: 64px; }
    .hero { padding: 32px 0 var(--crypto-section-y); }
    .btn, a.button, .button { width: 100%; padding: 14px 20px; }
    .exchange-widget__frame { height: 360px; }
    .site-footer__columns { grid-template-columns: 1fr 1fr; gap: 20px; }
    .card-grid, .stat-grid { grid-template-columns: 1fr; }
}
