/* ========== إعدادات عامة ========== */
/* ملف CSS الرئيسي - جميع التنسيقات هنا */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    flex: 1;
    padding: 40px 0;
}

/* ========== شريط التنقل ========== */
.navbar {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* ========== قسم البطل ========== */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* ========== الأزرار ========== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ========== شبكة المنتجات ========== */
.latest-reviews {
    padding: 40px 0;
}

.latest-reviews h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.section-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--bg-light);
}

.product-content {
    padding: 20px;
}

.product-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-excerpt {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.rating {
    display: flex;
    gap: 2px;
    color: var(--warning-color);
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* ========== صفحة المراجعة ========== */
.review-header {
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.review-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.review-meta {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.rating-large {
    display: flex;
    justify-content: center;
    gap: 5px;
    font-size: 1.5rem;
    color: var(--warning-color);
    margin-bottom: 20px;
}

.review-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 30px auto;
    display: block;
    box-shadow: var(--shadow-lg);
}

.review-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.review-section {
    margin-bottom: 40px;
}

.review-section h2 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: var(--text-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.review-section h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--text-color);
}

.pros-cons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.pros-list, .cons-list {
    padding: 20px;
    border-radius: var(--border-radius);
}

.pros-list {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.cons-list {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.pros-list h3, .cons-list h3 {
    margin-top: 0;
    color: inherit;
}

.pros-list ul, .cons-list ul {
    list-style: none;
    padding: 0;
}

.pros-list li, .cons-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.pros-list li:before {
    content: "✓";
    color: var(--success-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.cons-list li:before {
    content: "✗";
    color: #ef4444;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.amazon-button {
    display: inline-block;
    background-color: #ff9900;
    color: white;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition);
    margin: 20px 0;
}

.amazon-button:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
}

/* ========== صفحة الإيميل ========== */
.email-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.email-container {
    max-width: 500px;
    width: 100%;
    text-align: center;
    background: var(--bg-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.email-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: var(--border-radius);
    display: none;
}

.form-message.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: block;
}

.form-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: block;
}

/* ========== تذييل الصفحة ========== */
.footer {
    background-color: var(--bg-light);
    padding: 50px 0 30px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-nav h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.disclaimer {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.disclaimer h4 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.disclaimer p {
    margin-bottom: 15px;
}

/* ========== تصميم متجاوب ========== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .review-header h1 {
        font-size: 2rem;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .email-container {
        padding: 30px 20px;
    }
}