/* File: assets/css/style.css */
:root {
    --primary: #1a3a6b;
    --primary-dark: #0f2a4a;
    --primary-light: #2a4a8a;
    --secondary: #4a90e2;
    --accent: #e67e22;
    --text: #333;
    --text-light: #666;
    --bg: #fff;
    --bg-light: #f5f7fa;
    --border: #e1e8ed;
    --success: #27ae60;
    --error: #e74c3c;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

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

/* Header & Navigation */
.site-header {
    background: var(--primary);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.main-nav a:hover {
    opacity: 0.8;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .main-nav li {
        padding: 0.5rem 0;
    }
}

/* Footer */
.site-footer {
    background: var(--primary-dark);
    color: #ccc;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

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

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

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

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Tools Grid */
.tools-showcase,
.latest-blog,
.why-choose {
    padding: 4rem 0;
}

.section-desc {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tool-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Blog Preview */
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-preview-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
}

.blog-preview-card h3 a {
    color: var(--primary);
    text-decoration: none;
}

.blog-preview-card h3 a:hover {
    text-decoration: underline;
}

.post-meta {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

.read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    background: var(--bg-light);
    text-align: center;
    padding: 4rem 0;
}

/* Tool Page Styles */
.tool-page {
    padding: 2rem 0;
}

.breadcrumbs {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.tool-explanation,
.tool-details,
.faq-section {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.tool-explanation h1,
.tool-details h2,
.faq-section h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.tool-explanation p,
.tool-details p {
    margin-bottom: 1rem;
}

.tool-container {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.tool-input-area textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

.tool-input-area textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-card {
    background: var(--bg-light);
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Density Table */
.density-table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.density-table {
    width: 100%;
    border-collapse: collapse;
}

.density-table th,
.density-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.density-table th {
    background: var(--primary);
    color: white;
}

.density-low {
    color: var(--success);
}

.density-medium {
    color: var(--accent);
}

.density-high {
    color: var(--error);
}

/* Readability Score */
.readability-score-container {
    text-align: center;
    margin: 1.5rem 0;
}

.score-gauge {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 50%;
    display: inline-block;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gauge-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.score-level {
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Paraphrasing Tool */
.tool-output-area {
    margin-top: 1.5rem;
}

.result-box {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    min-height: 150px;
    white-space: pre-wrap;
}

/* FAQ Section */
.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Blog Page */
.blog-header {
    text-align: center;
    padding: 2rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
}

.blog-card h2 a {
    color: var(--primary);
    text-decoration: none;
}

.blog-post-full {
    max-width: 800px;
    margin: 0 auto;
}

.post-content {
    line-height: 1.8;
}

.post-content h2 {
    color: var(--primary);
    margin: 1.5rem 0 1rem;
}

.post-content h3 {
    margin: 1rem 0 0.5rem;
}

.post-content ul,
.post-content ol {
    margin: 1rem 0 1rem 2rem;
}

.post-content li {
    margin: 0.5rem 0;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
}

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

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Page Content */
.page-content {
    max-width: 800px;
    margin: 2rem auto;
}

.page-content h1 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.page-content h2 {
    margin: 1.5rem 0 1rem;
}

.legal-page {
    font-size: 0.95rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}
/* ========================================
   TOOL TAGS & BADGES
   ======================================== */
.tool-tag {
    display: inline-block;
    background: var(--gray-100);
    color: var(--primary);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    margin-top: 0.75rem;
    font-weight: 500;
}

.tool-tag i {
    font-size: 0.7rem;
    margin-right: 0.25rem;
}

/* Blog Icons */
.blog-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.blog-icon i {
    font-size: 2rem;
}

/* ========================================
   STATISTICS SECTION - متناسق مع الموقع
   ======================================== */

.stats-section {
    background: var(--gray-50);
    padding: 4rem 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.stats-grid-large {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform var(--transition);
}

.stat-item:hover i {
    transform: scale(1.1);
    color: var(--accent);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-section {
        padding: 3rem 0;
    }
    
    .stats-grid-large {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-item i {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-grid-large {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.25rem;
    }
}