/* ==========================================================================
   Unified System Stylesheet | نظام التنسيق الموحد لأدلة الاستخدام
   ========================================================================== */

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #10b981;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --code-bg: #1e293b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
}

/* Header Styling */
header {
    background: linear-gradient(135deg, var(--primary-color), #0f172a);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 4px solid var(--secondary-color);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 800px;
    margin: 0 auto;
}

/* Layout */
.container {
    max-width: 1100px;
    margin: -2rem auto 3rem auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Card Styling */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bg-color);
}

.card-icon {
    background: #eff6ff;
    color: var(--secondary-color);
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-left: 1rem;
    font-weight: bold;
    flex-shrink: 0;
}

h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem 0;
    color: var(--text-main);
}

ul {
    list-style-type: none;
    padding-right: 0;
}

ul li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

ul li::before {
    content: "•";
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    right: 0;
    top: -5px;
}

/* Specific Features Section */
.feature-box {
    background: #f1f5f9;
    border-right: 4px solid var(--secondary-color);
    padding: 1.2rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
    color: var(--text-main);
}

.highlight-smart {
    background: #fef2f2;
    border-right: 4px solid #ef4444;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.highlight-smart h4 {
    color: #991b1b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-term {
    font-family: 'Fira Code', monospace;
    background: #e2e8f0;
    color: #d97706;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    direction: ltr;
    display: inline-block;
}

.highlight {
    font-weight: 700;
    color: var(--primary-color);
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-block;
    border: 1px solid #a7f3d0;
}

kbd {
    font-family: 'Fira Code', monospace;
    background-color: #f1f5f9;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 0 0 #94a3b8;
    color: #0f172a;
    display: inline-block;
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1;
    padding: 4px 8px;
    white-space: nowrap;
    margin: 0 2px;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    text-align: right;
}

th, td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #f8fafc;
    color: var(--primary-color);
    font-weight: 700;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
    .grid-3 {
        grid-template-columns: 1fr 1fr 1fr;
    }
}