:root {
    --primary-color: #ff6347; /* Tomato red for cooking theme */
    --secondary-color: #2e8b57; /* SeaGreen for fresh ingredients */
    --accent-color: #ffa500; /* Orange for spice/heat */
    --text-color: #333;
    --bg-color: #f4f4f4;
    --white: #fff;
    --gray: #ccc;
    --dark-gray: #666;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Poppins', 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.accent {
    color: var(--secondary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.btn-primary, .btn-login, .btn-logout {
    margin-left: 10px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #e5533d;
    transform: translateY(-2px);
}

.btn-login {
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
    padding: 8px 18px;
    border-radius: 5px;
    transition: all 0.3s;
    display: inline-block;
}

.btn-login:hover {
    background-color: var(--primary-color);
    color: var(--white) !important;
}

.btn-logout {
    background-color: #333;
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s;
    display: inline-block;
}

/* Hero & Banners */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1556910103-1c02745aae4d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    color: var(--white);
    padding: 150px 20px;
    text-align: center;
    border-radius: 30px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    animation: fadeInDown 1s ease-out;
}

.hero p {
    font-size: 1.4rem;
    max-width: 800px;
    margin-bottom: 35px;
    opacity: 0.95;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-btns {
    display: flex;
    gap: 20px;
    animation: fadeIn 1.5s ease-out;
}

.hero-btns .btn-primary {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
}

.hero-btns .btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white) !important;
    padding: 13px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
}

.hero-btns .btn-outline:hover {
    background: var(--white);
    color: var(--primary-color) !important;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.banner-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.banner-item {
    height: 220px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.banner-item:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.banner-item.bg-primary {
    background: linear-gradient(135deg, #ff6347 0%, #ff4500 100%);
}

.banner-item.bg-secondary {
    background: linear-gradient(135deg, #2e8b57 0%, #1e5a3a 100%);
}

.banner-item.bg-accent {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
}

.banner-btn {
    background: var(--white);
    color: var(--text-color) !important;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    display: inline-block;
    transition: all 0.3s;
    border: none;
}

.banner-btn:hover {
    background: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
}

/* Recipe & Product Cards */
.recipe-card, .product-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 450px; /* Fixed Height */
    transition: transform 0.3s;
}

.recipe-card:hover, .product-card:hover {
    transform: translateY(-5px);
}

.card-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-text {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Floating Language Toggle Button */
.lang-toggle-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: var(--secondary-color);
    color: var(--white) !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1001;
    transition: transform 0.3s, background-color 0.3s;
}

.lang-toggle-btn:hover {
    transform: scale(1.1);
    background-color: var(--primary-color);
}

.lang-toggle-btn i {
    font-size: 20px;
}

.lang-toggle-btn span {
    font-size: 12px;
    font-weight: bold;
    margin-top: 2px;
}

main {
    padding: 40px 0;
    min-height: 80vh;
}

footer {
    background-color: #333;
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--gray);
    text-decoration: none;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
    font-size: 20px;
}

.social-links a {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 14px;
}

/* Forms styling */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gray);
    border-radius: 5px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Auth Pages Link */
.auth-links {
    margin-top: 15px;
    text-align: center;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
}
