/*
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 — Velvet Library palette (forest green / oxblood /
   walnut brown / antique brass / parchment cream)
   ===================================================================== */
:root {
    --crypto-bg: #14211a;
    --crypto-bg-alt: #0e1712;
    --crypto-surface: #1d2e24;
    --crypto-surface-alt: #2a2019;
    --crypto-border: #35473c;
    --crypto-accent: #c9a24b;
    --crypto-accent-strong: #e0bd6a;
    --crypto-accent-soft: rgba(201, 162, 75, .14);
    --crypto-secondary: #7c2431;
    --crypto-secondary-soft: rgba(124, 36, 49, .18);
    --crypto-walnut: #6b4a34;
    --crypto-text: #f3ecdd;
    --crypto-text-muted: #b7c0b4;
    --crypto-section-y: 22px;
    --crypto-radius: 14px;
    --crypto-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

/* =====================================================================
   RESET / BASE
   ===================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--crypto-bg);
    color: var(--crypto-text);
    font-family: 'Georgia', 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--crypto-accent-strong); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--crypto-accent); }
h1, h2, h3, h4 { font-family: 'Georgia', 'Times New Roman', serif; color: var(--crypto-text); line-height: 1.25; margin: 0 0 16px; }
h1 { font-size: clamp(30px, 4.5vw, 46px); }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
h3 { font-size: clamp(19px, 2.4vw, 22px); }
p { margin: 0 0 16px; color: var(--crypto-text-muted); }
ul, ol { color: var(--crypto-text-muted); }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.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;
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn--primary {
    background: linear-gradient(135deg, var(--crypto-accent-strong), var(--crypto-accent));
    color: #1a1408;
    box-shadow: 0 10px 24px rgba(201, 162, 75, .28);
}
.btn--primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 32px rgba(201, 162, 75, .4);
    color: #1a1408;
}
.btn--ghost {
    background: transparent;
    border-color: var(--crypto-accent);
    color: var(--crypto-accent-strong);
}
.btn--ghost:hover {
    background: var(--crypto-accent-soft);
    transform: translateY(-3px);
    color: var(--crypto-accent-strong);
}

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(14, 23, 18, .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;
    padding: 16px 24px;
}
.site-header__logo { display: flex; align-items: center; gap: 10px; font-family: 'Georgia', serif; font-size: 21px; font-weight: 700; color: var(--crypto-text); }
.site-header__logo img { max-height: 44px; width: auto; }
.site-header__logo-mark {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--crypto-accent-strong), var(--crypto-secondary));
    display: flex; align-items: center; justify-content: center;
    color: #1a1408; font-weight: 800; font-size: 16px;
}
.site-header__logo:hover { color: var(--crypto-accent-strong); }

.nav-primary { display: flex; }
.nav-primary__menu { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-primary__menu a {
    color: var(--crypto-text);
    font-size: 15px;
    font-weight: 600;
    position: relative;
    padding-bottom: 4px;
}
.nav-primary__menu a::after {
    content: "";
    position: absolute; left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: var(--crypto-accent-strong);
    transition: width .3s ease;
}
.nav-primary__menu a:hover { color: var(--crypto-accent-strong); }
.nav-primary__menu a:hover::after { width: 100%; }

.site-header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    background: transparent;
    border: 1px solid var(--crypto-border);
    border-radius: 8px;
    cursor: pointer;
}
.site-header__burger span {
    display: block;
    height: 2px;
    width: 20px;
    margin: 0 auto;
    background: var(--crypto-accent-strong);
    transition: transform .3s ease, opacity .3s ease;
}
.site-header__burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__burger.is-active span:nth-child(2) { opacity: 0; }
.site-header__burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
    display: none;
    max-height: 0;
    overflow: hidden;
    background: var(--crypto-bg-alt);
    border-bottom: 1px solid var(--crypto-border);
    transition: max-height .35s ease;
}
.nav-mobile.is-open { max-height: 420px; }
.nav-mobile__menu { list-style: none; margin: 0; padding: 10px 24px 20px; display: flex; flex-direction: column; gap: 4px; }
.nav-mobile__menu a {
    display: block;
    padding: 12px 0;
    color: var(--crypto-text);
    font-weight: 600;
    border-bottom: 1px solid var(--crypto-border);
}
.nav-mobile__menu a:hover { color: var(--crypto-accent-strong); padding-left: 6px; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
    position: relative;
    padding: 90px 0 70px;
    overflow: hidden;
    background: var(--crypto-bg-alt);
}
.hero__bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .28;
    transform: scale(1.05);
    transition: transform 6s ease;
}
.hero:hover .hero__bg { transform: scale(1.12); }
.hero::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(14,23,18,.55) 0%, var(--crypto-bg-alt) 92%);
}
.hero__inner { position: relative; z-index: 1; max-width: 880px; }
.hero__eyebrow {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--crypto-accent-soft);
    color: var(--crypto-accent-strong);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.hero__text { font-size: 17px; max-width: 720px; }

/* =====================================================================
   SECTIONS / ARTICLE TYPOGRAPHY
   ===================================================================== */
.section { padding: var(--crypto-section-y) 0; }
.section--alt { background: var(--crypto-bg-alt); }
.article {
    padding: calc(var(--crypto-section-y) * 1.4) 0;
}
.article h2 { margin-top: 46px; padding-top: 6px; border-top: 1px solid var(--crypto-border); }
.article h2:first-child { border-top: none; margin-top: 0; }
.article h3 { color: var(--crypto-accent-strong); }
.article a { text-decoration: underline; text-underline-offset: 3px; }
.article b, .article strong { color: var(--crypto-text); }

/* =====================================================================
   CARDS / FEATURE GRID
   ===================================================================== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin: 28px 0;
}
.card {
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 26px;
    box-shadow: var(--crypto-shadow);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
    transform: translateY(-6px);
    border-color: var(--crypto-accent);
    box-shadow: 0 22px 44px rgba(0,0,0,.45);
}
.card__icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--crypto-accent-soft);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    color: var(--crypto-accent-strong);
    transition: transform .3s ease, background .3s ease;
}
.card:hover .card__icon { transform: scale(1.1) rotate(-4deg); background: var(--crypto-accent); color: #1a1408; }
.card__title { font-size: 18px; margin-bottom: 8px; }
.card__text { margin-bottom: 0; font-size: 14.5px; }

.media-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin: 36px 0;
}
.media-block__img {
    border-radius: var(--crypto-radius);
    overflow: hidden;
    box-shadow: var(--crypto-shadow);
    border: 1px solid var(--crypto-border);
}
.media-block__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .5s ease; }
.media-block__img:hover img { transform: scale(1.06); }
.media-block--reverse .media-block__img { order: 2; }

/* =====================================================================
   RANKING TABLE (comparison)
   ===================================================================== */
.rank-table-wrap { overflow-x: auto; margin: 26px 0; border-radius: var(--crypto-radius); border: 1px solid var(--crypto-border); box-shadow: var(--crypto-shadow); }
.rank-table { width: 100%; border-collapse: collapse; min-width: 920px; background: var(--crypto-surface); }
.rank-table thead th {
    background: var(--crypto-surface-alt);
    color: var(--crypto-accent-strong);
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 14px 16px;
    border-bottom: 1px solid var(--crypto-border);
    white-space: nowrap;
}
.rank-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--crypto-border);
    font-size: 14.5px;
    color: var(--crypto-text-muted);
    vertical-align: top;
}
.rank-table tbody tr:last-child td { border-bottom: none; }
.rank-table tbody tr { transition: background .25s ease; }
.rank-table tbody tr:hover { background: var(--crypto-accent-soft); }
.rank-table__name { display: flex; align-items: center; gap: 10px; color: var(--crypto-text); font-weight: 700; }
.rank-table__badge {
    width: 30px; height: 30px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--crypto-accent-strong), var(--crypto-secondary));
    color: #1a1408;
    font-weight: 800;
    font-size: 13px;
    display: flex; align-items: center; justify-content: center;
}
.rank-table__rating { color: var(--crypto-accent-strong); font-weight: 700; }

.table-generic-wrap { overflow-x: auto; margin: 24px 0; border-radius: var(--crypto-radius); border: 1px solid var(--crypto-border); }
.table-generic { width: 100%; border-collapse: collapse; min-width: 520px; background: var(--crypto-surface); }
.table-generic th, .table-generic td { padding: 12px 16px; border-bottom: 1px solid var(--crypto-border); font-size: 14.5px; text-align: left; }
.table-generic th { background: var(--crypto-surface-alt); color: var(--crypto-accent-strong); text-transform: uppercase; font-size: 12.5px; letter-spacing: .03em; }
.table-generic td { color: var(--crypto-text-muted); }
.table-generic tr:last-child td { border-bottom: none; }

/* =====================================================================
   TOP-10 ENTRIES
   ===================================================================== */
.rank-entry {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    border-top: 1px solid var(--crypto-border);
}
.rank-entry:first-of-type { border-top: none; }
.rank-entry__number {
    flex: 0 0 auto;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: var(--crypto-surface-alt);
    border: 1px solid var(--crypto-accent);
    color: var(--crypto-accent-strong);
    font-size: 22px;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    transition: transform .3s ease, background .3s ease;
}
.rank-entry:hover .rank-entry__number { transform: scale(1.08); background: var(--crypto-accent); color: #1a1408; }
.rank-entry__body { flex: 1 1 auto; min-width: 0; }
.rank-entry__best-for {
    display: inline-block;
    margin-top: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--crypto-secondary-soft);
    border-left: 3px solid var(--crypto-secondary);
    color: var(--crypto-text);
    font-size: 14px;
}
.rank-entry__note {
    margin-top: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--crypto-accent-soft);
    border-left: 3px solid var(--crypto-accent);
    font-size: 14px;
    color: var(--crypto-text);
}
.rank-entry__cta { margin-top: 14px; }

/* =====================================================================
   CHECKLIST
   ===================================================================== */
.checklist { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 12px; }
.checklist li {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 18px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: 10px;
    color: var(--crypto-text-muted);
    transition: transform .25s ease, border-color .25s ease;
}
.checklist li:hover { transform: translateX(6px); border-color: var(--crypto-accent); }
.checklist__icon {
    flex: 0 0 auto;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--crypto-accent);
    color: #1a1408;
    display: flex; align-items: center; justify-content: center;
}
.checklist--numbered { counter-reset: step; }
.checklist--numbered li { counter-increment: step; }
.checklist--numbered .checklist__icon::before { content: counter(step); font-weight: 800; font-size: 13px; }
.checklist:not(.checklist--numbered) .checklist__icon svg { width: 14px; height: 14px; }

/* =====================================================================
   USE-CASE TABLE / LINK CARDS
   ===================================================================== */
.usecase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 24px 0; }
.usecase-card {
    background: var(--crypto-surface-alt);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 22px;
    transition: transform .3s ease, box-shadow .3s ease;
}
.usecase-card:hover { transform: translateY(-5px); box-shadow: var(--crypto-shadow); }
.usecase-card__title { font-size: 16px; font-weight: 700; color: var(--crypto-text); margin-bottom: 8px; }
.usecase-card__link { display: inline-block; margin: 6px 0 8px; font-weight: 700; }
.usecase-card__why { font-size: 13.5px; margin: 0; }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq { margin: 26px 0; display: grid; gap: 14px; }
.faq__item {
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: 12px;
    padding: 20px 22px;
    transition: border-color .25s ease, background .25s ease;
}
.faq__item:hover { border-color: var(--crypto-accent); background: var(--crypto-surface-alt); }
.faq__item h3 { margin-bottom: 8px; font-size: 17px; color: var(--crypto-text); }
.faq__item p { margin-bottom: 0; font-size: 14.5px; }

/* =====================================================================
   FORM (Add Your Service)
   ===================================================================== */
.service-form { margin: 30px 0; display: grid; gap: 18px; }
.service-form fieldset { border: 1px solid var(--crypto-border); border-radius: var(--crypto-radius); padding: 24px; }
.service-form legend { padding: 0 10px; color: var(--crypto-accent-strong); font-weight: 700; }
.service-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.service-form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--crypto-text); }
.service-form__hint { font-size: 12.5px; color: var(--crypto-text-muted); margin: 4px 0 0; }
.service-form input[type="text"],
.service-form input[type="url"],
.service-form input[type="email"],
.service-form input[type="number"],
.service-form select,
.service-form textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid var(--crypto-border);
    background: var(--crypto-bg-alt);
    color: var(--crypto-text);
    font-family: inherit;
    font-size: 14.5px;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.service-form textarea { min-height: 96px; resize: vertical; }
.service-form input:focus, .service-form select:focus, .service-form textarea:focus {
    outline: none;
    border-color: var(--crypto-accent);
    box-shadow: 0 0 0 3px var(--crypto-accent-soft);
}
.service-form__check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--crypto-text-muted); font-weight: 400; }
.service-form__check input { margin-top: 3px; }

/* =====================================================================
   EXCHANGE WIDGET
   ===================================================================== */
.exchange-widget {
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 18px;
    box-shadow: var(--crypto-shadow);
    display: inline-block;
}
.exchange-widget iframe { max-width: 100%; border-radius: 10px; }
.hero__widget { margin-top: 10px; }
.hero--with-widget .hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; max-width: none; }

/* =====================================================================
   404
   ===================================================================== */
.error404__wrapper { padding: 120px 0; background: var(--crypto-bg-alt); min-height: 60vh; display: flex; align-items: center; }
.error404__inner { text-align: center; }
.error404__code {
    font-size: clamp(80px, 16vw, 160px);
    font-weight: 800;
    background: linear-gradient(135deg, var(--crypto-accent-strong), var(--crypto-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}
.error404__title { margin-top: 10px; }
.error404__text { max-width: 480px; margin: 0 auto 26px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--crypto-bg-alt); border-top: 1px solid var(--crypto-border); padding: 56px 0 0; margin-top: 60px; }
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 40px;
}
.site-footer__brand-title { font-size: 19px; margin-bottom: 12px; color: var(--crypto-accent-strong); }
.site-footer__brand-text { font-size: 14px; }
.site-footer__col-title { color: var(--crypto-text); font-size: 14px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px; }
.site-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__menu a { color: var(--crypto-text-muted); font-size: 14.5px; }
.site-footer__menu a:hover { color: var(--crypto-accent-strong); padding-left: 4px; }
.site-footer__bottom {
    border-top: 1px solid var(--crypto-border);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: var(--crypto-text-muted);
}

/* =====================================================================
   SCROLL-REVEAL ANIMATION (toggled via IntersectionObserver in index.js)
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--parallax { will-change: transform; }

/* =====================================================================
   CHART (server-rendered inline SVG)
   ===================================================================== */
.chart { margin: 20px 0; }
.chart__svg { width: 100%; height: auto; }
.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: 11px; }
.chart__area { fill: var(--crypto-accent-soft); }
.chart__line { fill: none; stroke: var(--crypto-accent); stroke-width: 2.5; }
.chart__dot { fill: var(--crypto-accent-strong); }
.chart-empty { color: var(--crypto-text-muted); font-style: italic; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 768px) {
    .nav-primary { display: none; }
    .site-header__burger { display: flex; }
    .nav-mobile { display: block; }
    .hero { padding: 60px 0 44px; }
    .hero--with-widget .hero__inner { grid-template-columns: 1fr; }
    .media-block { grid-template-columns: 1fr; gap: 22px; }
    .media-block--reverse .media-block__img { order: 0; }
    .rank-entry { flex-direction: column; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .site-header__inner { padding: 12px 16px; }
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    .cards { grid-template-columns: 1fr; }
    .usecase-grid { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
    .rank-entry__number { width: 46px; height: 46px; font-size: 18px; }
    .service-form fieldset { padding: 16px; }
}
