:root {
    --bg-night: #150E0A;
    --gold-royal: #D4AF37;
    --gold-gradient: linear-gradient(135deg, #E6C27A 0%, #D4AF37 50%, #997A15 100%);
    --red-burgundy: #7A2011;
    --olive-dark: #3B3C24;
    --paper-cream: #F4EBD0;
    --text-dark: #2C1A14;
    --text-light: #FDFBF7;
    --gold-glow: rgba(212, 175, 55, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-night);
    background-image:
        radial-gradient(circle at 50% 50%, rgba(122, 32, 17, 0.15) 0%, var(--bg-night) 70%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: var(--text-light);
    font-family: 'Cairo', sans-serif;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a { color: var(--gold-royal); }
img { max-width: 100%; }

/* ===== الترويسة ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(21, 14, 10, 0.92);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.logo {
    font-family: 'Aref Ruqaa', serif;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.3em;
    text-decoration: none;
    letter-spacing: 1px;
    line-height: 1.3;
}
.main-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.main-nav a {
    padding: 5px 16px;
    border-radius: 30px;
    text-decoration: none;
    color: #ddd;
    font-weight: 600;
    border: 1px solid transparent;
    transition: 0.3s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
    color: var(--gold-royal);
    border-color: rgba(212, 175, 55, 0.5);
}

/* ===== الصفحات ===== */
.page { width: 100%; max-width: 1000px; margin: 30px auto; padding: 0 16px; flex: 1; }
.breadcrumb { font-size: 0.95em; margin-bottom: 14px; color: #cbbd9f; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.card {
    background: var(--paper-cream);
    color: var(--text-dark);
    border: 4px solid var(--gold-royal);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), inset 0 0 50px rgba(139, 69, 19, 0.1);
    background-image: repeating-linear-gradient(45deg, rgba(139, 69, 19, 0.04) 0px, rgba(139, 69, 19, 0.04) 2px, transparent 2px, transparent 4px);
}
.card a { color: var(--red-burgundy); font-weight: 700; }

.page-title {
    font-family: 'Aref Ruqaa', serif;
    color: var(--red-burgundy);
    font-size: 3em;
    text-align: center;
    margin-bottom: 16px;
    border-bottom: 2px dashed rgba(122, 32, 17, 0.3);
    padding-bottom: 12px;
    line-height: 1.4;
}
.lead { text-align: center; font-size: 1.25em; color: #4a3328; margin-bottom: 14px; }
.meta { color: #7a6a5f; font-size: 0.95em; margin-bottom: 10px; }

.legal h2 { color: var(--text-dark); font-size: 1.5em; margin: 22px 0 8px; }
.legal p, .legal ul, .legal dl { font-size: 1.1em; line-height: 1.9; margin-bottom: 14px; color: #3a2a22; }
.legal ul { margin-right: 25px; }

.glossary { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; }
.glossary dt { font-weight: 800; color: var(--red-burgundy); font-family: 'Aref Ruqaa', serif; font-size: 1.3em; }
.glossary dd { margin: 0; }

/* ===== صفحة الوصفة ===== */
.facts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 18px; }
.facts span { background: rgba(139, 69, 19, 0.1); border-radius: 30px; padding: 3px 16px; font-weight: 700; font-size: 0.95em; }
.recipe-figure { margin: 0 0 18px; }
.recipe-figure img {
    display: block;
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: 14px;
    border: 3px solid var(--gold-royal);
}
.about-dish { font-size: 1.15em; line-height: 1.9; margin-bottom: 24px; color: #3a2a22; }
.recipe-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px; }
.recipe h2 { color: var(--red-burgundy); font-size: 1.8em; margin-bottom: 15px; font-family: 'Aref Ruqaa', serif; }
.ingredients-list { list-style: none; }
.ingredients-list li {
    background: rgba(139, 69, 19, 0.08);
    padding: 12px 15px;
    border-radius: 8px;
    border-right: 4px solid var(--gold-royal);
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: bold;
}
.steps-list { font-size: 1.2em; line-height: 2; padding-right: 25px; }
.steps-list li { margin-bottom: 15px; }
.secret-card {
    background: var(--bg-night);
    border: 2px solid var(--gold-royal);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin-top: 30px;
    color: var(--paper-cream);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.recipe .secret-card h2 { color: var(--gold-royal); font-size: 2.2em; margin-bottom: 10px; }
.secret-card p { font-family: 'Aref Ruqaa', serif; font-size: 1.8em; line-height: 1.6; }
.note { margin-top: 20px; font-size: 0.95em; color: #6a584c; text-align: center; }
.prev-next { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.prev-next a { text-decoration: none; }

/* ===== الأقسام وبطاقات الوصفات ===== */
.section { width: 100%; max-width: 1200px; margin: 46px auto; padding: 0 16px; }
.section > h2 {
    font-family: 'Aref Ruqaa', serif;
    color: var(--gold-royal);
    font-size: 2.4em;
    text-align: center;
    margin-bottom: 8px;
}
.section-blurb { text-align: center; color: #cbbd9f; margin-bottom: 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.recipe-card {
    display: block;
    text-decoration: none;
    background: #1d130d;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
}
.recipe-card:hover { transform: translateY(-4px); border-color: var(--gold-royal); box-shadow: 0 0 20px var(--gold-glow); }
.recipe-card img { display: block; width: 100%; height: 160px; object-fit: cover; }
.rc-body { padding: 12px 14px 16px; }
.rc-body h3 { font-family: 'Aref Ruqaa', serif; color: var(--gold-royal); font-size: 1.5em; line-height: 1.4; }
.rc-body p { color: #cdbfa8; font-size: 0.95em; line-height: 1.6; }

.intro { max-width: 800px; text-align: center; color: #e0d5c1; font-size: 1.1em; }
.intro p { margin-bottom: 14px; }

/* ===== نموذج الاتصال ===== */
.contact-form { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; max-width: 560px; }
.contact-form label { font-weight: 700; }
.contact-form input, .contact-form textarea {
    font-family: 'Cairo', sans-serif;
    font-size: 1em;
    padding: 10px 12px;
    border-radius: 10px;
    border: 2px solid rgba(122, 32, 17, 0.4);
    background: #fffaf0;
    color: var(--text-dark);
}
.contact-form .hp { display: none; }

.view-recipe-btn {
    display: inline-block;
    background: var(--red-burgundy);
    color: #fff !important;
    border: 1px solid var(--gold-royal);
    padding: 12px 40px;
    border-radius: 40px;
    font-size: 1.2em;
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: 0.3s;
}
.view-recipe-btn:hover { transform: translateY(-3px); background: var(--gold-royal); color: var(--bg-night) !important; box-shadow: 0 0 20px var(--gold-glow); }

/* ===== التذييل ===== */
.site-footer {
    text-align: center;
    padding: 18px 15px;
    background: rgba(21, 14, 10, 0.95);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 0.95em;
    color: #ccc;
}
.footer-links { display: flex; justify-content: center; gap: 18px; margin-bottom: 8px; flex-wrap: wrap; }
.footer-links a { color: var(--gold-royal); text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.site-footer .heart { color: #7A2011; }
.site-footer .designer { color: var(--gold-royal); font-weight: bold; font-family: 'Aref Ruqaa', serif; font-size: 1.2em; }

/* ===== الهاتف ===== */
@media (max-width: 992px) {
    .recipe-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .site-header { flex-direction: column; padding: 8px 10px; gap: 4px; }
    .logo { font-size: 2em; }
    .main-nav { justify-content: center; }
    .main-nav a { padding: 4px 12px; font-size: 0.95em; }
    .card { padding: 20px; border-radius: 15px; }
    .page-title { font-size: 2.2em; }
    .secret-card p { font-size: 1.5em; }
    .glossary { grid-template-columns: 1fr; gap: 2px; }
    .glossary dd { margin-bottom: 10px; }
    .cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .recipe-card img { height: 120px; }
    .rc-body h3 { font-size: 1.25em; }
    .rc-body p { font-size: 0.85em; }
}

/* ===== محتوى الوصفة الموسّع ===== */
.extra { margin-top: 28px; }
.extra h2 { color: var(--red-burgundy); font-size: 1.6em; margin: 22px 0 8px; font-family: 'Aref Ruqaa', serif; }
.extra ul { margin-right: 25px; font-size: 1.1em; line-height: 1.9; }
.extra p { font-size: 1.1em; line-height: 1.9; margin-bottom: 6px; }
.faq-item { margin-bottom: 12px; }
.faq-item h3 { font-size: 1.1em; color: var(--text-dark); }
.faq-item p { color: #4a3328; }

/* ===== المقالات ===== */
.article h2 { margin-top: 26px; }
.article p { font-size: 1.15em; }

/* ===== تأثير الزوايا عند التمرير على بطاقات الوصفات والمقالات =====
   مقتبس ومعدّل من تصميم Uiverse.io للمصمم eslam-hany
   https://uiverse.io/eslam-hany/nasty-zebra-54
   MIT License - Copyright (c) 2026 eslam-hany
   (تم تغيير الألوان وجعل الطبقتين شبه شفافتين لتناسب الموقع) */
.recipe-card { position: relative; }
.recipe-card::before,
.recipe-card::after {
    content: "";
    position: absolute;
    width: 20%;
    height: 20%;
    pointer-events: none;
    transition: all 0.5s;
}
.recipe-card::before {
    top: 0;
    right: 0;
    background-color: rgba(212, 175, 55, 0.9);
    border-radius: 0 16px 0 100%;
}
.recipe-card::after {
    bottom: 0;
    left: 0;
    background-color: rgba(122, 32, 17, 0.9);
    border-radius: 0 100% 0 16px;
}
.recipe-card:hover::before,
.recipe-card:hover::after,
.recipe-card:focus-visible::before,
.recipe-card:focus-visible::after {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}
.recipe-card:hover::before,
.recipe-card:focus-visible::before { background-color: rgba(212, 175, 55, 0.12); }
.recipe-card:hover::after,
.recipe-card:focus-visible::after { background-color: rgba(122, 32, 17, 0.18); }
@media (prefers-reduced-motion: reduce) {
    .recipe-card::before, .recipe-card::after { transition: none; }
}
