:root {
    --primary: #e67e22;
    --secondary: #27ae60;
    --dark: #2c3e50;
    --bg: #fdf5e6; /* ده لون الخلفية الفاتح المريح للعين */
    --white: #ffffff;
    --grad: linear-gradient(135deg, #e67e22, #d35400);
}

body {
    font-family: 'Poppins', 'Cairo', sans-serif;
    background-color: var(--bg);
    margin: 0;
    color: var(--dark);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { display: flex; align-items: center; gap: 15px; cursor: pointer; }
.logo img { 
    width: 45px; height: 45px; border-radius: 50%; 
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.logo:hover img { transform: rotate(360deg) scale(1.15); }
.logo h1 { font-size: 1.4rem; color: var(--primary); margin: 0; font-weight: 800;}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    margin-left: 25px;
    transition: 0.3s;
}

nav a:hover { color: var(--primary); }

/* =========================================
   NEW TYPOGRAPHY HERO SECTION
   ========================================= */
#hero {
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg); /* شيلنا الصورة وبقت خلفية الموقع الهادية */
    padding: 0 20px;
}

.hero-content {
    max-width: 900px;
}

.hero-content h1 { 
    /* خط ضخم جداً بيتغير حجمه حسب الشاشة */
    font-size: clamp(4rem, 12vw, 9rem); 
    line-height: 1; 
    font-weight: 900; 
    margin: 0 0 20px 0; 
    text-transform: uppercase;
    letter-spacing: -3px; /* بيخلي الحروف قريبة من بعض بشكل عصري */
    
    /* الأنيميشن بتاع الألوان جوه الحروف */
    background-image: linear-gradient(135deg, var(--primary), #ffb142, #ff5252, var(--primary));
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradient 6s linear infinite;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
    cursor: default;
}

.hero-content h1:hover {
    transform: scale(1.03) translateY(-5px); /* بيكبر ويطلع لفوق شوية */
    filter: drop-shadow(0px 15px 25px rgba(230, 126, 34, 0.3)); /* ظل برتقالي خفيف */
}

@keyframes textGradient {
    to { background-position: 300% center; }
}

.hero-content p { 
    font-size: 1.4rem; 
    margin: 20px auto 40px; 
    color: #555; 
    font-weight: 600;
    max-width: 600px;
}

.hero-btns { display: flex; gap: 20px; justify-content: center; }

.btn-main, .btn-sub {
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.4s;
    display: inline-block;
}

.btn-main {
    background: var(--grad);
    color: white !important;
    box-shadow: 0 10px 20px rgba(230, 126, 34, 0.3);
}

/* زرار شفاف بحدود عشان يليق على الخلفية الفاتحة */
.btn-sub {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
}

.btn-main:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(230, 126, 34, 0.4); }
.btn-sub:hover { background: var(--primary); color: white !important; transform: translateY(-5px); box-shadow: 0 10px 20px rgba(230, 126, 34, 0.2); }

/* =========================================
   REST OF THE STYLES
   ========================================= */
.section-title { text-align: center; font-size: 2.5rem; margin: 60px 0 40px; }

.menu-slider { overflow: hidden; padding: 40px 0; }

.menu-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.menu-track:hover { animation-play-state: paused; }

.card {
    width: 280px;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.4s;
    cursor: pointer;
}

.card img { width: 100%; height: 220px; object-fit: cover; }
.card h3 { padding: 15px; text-align: center; margin: 0; }

.hover-info {
    position: absolute;
    inset: 0;
    background: rgba(230, 126, 34, 0.85);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
    font-weight: 800;
    font-size: 1.2rem;
}

.card:hover .hover-info { opacity: 1; }
.card:hover { transform: scale(1.03); }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    height: 90vh;
    overflow-y: auto;
    margin: 5vh auto;
    padding: 40px;
    border-radius: 35px;
    position: relative;
    animation: popUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

@keyframes popUp { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }

.close { position: absolute; right: 25px; top: 20px; font-size: 35px; cursor: pointer; color: #333; z-index: 10; }

.recipe-details { text-align: center; }
.recipe-details h2 { margin-bottom: 10px; font-size: 2.2rem; color: var(--dark); }

.recipe-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--primary);
}

.recipe-meta span { background: var(--bg); padding: 8px 20px; border-radius: 30px; font-size: 1rem; }

#recipe-desc { font-size: 1.15rem; color: #666; margin-bottom: 25px; font-style: italic; line-height: 1.6; }

.recipe-details img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.recipe-steps {
    text-align: left;
    line-height: 1.8;
    font-size: 1.1rem;
    background: #f8f9fa;
    padding: 35px;
    border-radius: 20px;
    border-left: 6px solid var(--primary);
    color: var(--dark);
}

.recipe-steps b { color: var(--primary); font-size: 1.2rem; }

.kitchen-box {
    background: white;
    padding: 60px;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.input-area { display: flex; gap: 10px; max-width: 500px; margin: 20px auto; }
#ingredient-input { 
    flex: 1; padding: 15px 20px; border-radius: 30px; border: 2px solid #eee; outline: none; font-family: inherit; font-size: 1rem;
}
#ingredient-input:focus { border-color: var(--primary); }

#add-btn {
    padding: 0 25px; background: var(--dark); color: white; border: none; border-radius: 30px; cursor: pointer; font-weight: bold; transition: 0.3s;
}
#add-btn:hover { background: #1a252f; }

.tags-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; min-height: 40px; }
.tag { 
    background: var(--bg); color: var(--primary); padding: 8px 18px; border-radius: 20px; border: 1px solid var(--primary);
    display: flex; align-items: center; gap: 10px; font-weight: 600; animation: popUp 0.3s ease;
}
.tag span { 
    cursor: pointer; background: var(--primary); color: white; border-radius: 50%; width: 20px; height: 20px; 
    display: grid; place-items: center; font-size: 14px; line-height: 1;
}

#cook-btn {
    padding: 18px 50px; background: var(--secondary); color: white; border: none; border-radius: 50px; font-size: 1.2rem; font-weight: 800; cursor: pointer; transition: 0.3s;
}
#cook-btn:hover { background: #219150; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(39, 174, 96, 0.3); }

#search-status { margin-top: 15px; font-weight: 600; color: #666; }

.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 40px; }
.api-card {
    background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s; cursor: pointer; text-align: left; border: 1px solid #eee;
}
.api-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); border-color: var(--primary); }
.api-card img { width: 100%; height: 180px; object-fit: cover; }
.api-card h3 { padding: 15px; font-size: 1.1rem; margin: 0; color: var(--dark); text-align: center; }

footer { background: var(--dark); color: white; text-align: center; padding: 40px; margin-top: 60px; }