/*
Theme Name: AI Gold Trading
Theme URI: https://xauusd.22web.org/
Author: AI Gold Trading
Description: Professional dark trading dashboard theme for AI Gold Signals.
Version: 1.0.0
Text Domain: ai-gold-trading
*/

:root {
    --gold: #f5c542;
    --gold-light: #ffe08a;
    --bg: #070a0f;
    --bg-soft: #0d121a;
    --panel: #111823;
    --panel-2: #151e2b;
    --border: rgba(255,255,255,.08);
    --text: #f4f7fb;
    --muted: #8d99aa;
    --green: #16d98b;
    --red: #ff5364;
    --blue: #4da3ff;
    --shadow: 0 20px 60px rgba(0,0,0,.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 15% 10%, rgba(245,197,66,.08), transparent 30%),
        radial-gradient(circle at 85% 20%, rgba(77,163,255,.06), transparent 28%),
        var(--bg);
    color: var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Tahoma,
        Arial,
        sans-serif;
    line-height: 1.7;
}

a {
    color: var(--gold);
    text-decoration: none;
}

a:hover {
    color: var(--gold-light);
}

img {
    max-width: 100%;
    height: auto;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7,10,15,.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #111;
    background: linear-gradient(135deg, #ffe58a, #d79e17);
    box-shadow: 0 8px 25px rgba(245,197,66,.2);
    font-size: 21px;
}

.brand-title {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: .3px;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 11px;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    color: #cbd3df;
    padding: 9px 13px;
    border-radius: 9px;
    font-size: 14px;
}

.main-nav a:hover {
    background: rgba(255,255,255,.05);
    color: var(--gold);
}

.account-button {
    border: 1px solid rgba(245,197,66,.35);
    background: rgba(245,197,66,.08);
    color: var(--gold) !important;
}

/* Hero */

.hero {
    padding: 75px 0 45px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(245,197,66,.25);
    background: rgba(245,197,66,.07);
    color: var(--gold);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 18px;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(22,217,139,.1);
    animation: livePulse 1.7s infinite;
}

@keyframes livePulse {
    0%,100% {
        box-shadow: 0 0 0 4px rgba(22,217,139,.12);
    }
    50% {
        box-shadow: 0 0 0 9px rgba(22,217,139,0);
    }
}

.hero h1 {
    margin: 0;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--gold);
}

.hero p {
    max-width: 680px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: 16px;
}

/* Dashboard */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 20px;
    margin-bottom: 25px;
}

.trading-panel,
.ai-gold-card,
.dashboard-stat,
.content-card {
    background:
        linear-gradient(145deg, rgba(255,255,255,.035), transparent),
        var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.trading-panel {
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.trading-panel::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    background: rgba(245,197,66,.08);
    border-radius: 50%;
    filter: blur(70px);
    right: -80px;
    top: -80px;
    pointer-events: none;
}

.panel-label {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.symbol {
    margin-top: 4px;
    font-size: 27px;
    font-weight: 800;
}

.symbol small {
    color: var(--gold);
    font-size: 12px;
    margin-left: 7px;
}

.price-display {
    margin-top: 25px;
    font-size: clamp(42px, 8vw, 76px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -3px;
}

.price-display .currency {
    color: var(--gold);
    font-size: .38em;
    vertical-align: middle;
    letter-spacing: 0;
}

.price-change {
    margin-top: 13px;
    color: var(--green);
    font-size: 14px;
}

.stats-column {
    display: grid;
    gap: 20px;
}

.dashboard-stat {
    padding: 23px;
}

.stat-title {
    color: var(--muted);
    font-size: 12px;
}

.stat-value {
    margin-top: 7px;
    font-size: 25px;
    font-weight: 800;
}

.status-online {
    color: var(--green);
}

.status-offline {
    color: var(--red);
}

/* Shortcode area */

.signal-section {
    margin: 30px 0;
}

.section-heading {
    margin-bottom: 15px;
}

.section-heading h2 {
    margin: 0;
    font-size: 25px;
}

.section-heading p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 13px;
}

/*
 * تنسيق الإضافة الحالية
 */

.ai-gold-card {
    padding: 26px;
    margin: 0 0 22px;
}

.ai-gold-card h2 {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 10px;
}

.ai-gold-price {
    font-size: clamp(40px, 7vw, 65px);
    line-height: 1;
    color: var(--gold);
    font-weight: 900;
    margin-bottom: 28px;
}

.ai-gold-signal {
    min-height: 76px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 1px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.025);
}

.ai-gold-signal.buy {
    color: var(--green);
    background: rgba(22,217,139,.08);
    border-color: rgba(22,217,139,.25);
}

.ai-gold-signal.sell {
    color: var(--red);
    background: rgba(255,83,100,.08);
    border-color: rgba(255,83,100,.25);
}

.ai-gold-signal.hold {
    color: var(--gold);
    background: rgba(245,197,66,.07);
}

.ai-gold-updated {
    margin-top: 10px;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

/* History */

.ai-gold-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ai-gold-history-table th {
    color: var(--muted);
    font-weight: 700;
    background: rgba(255,255,255,.025);
}

.ai-gold-history-table th,
.ai-gold-history-table td {
    padding: 13px 11px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.ai-gold-history-table tr:hover td {
    background: rgba(255,255,255,.018);
}

/* Locked */

.ai-gold-locked {
    text-align: center;
    padding: 45px 25px;
    border: 1px solid rgba(245,197,66,.18);
    border-radius: 18px;
    background: rgba(245,197,66,.045);
}

.ai-gold-locked p:first-child {
    font-size: 18px;
    font-weight: 800;
}

/* Footer */

.site-footer {
    margin-top: 70px;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* Responsive */

@media (max-width: 850px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .main-nav {
        display: none;
    }

    .hero {
        padding-top: 50px;
    }
}

@media (max-width: 650px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .header-inner {
        min-height: 66px;
    }

    .brand-subtitle {
        display: none;
    }

    .trading-panel,
    .ai-gold-card {
        padding: 20px;
        border-radius: 16px;
    }

    .ai-gold-history-table {
        min-width: 850px;
    }

    .ai-gold-card:has(.ai-gold-history-table) {
        overflow-x: auto;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}
