/*
Theme Name: Lets Trading
Theme URI: https://letscms.com
Author: LetsCMS
Author URI: https://letscms.com
Description: A modern, dark-themed crypto trading platform WordPress theme. Built for speed, clarity, and a professional crypto trading experience similar to Binance/Coinbase.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lets-trading
Tags: dark, crypto, trading, responsive, custom-logo, custom-colors, blog, e-commerce
*/

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

:root {
    /* Brand Colors */
    --color-primary: #F0B90B;
    /* Binance Yellow */
    --color-primary-hover: #d4a20a;
    --color-secondary: #1E2026;
    --color-accent: #02C076;
    /* Green for gains */
    --color-danger: #F6465D;
    /* Red for losses */

    /* Background Layers */
    --bg-base: #110b0e;
    --bg-surface: #1E2026;
    --bg-card: #181A20;
    --bg-card-hover: #1E2228;
    --bg-hover: #2B2F36;

    /* Text */
    --text-primary: #EAECEF;
    --text-secondary: #848E9C;
    --text-muted: #474D57;

    /* Borders */
    --border-color: #2B2F36;
    --border-focus: #F0B90B;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 40px;
    --spacing-2xl: 64px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(240, 185, 11, 0.15);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Layout */
    --container-max: 1280px;
    --header-height: 64px;
}

/* Light Mode Overrides */
body.light-mode {
    --bg-base: #FAFAFA;
    --bg-surface: #FFFFFF;
    --bg-card: #F5F5F5;
    --bg-card-hover: #EBEBEB;
    --bg-hover: #EEEEEE;
    --text-primary: #1E2026;
    --text-secondary: #474D57;
    --text-muted: #848E9C;
    --border-color: #E8E8E8;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-hover);
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    padding-left: var(--spacing-lg);
}

li {
    margin-bottom: var(--spacing-xs);
}

/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
}

.section {
    padding: var(--spacing-2xl) 0;
}

.section-sm {
    padding: var(--spacing-xl) 0;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.gap-lg {
    gap: var(--spacing-lg);
}

.grid {
    display: grid;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.text-primary {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-accent {
    color: var(--color-accent) !important;
}

.text-danger {
    color: var(--color-danger) !important;
}

.text-yellow {
    color: var(--color-primary) !important;
}

.font-mono {
    font-family: var(--font-mono);
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    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: var(--spacing-sm);
    padding: 10px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-sans);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
    line-height: 1;
}

.btn-primary {
    background: var(--color-primary);
    color: #0B0E11;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: #0B0E11;
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #0B0E11;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-danger {
    background: var(--color-danger);
    color: #fff;
    border-color: var(--color-danger);
}

.btn-success {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.0625rem;
}

.btn-xl {
    padding: 16px 40px;
    font-size: 1.125rem;
}

.btn-icon {
    padding: 8px;
    border-radius: var(--radius-sm);
}

/* =========================================================
   CARDS
   ========================================================= */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.card-header {
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

/* =========================================================
   BADGES & TAGS
   ========================================================= */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-up {
    background: rgba(2, 192, 118, 0.15);
    color: var(--color-accent);
}

.badge-down {
    background: rgba(246, 70, 93, 0.15);
    color: var(--color-danger);
}

.badge-neutral {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

/* =========================================================
   FORMS
   ========================================================= */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    transition: border-color var(--transition-fast);
    outline: none;
}

.form-input:focus {
    border-color: var(--border-focus);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* =========================================================
   TABLE
   ========================================================= */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.data-table th {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: left;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.data-table tr:hover td {
    background: var(--bg-hover);
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* =========================================================
   TICKER BAR
   ========================================================= */
.ticker-bar {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    height: 36px;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: flex;
    gap: var(--spacing-xl);
    animation: ticker-scroll 40s linear infinite;
    white-space: nowrap;
    padding-left: 100%;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    flex-shrink: 0;
}

.ticker-symbol {
    color: var(--text-primary);
    font-weight: 600;
}

.ticker-price {
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =========================================================
   SECTION HEADERS
   ========================================================= */
.section-header {
    margin-bottom: var(--spacing-xl);
}

.section-label {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(240, 185, 11, 0.1);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 560px;
}

/* =========================================================
   PRICE DISPLAY
   ========================================================= */
.price-up {
    color: var(--color-accent);
}

.price-down {
    color: var(--color-danger);
}

.price-neutral {
    color: var(--text-secondary);
}

.change-pill {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

.change-pill.up {
    background: rgba(2, 192, 118, 0.12);
    color: var(--color-accent);
}

.change-pill.down {
    background: rgba(246, 70, 93, 0.12);
    color: var(--color-danger);
}

/* =========================================================
   DIVIDERS & SEPARATORS
   ========================================================= */
.divider {
    height: 1px;
    background: var(--border-color);
    margin: var(--spacing-lg) 0;
}

/* =========================================================
   SCROLLBAR
   ========================================================= */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* =========================================================
   RESPONSIVE GRID BREAKDOWNS
   ========================================================= */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .container {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }

    .section {
        padding: var(--spacing-xl) 0;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 16px;
    }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* =========================================================
   WORDPRESS CORE CLASSES
   ========================================================= */
.alignleft {
    float: left;
    margin: 0 var(--spacing-lg) var(--spacing-md) 0;
}

.alignright {
    float: right;
    margin: 0 0 var(--spacing-md) var(--spacing-lg);
}

.aligncenter {
    margin: 0 auto var(--spacing-md);
    display: block;
}

.alignwide {
    max-width: calc(var(--container-max) + 160px);
}

.alignfull {
    max-width: 100%;
    width: 100%;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
}

.sticky {
    /* WordPress sticky post */
}

.bypostauthor {
    /* WordPress post author */
}

/* =========================================================
   SITE WRAPPER
   ========================================================= */
#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#content {
    flex: 1;
    padding-top: var(--header-height);
}

/* =========================================================
   LOADING STATES
   ========================================================= */
.skeleton {
    background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-hover) 50%, var(--bg-surface) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(240, 185, 11, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(240, 185, 11, 0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease both;
}

.animate-fadeIn {
    animation: fadeIn 0.4s ease both;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}