/*
Theme Name: Elzahab Theme
Theme URI: https://elzahab.com
Author: Elzahab
Author URI: https://elzahab.com
Description: الثيم الرسمي لمنصة الذهب
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: elzahab
*/

:root {
    --gold: #c9a227;
    --gold-light: #e2c45a;

    --bg: #f7f5ef;
    --surface: #ffffff;
    --surface-soft: #f1eee5;

    --text: #171717;
    --text-soft: #666666;
    --border: #e6e0d2;

    --header-bg: rgba(255, 255, 255, 0.92);

    --container: 1180px;
    --radius: 14px;
}

/* Dark Mode */

html[data-theme="dark"] {
    --bg: #0d0f12;
    --surface: #15181d;
    --surface-soft: #1c2026;

    --text: #f4f1e8;
    --text-soft: #aaa69c;
    --border: #292d33;

    --header-bg: rgba(13, 15, 18, 0.94);
}

/* Reset */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: var(--bg);
    color: var(--text);

    font-family:
        Tahoma,
        Arial,
        sans-serif;

    line-height: 1.8;

    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* Container */

.elzahab-container {
    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin-inline: auto;
}

/* Header */

.elzahab-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: var(--header-bg);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(12px);
}

.elzahab-header-inner {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

/* Logo */

.elzahab-logo {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 24px;
    font-weight: 800;

    white-space: nowrap;
}

.elzahab-logo-mark {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        var(--gold-light),
        var(--gold)
    );

    color: #16130b;

    font-size: 18px;
    font-weight: 900;

    box-shadow:
        0 5px 18px rgba(201, 162, 39, 0.22);
}

/* Navigation */

.elzahab-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.elzahab-nav a {
    color: var(--text-soft);

    font-size: 15px;
    font-weight: 600;

    transition: color 0.2s ease;
}

.elzahab-nav a:hover {
    color: var(--gold);
}

/* Theme Toggle */

.elzahab-theme-toggle {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 1px solid var(--border);
    border-radius: 50%;

    background: var(--surface);
    color: var(--text);

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.elzahab-theme-toggle:hover {
    border-color: var(--gold);
    transform: translateY(-1px);
}

/* Main */

.elzahab-main {
    min-height: 70vh;
    padding-block: 60px;
}

/* Hero */

.elzahab-hero {
    padding-block: 55px;

    text-align: center;
}

.elzahab-hero h1 {
    margin: 0 0 12px;

    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.25;

    font-weight: 900;
}

.elzahab-hero h1 span {
    color: var(--gold);
}

.elzahab-hero p {
    max-width: 650px;

    margin: 0 auto;

    color: var(--text-soft);

    font-size: 18px;
}

/* Cards */

.elzahab-card {
    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 25px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.elzahab-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
}

/* Footer */

.elzahab-footer {
    margin-top: 50px;

    border-top: 1px solid var(--border);

    padding-block: 30px;

    color: var(--text-soft);

    font-size: 14px;
}

.elzahab-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

/* Mobile */

@media (max-width: 800px) {

    .elzahab-container {
        width: min(
            calc(100% - 28px),
            var(--container)
        );
    }

    .elzahab-header-inner {
        min-height: 66px;
    }

    .elzahab-nav {
        display: none;
    }

    .elzahab-main {
        padding-block: 35px;
    }

    .elzahab-hero {
        padding-block: 35px;
    }

    .elzahab-hero h1 {
        font-size: 34px;
    }

    .elzahab-hero p {
        font-size: 16px;
    }

    .elzahab-footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================================
   ELZAHAB HOME v0.2
   ========================================================= */


/* Header Improvements */

.elzahab-logo-name {
    font-weight: 800;
}

.elzahab-header-inner {
    gap: 35px;
}

.elzahab-nav {
    flex: 1;
    justify-content: center;
}

.elzahab-nav a {
    position: relative;
    padding-block: 8px;
}

.elzahab-nav a::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background: var(--gold);

    transition: width 0.2s ease;
}

.elzahab-nav a:hover::after {
    width: 100%;
}


/* Hero */

.elzahab-hero {
    padding-block: 80px 55px;
    text-align: center;
}

.elzahab-hero-content {
    max-width: 800px;
    margin-inline: auto;
}

.elzahab-eyebrow {
    display: inline-block;

    margin-bottom: 15px;

    color: var(--gold);

    font-size: 14px;
    font-weight: 700;
}

.elzahab-hero h1 {
    margin: 0;

    font-size: clamp(38px, 6vw, 64px);

    line-height: 1.25;

    font-weight: 900;
}

.elzahab-hero h1 span {
    color: var(--gold);
}

.elzahab-hero p {
    max-width: 680px;

    margin: 20px auto 0;

    color: var(--text-soft);

    font-size: 18px;
}


/* Section Heading */

.elzahab-section-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 25px;

    margin-bottom: 25px;
}

.elzahab-section-label {
    display: block;

    margin-bottom: 5px;

    color: var(--gold);

    font-size: 13px;
    font-weight: 800;
}

.elzahab-section-heading h2 {
    margin: 0;

    font-size: 27px;

    line-height: 1.4;
}

.elzahab-update {
    color: var(--text-soft);

    font-size: 13px;
}


/* Price Grid */

.elzahab-price-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 14px;
}


/* Price Card */

.elzahab-price-card {
    position: relative;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 20px;

    overflow: hidden;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.elzahab-price-card::before {
    content: "";

    position: absolute;

    top: 0;
    right: 0;
    left: 0;

    height: 3px;

    background: transparent;
}

.elzahab-price-card:hover {
    transform: translateY(-3px);

    border-color: var(--gold);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .elzahab-price-card:hover {
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25);
}

.elzahab-price-card.featured {
    border-color: var(--gold);
}

.elzahab-price-card.featured::before {
    background: var(--gold);
}


/* Price Top */

.elzahab-price-top {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 18px;
}

.elzahab-karat {
    color: var(--text-soft);

    font-size: 14px;
    font-weight: 700;
}

.elzahab-price-change {
    color: var(--text-soft);

    font-size: 15px;
    font-weight: 800;
}

.elzahab-price-change.up {
    color: #29945d;
}


/* Price Value */

.elzahab-price-value {
    display: block;

    margin-bottom: 2px;

    color: var(--text);

    font-size: 27px;

    line-height: 1.2;
}

.elzahab-price-unit {
    color: var(--text-soft);

    font-size: 12px;
}


/* Price Note */

.elzahab-price-note {
    margin-top: 15px;

    color: var(--text-soft);

    font-size: 12px;
}

.elzahab-price-note span {
    color: #29945d;
}


/* Intro */

.elzahab-intro-section {
    padding-block: 55px 70px;
}

.elzahab-intro-card {
    position: relative;

    background:
        linear-gradient(
            135deg,
            var(--surface),
            var(--surface-soft)
        );

    border: 1px solid var(--border);

    border-radius: 18px;

    padding: 55px;
}

.elzahab-intro-content {
    max-width: 720px;
}

.elzahab-intro-content h2 {
    margin: 0;

    font-size: clamp(28px, 4vw, 42px);

    line-height: 1.35;
}

.elzahab-intro-content h2 span {
    color: var(--gold);
}

.elzahab-intro-content p {
    max-width: 650px;

    margin: 18px 0 0;

    color: var(--text-soft);

    font-size: 17px;
}


/* Mobile */

@media (max-width: 1000px) {

    .elzahab-price-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 700px) {

    .elzahab-header-inner {
        gap: 12px;
    }

    .elzahab-nav {
        display: none;
    }

    .elzahab-logo {
        font-size: 20px;
    }

    .elzahab-logo-mark {
        width: 34px;
        height: 34px;
    }

    .elzahab-hero {
        padding-block: 55px 35px;
    }

    .elzahab-hero h1 {
        font-size: 37px;
    }

    .elzahab-hero p {
        font-size: 16px;
    }

    .elzahab-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .elzahab-price-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .elzahab-price-card {
        padding: 17px;
    }

    .elzahab-price-value {
        font-size: 23px;
    }

    .elzahab-intro-card {
        padding: 30px 24px;
    }

}

@media (max-width: 430px) {

    .elzahab-price-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   GOLD PRICES SECTION
   ========================================================= */

.elzahab-prices-section {
    padding-block: 20px 60px;
}


/* Update */

.elzahab-update-box {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--text-soft);

    font-size: 12px;
}

.elzahab-update-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #29945d;

    box-shadow:
        0 0 0 4px rgba(41, 148, 93, 0.10);
}


/* Price Card */

.elzahab-price-card {
    min-height: 175px;

    display: flex;
    flex-direction: column;

    justify-content: space-between;
}


/* Description */

.elzahab-price-description {
    display: block;

    margin-top: 2px;

    color: var(--text-soft);

    font-size: 11px;
    line-height: 1.5;
}


/* Main Price */

.elzahab-price-main {
    display: flex;

    align-items: baseline;

    gap: 7px;

    margin-top: 15px;
}

.elzahab-price-value {
    letter-spacing: -0.5px;
}

.elzahab-price-currency {
    color: var(--text-soft);

    font-size: 12px;
    font-weight: 600;
}

.elzahab-price-unit {
    display: block;

    color: var(--text-soft);

    font-size: 11px;
}


/* Featured Card */

.elzahab-price-card.featured {
    background:
        linear-gradient(
            145deg,
            var(--surface),
            var(--surface-soft)
        );

    box-shadow:
        0 8px 28px rgba(201, 162, 39, 0.08);
}

html[data-theme="dark"]
.elzahab-price-card.featured {
    box-shadow:
        0 8px 28px rgba(201, 162, 39, 0.05);
}


/* Change */

.elzahab-price-change {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--surface-soft);

    font-size: 14px;
}

.elzahab-price-change.up {
    color: #29945d;

    background:
        rgba(41, 148, 93, 0.10);
}


/* Footer */

.elzahab-price-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 16px;

    padding-top: 15px;

    border-top: 1px solid var(--border);
}

.elzahab-price-note {
    display: flex;

    align-items: center;

    gap: 7px;

    color: var(--text-soft);

    font-size: 11px;
}

.elzahab-note-icon {
    color: #29945d;

    font-size: 9px;
}


/* Details Link */

.elzahab-prices-link {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: var(--gold);

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;

    transition:
        gap 0.2s ease,
        color 0.2s ease;
}

.elzahab-prices-link:hover {
    color: var(--gold-light);

    gap: 10px;
}


/* Tablet */

@media (max-width: 1000px) {

    .elzahab-price-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* Mobile */

@media (max-width: 700px) {

    .elzahab-prices-section {
        padding-block: 10px 40px;
    }

    .elzahab-update-box {
        font-size: 11px;
    }

    .elzahab-price-footer {
        align-items: flex-start;

        flex-direction: column;

        gap: 12px;
    }

}


/* Small Mobile */

@media (max-width: 430px) {

    .elzahab-price-card {
        min-height: 155px;
    }

}