/* ===========================================================
   ذهبي — Shared theme for standalone pages (about/contact/blog/etc.)
   نفس ألوان ومتغيرات index.html بالظبط عشان يبقى في اتساق كامل
   =========================================================== */
:root {
    --bg-color: #0d1117;
    --card-bg: #161b22;
    --card-bg-elevated: #1c2128;
    --text-color: #f0f6fc;
    --text-muted: #8b949e;
    --gold-primary: #e3b341;
    --gold-bright: #f0c040;
    --gold-dark: #b8860b;
    --border-gold: rgba(227, 179, 65, 0.25);
    --border-subtle: rgba(255,255,255,0.06);
    --success: #3fb950;
    --danger: #f85149;
    --warning: #d29922;
    --info: #58a6ff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER (نفس شكل التطبيق) ===== */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(180deg, var(--card-bg) 0%, rgba(22,27,34,0.95) 100%);
    border-bottom: 1px solid var(--border-gold);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}
.app-header a.logo-link { display:flex; align-items:center; gap:8px; text-decoration:none; }
.logo-text {
    font-size: 22px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-bright) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.header-back {
    display: flex; align-items: center; gap: 6px;
    color: var(--gold-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border-gold);
    background: var(--card-bg-elevated);
    padding: 8px 14px;
    border-radius: 10px;
    transition: all .2s ease;
}
.header-back:hover { background: var(--gold-primary); color:#000; }

/* ===== LAYOUT ===== */
main.page-wrap {
    flex: 1;
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    padding: 28px 16px 60px;
}
.eyebrow {
    display: block;
    color: var(--gold-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 8px;
}
.page-wrap h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.4;
}
.page-wrap h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold-primary);
    margin: 24px 0 10px;
}
.page-wrap p, .page-wrap li {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.95;
    margin-bottom: 10px;
    max-width: 72ch;
}
.page-wrap ul, .page-wrap ol { padding-inline-start: 20px; margin-bottom: 12px; }
.page-wrap a { color: var(--gold-bright); }
.page-wrap strong { color: var(--text-color); }
.breadcrumb { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-primary); }

/* ===== CARDS (نفس تصميم كروت التطبيق) ===== */
.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 16px;
}
.contact-card.center { text-align: center; }
.contact-card i { font-size: 34px; color: var(--gold-primary); margin-bottom: 10px; display:block; }
.contact-card h3 { font-size: 16px; font-weight: 700; color: var(--text-color); margin-bottom: 6px; }
.contact-card p { margin-bottom: 4px; }
.contact-card a.email-link { color: var(--gold-primary); font-weight: 600; text-decoration:none; }
.contact-card a.email-link:hover { text-decoration: underline; }

.price-mini-card {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.price-mini-card .label { font-size: 13px; color: var(--text-muted); }
.price-mini-card .value { font-size: 22px; font-weight: 800; color: var(--gold-primary); }

.article-card {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 14px;
    display: block;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease;
}
.article-card:hover { border-color: var(--gold-primary); transform: translateY(-2px); }
.article-card h3 { color: var(--text-color); font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.article-card p { color: var(--text-muted); font-size: 13px; margin-bottom: 0; }
.article-card .meta { color: var(--gold-primary); font-size: 11.5px; margin-top: 8px; display:block; }

.related-box {
    background: var(--card-bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 16px;
    margin-top: 30px;
}
.related-box h3 { font-size: 14px; color: var(--gold-primary); margin-bottom: 10px; }
.related-box ul { list-style:none; padding:0; margin:0; }
.related-box li { margin-bottom: 8px; }
.related-box a { color: var(--text-color); font-size: 13.5px; text-decoration:none; }
.related-box a:hover { color: var(--gold-primary); }

/* ===== AD SLOT (مساحة اعلانية جاهزة) ===== */
.ad-slot {
    background: var(--card-bg-elevated);
    border: 1px dashed var(--border-subtle);
    border-radius: 12px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 11px;
    margin: 22px 0;
    overflow: hidden;
}

/* ===== BUTTONS ===== */
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #0d1117;
    font-weight: 700;
    font-size: 13.5px;
    padding: 11px 20px;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

/* ===== FOOTER ===== */
footer.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 20px 16px 90px;
    text-align: center;
}
footer.site-footer p { color: var(--text-muted); font-size: 12px; margin-bottom: 8px; }
footer.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
footer.site-footer .foot-links a { color: var(--text-muted); font-size: 12px; text-decoration: none; }
footer.site-footer .foot-links a:hover { color: var(--gold-primary); }

/* ===== 404 ===== */
.error-page { text-align: center; padding: 60px 16px; }
.error-page .code { font-size: 90px; font-weight: 800; background: linear-gradient(135deg, var(--gold-primary), var(--gold-bright)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip:text; line-height: 1; }

@media (max-width: 480px) {
    main.page-wrap { padding: 20px 14px 50px; }
    .page-wrap h1 { font-size: 21px; }
    .logo-text { font-size: 19px; }
}
