/*
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 — Neon Luxury palette (referenced: Bybit dark UI style)
   ===================================================================== */
:root {
    --crypto-bg: #EFF8FF;
    --crypto-surface: #ffffff;
    --crypto-dark: #0D0303;
    --crypto-dark-soft: #171313;
    --crypto-accent: #BBEF1F;
    --crypto-accent-dark: #9BCB0E;
    --crypto-accent2: #FF0055;
    --crypto-text: #0D0303;
    --crypto-text-muted: #5B6472;
    --crypto-border: #E1E8F0;
    --crypto-section-y: 20px;
    --crypto-radius: 16px;
    --crypto-shadow: 0 10px 30px rgba(13, 3, 3, 0.08);
    --crypto-shadow-hover: 0 18px 40px rgba(13, 3, 3, 0.14);
}

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

html {
    scroll-behavior: smooth;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}
p a {
    color: #ff0000;
    font-weight: 700;
    text-decoration: underline;
}
ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

h1, h2, h3, h4 {
    margin: 0 0 16px;
    line-height: 1.25;
    color: var(--crypto-dark);
}

h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: clamp(18px, 2.2vw, 22px); }
h4 { font-size: 16px; }

p { margin: 0 0 14px; }

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

section {
    padding: var(--crypto-section-y) 0;
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.btn--primary {
    background: var(--crypto-accent);
    color: var(--crypto-dark);
    box-shadow: 0 0 0 rgba(187, 239, 31, 0);
}

.btn--primary:hover {
    background: var(--crypto-accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(187, 239, 31, 0.45);
}

.btn--secondary {
    background: transparent;
    color: var(--crypto-dark);
    border-color: var(--crypto-dark);
}

.btn--secondary:hover {
    background: var(--crypto-accent2);
    border-color: var(--crypto-accent2);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(255, 0, 85, 0.35);
}

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
    background: var(--crypto-dark);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
}

.site-header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
}

.site-header__logo img {
    max-height: 40px;
    width: auto;
}

.site-header__logo:hover {
    color: var(--crypto-accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu__item {
    position: relative;
}

.nav-menu__link {
    display: block;
    padding: 10px 16px;
    color: #E9F3FF;
    font-weight: 600;
    font-size: 15px;
    border-radius: 999px;
    transition: background .2s ease, color .2s ease;
}

.nav-menu__item:hover > .nav-menu__link,
.nav-menu__link.active {
    background: rgba(187, 239, 31, 0.12);
    color: var(--crypto-accent);
}

.nav-menu__item--has-children > .nav-menu__link::after {
    content: '▾';
    margin-left: 6px;
    font-size: 11px;
}

.nav-menu__submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--crypto-dark-soft);
    border-radius: 12px;
    padding: 10px;
    box-shadow: var(--crypto-shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    max-height: 60vh;
    overflow-y: auto;
}

.nav-menu__item--has-children:hover > .nav-menu__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu__submenu .nav-menu__link {
    color: #cfd8e3;
    border-radius: 8px;
    padding: 8px 12px;
}

.nav-menu__submenu .nav-menu__link:hover {
    background: rgba(255, 0, 85, 0.12);
    color: var(--crypto-accent2);
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger__line {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    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-nav {
    display: none;
    background: var(--crypto-dark-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.mobile-nav.is-open {
    max-height: 1200px;
}

.mobile-nav__list {
    padding: 10px 20px 20px;
}

.mobile-nav__link {
    display: block;
    padding: 12px 0;
    color: #E9F3FF;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav__link:hover {
    color: var(--crypto-accent);
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
    background: var(--crypto-dark);
    color: #fff;
    padding: 48px 0 40px;
    margin-bottom: 50px;
}

.hero__inner {
    display: grid;
    gap: 24px;
}

.hero h1 {
    color: #fff;
}

.hero p {
    color: #C7D3E0;
    font-size: 17px;
    max-width: 760px;
}

.hero__widget {
    margin-top: 20px;
}

/* =====================================================================
   EXCHANGE WIDGET
   ===================================================================== */
.exchange-widget {
    background: var(--crypto-surface);
    border-radius: var(--crypto-radius);
    padding: 16px;
    display: inline-block;
    box-shadow: var(--crypto-shadow);
    max-width: 100%;
    overflow-x: auto;
}

.exchange-widget iframe {
    max-width: 100%;
    border-radius: 12px;
}

/* =====================================================================
   CARDS / GRID
   ===================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: var(--crypto-surface);
    border-radius: var(--crypto-radius);
    padding: 24px;
    box-shadow: var(--crypto-shadow);
    border: 1px solid var(--crypto-border);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--crypto-shadow-hover);
    border-color: var(--crypto-accent);
}

.card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(187, 239, 31, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: transform .3s ease, background .3s ease;
}

.card:hover .card__icon {
    transform: scale(1.1) rotate(-4deg);
    background: rgba(255, 0, 85, 0.16);
}

.card__icon img {
    width: 28px;
    height: 28px;
}

.card__media {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: transform .5s ease, filter .5s ease;
}

.card:hover .card__media {
    transform: scale(1.06);
    filter: saturate(1.15);
}

.card__title {
    font-size: 19px;
    margin-bottom: 10px;
}

.card__text {
    color: var(--crypto-text-muted);
    font-size: 15px;
}

/* =====================================================================
   SECTION MEDIA (block image + text combos)
   ===================================================================== */
.section-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.section-media__image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow);
    transition: transform .6s ease, box-shadow .4s ease;
}

.section-media__image:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: var(--crypto-shadow-hover);
}

.section-media--reverse {
    direction: rtl;
}

.section-media--reverse > * {
    direction: ltr;
}

/* =====================================================================
   STEPS
   ===================================================================== */
.steps {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.steps__item {
    display: flex;
    gap: 16px;
    background: var(--crypto-surface);
    border-radius: var(--crypto-radius);
    padding: 20px;
    align-items: center;
    box-shadow: var(--crypto-shadow);
    transition: transform .3s ease, box-shadow .3s ease;
}

.steps__item:hover {
    transform: translateX(6px);
    box-shadow: var(--crypto-shadow-hover);
}

.steps__number {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--crypto-dark);
    color: var(--crypto-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.steps__title {
    margin: 0 0 6px;
    font-size: 17px;
}

.steps__text {
    margin: 0;
    color: var(--crypto-text-muted);
}

/* =====================================================================
   CHECKLIST
   ===================================================================== */
.checklist {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.checklist__item {
    position: relative;
    padding: 12px 16px 12px 44px;
    background: var(--crypto-surface);
    color: #000000;
    border-radius: 12px;
    box-shadow: var(--crypto-shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}

.checklist__item::before {
    content: '✓';
    position: absolute;
    left: 14px;
    top: 12px;
    color: var(--crypto-dark);
    background: var(--crypto-accent);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checklist__item:hover {
    transform: translateX(4px);
    box-shadow: var(--crypto-shadow-hover);
}

/* =====================================================================
   TABLES
   ===================================================================== */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow);
    margin: 20px 0;
}

.rate-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--crypto-surface);
    min-width: 480px;
}

.rate-table th,
.rate-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--crypto-border);
    font-size: 15px;
}

.rate-table th {
    background: var(--crypto-dark);
    color: var(--crypto-accent);
    font-weight: 700;
}

.rate-table tr:hover td {
    background: rgba(187, 239, 31, 0.08);
}

/* =====================================================================
   PRICE / CONVERTER WIDGETS
   ===================================================================== */
.price-snapshot {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: var(--crypto-dark);
    border-radius: var(--crypto-radius);
    padding: 24px;
    margin: 20px 0;
    color: #fff;
}

.price-snapshot__item {
    min-width: 140px;
}

.price-snapshot__label {
    font-size: 13px;
    color: #9fb0c2;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.price-snapshot__value {
    font-size: 24px;
    font-weight: 800;
    color: var(--crypto-accent);
}

.price-snapshot__value--up { color: var(--crypto-accent); }
.price-snapshot__value--down { color: var(--crypto-accent2); }

.price-chart {
    background: var(--crypto-surface);
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow);
    padding: 16px;
    margin: 20px 0;
}

.price-chart canvas {
    width: 100% !important;
    max-height: 360px;
}

.price-chart__svg {
    width: 100%;
    height: auto;
    display: block;
}

.price-chart__svg circle {
    cursor: pointer;
    transition: r .2s ease;
}

.price-chart__svg circle:hover {
    r: 6;
}

.converter {
    background: var(--crypto-surface);
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow);
    padding: 24px;
    margin: 20px 0;
    display: grid;
    gap: 16px;
    max-width: 520px;
}

.converter__field {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--crypto-border);
    border-radius: 12px;
    padding: 10px 16px;
    transition: border-color .25s ease;
}

.converter__field:focus-within {
    border-color: var(--crypto-accent);
}

.converter__input {
    border: none;
    outline: none;
    font-size: 18px;
    width: 100%;
    background: transparent;
    color: var(--crypto-text);
}

.converter__currency {
    font-weight: 700;
    color: var(--crypto-text-muted);
}

/* =====================================================================
   FAQ
   ===================================================================== */
.faq {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.faq__item {
    background: var(--crypto-surface);
    border-radius: 14px;
    box-shadow: var(--crypto-shadow);
    padding: 18px 22px;
    transition: box-shadow .3s ease, transform .3s ease;
}

.faq__item:hover {
    box-shadow: var(--crypto-shadow-hover);
    transform: translateY(-2px);
}

.faq__item h3 {
    margin: 0 0 8px;
    font-size: 17px;
    color: var(--crypto-dark);
}

.faq__item p {
    margin: 0;
    color: var(--crypto-text-muted);
}

/* =====================================================================
   LINK LISTS (route directories)
   ===================================================================== */
.link-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 16px 0;
}

.link-list__item a {
    display: block;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 600;
    transition: background .25s ease, color .25s ease, transform .25s ease, border-color .25s ease;
}

.link-list__item a:hover {
    background: var(--crypto-dark);
    color: var(--crypto-accent);
    border-color: var(--crypto-dark);
    transform: translateX(4px);
}

/* =====================================================================
   CTA BUTTONS GROUP
   ===================================================================== */
.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
}

.home-cta-button,
.converter-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid var(--crypto-dark);
    background: transparent;
    color: var(--crypto-dark);
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}

.home-cta-button:first-child,
.converter-cta-button:first-child {
    background: var(--crypto-accent);
    border-color: var(--crypto-accent);
}

.home-cta-button:first-child:hover,
.converter-cta-button:first-child:hover {
    background: var(--crypto-accent-dark);
    border-color: var(--crypto-accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(187, 239, 31, 0.45);
}

.home-cta-button:not(:first-child):hover,
.converter-cta-button:not(:first-child):hover {
    background: var(--crypto-accent2);
    border-color: var(--crypto-accent2);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(255, 0, 85, 0.35);
}

/* =====================================================================
   SITE FOOTER
   ===================================================================== */
.site-footer {
    background: var(--crypto-dark);
    color: #C7D3E0;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer__columns {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.footer__title {
    color: #fff;
    font-size: 16px;
    margin-bottom: 14px;
}

.footer__list {
    display: grid;
    gap: 10px;
}

.footer__link {
    color: #9fb0c2;
    font-size: 14px;
    transition: color .2s ease, padding-left .2s ease;
}

.footer__link:hover {
    color: var(--crypto-accent);
    padding-left: 4px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 30px;
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #7c8ba0;
}

.footer__bottom-menu {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer__bottom-menu a:hover {
    color: var(--crypto-accent);
}

/* =====================================================================
   REVEAL / SCROLL ANIMATIONS
   ===================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.parallax-el {
    will-change: transform;
}

/* =====================================================================
   404 PAGE
   ===================================================================== */
.error404__wrapper {
    background: var(--crypto-dark);
    color: #fff;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.error404__inner {
    text-align: center;
    padding: 60px 20px;
}

.error404__code {
    font-size: clamp(80px, 18vw, 160px);
    font-weight: 900;
    color: var(--crypto-accent);
    line-height: 1;
    text-shadow: 0 0 40px rgba(187, 239, 31, 0.5);
}

.error404__title {
    color: #fff;
    margin-top: 10px;
}

.error404__text {
    color: #C7D3E0;
}

.error404__actions {
    margin-top: 24px;
}

/* =====================================================================
   BLOG
   ===================================================================== */
.blog-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.blog-card {
    background: var(--crypto-surface);
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--crypto-shadow-hover);
}

.blog-card__media {
    width: 100%;
    height: 170px;
    object-fit: cover;
    transition: transform .5s ease;
    display: none;
}

.blog-card:hover .blog-card__media {
    transform: scale(1.08);
}

.blog-card__body {
    padding: 18px 20px;
}

.blog-card__title {
    font-size: 17px;
    margin-bottom: 8px;
}

.blog-card__excerpt {
    color: var(--crypto-text-muted);
    font-size: 14px;
}

.post-content {
    max-width: 820px;
    margin: 0 auto;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.post-content th,
.post-content td {
    padding: 10px 14px;
    border: 1px solid var(--crypto-border);
    text-align: left;
    font-size: 14px;
}

.post-content th {
    background: var(--crypto-dark);
    color: var(--crypto-accent);
}

/* =====================================================================
   NOTICE (API unavailable)
   ===================================================================== */
.data-notice {
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(255, 0, 85, 0.08);
    color: var(--crypto-text-muted);
    border: 1px dashed var(--crypto-accent2);
    font-size: 14px;
}

/* =====================================================================
   ADAPTIVE
   ===================================================================== */
@media (max-width: 768px) {
    .nav-menu,
    .site-header__inner .nav-menu {
        display: none;
    }

    .burger {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .cards-grid,
    .blog-list {
        grid-template-columns: 1fr;
    }

    .section-media,
    .section-media--reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .footer__columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .link-list {
        grid-template-columns: 1fr;
    }

    :root {
        --crypto-section-y: 18px;
    }
}

@media (max-width: 480px) {
    .footer__columns {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 16px;
    }

    .btn {
        width: 100%;
    }

    .cta-group {
        flex-direction: column;
    }

    :root {
        --crypto-section-y: 15px;
    }
}
