/* Pages Common Styles - مستخبي */
:root {
    /* Aligned with the main site's brand palette (css/main.css:
       --primary-500 / --accent-purple) instead of an unrelated
       purple/pink scheme, so these info pages match the rest of
       the site visually. */
    --primary-color: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary-color: #8b5cf6;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border-color: rgba(255,255,255,0.1);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
}

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

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    direction: rtl;
    line-height: 1.8;
    min-height: 100vh;
}

/* Navigation */
.page-nav {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
}

.logo-icon {
    font-size: 28px;
}

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

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Main Content */
.page-content {
    max-width: 900px;
    margin: 100px auto 60px;
    padding: 0 20px;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Last Updated Badge */
.last-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-top: 20px;
}

/* Content Sections */
.content-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.content-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(108, 99, 255, 0.1);
}

.content-section h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-section h2 .icon {
    font-size: 28px;
}

.content-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 25px 0 15px;
    color: var(--primary-color);
}

.content-section p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 2;
}

.content-section ul,
.content-section ol {
    margin: 15px 0 15px 25px;
    color: var(--text-secondary);
}

.content-section li {
    margin-bottom: 10px;
    line-height: 1.9;
}

/* Info Boxes */
.info-box {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(255, 101, 132, 0.05));
    border-right: 4px solid var(--primary-color);
    padding: 20px 25px;
    border-radius: 10px;
    margin: 20px 0;
}

.info-box.warning {
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.1), rgba(255, 71, 87, 0.05));
    border-right-color: var(--warning-color);
}

.info-box.success {
    background: linear-gradient(135deg, rgba(0, 210, 106, 0.1), rgba(108, 99, 255, 0.05));
    border-right-color: var(--success-color);
}

.info-box.error {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1), rgba(255, 184, 0, 0.05));
    border-right-color: var(--error-color);
}

.info-box strong {
    color: var(--text-primary);
}

/* Code Blocks */
.code-block {
    background: #0D0D20;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

.code-block code {
    color: var(--success-color);
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.data-table tr:hover {
    background: rgba(108, 99, 255, 0.05);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.feature-card {
    background: linear-gradient(145deg, rgba(108, 99, 255, 0.08), rgba(255, 101, 132, 0.03));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.2);
}

.feature-card .card-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Steps List */
.steps-list {
    counter-reset: step-counter;
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.steps-list li {
    counter-increment: step-counter;
    position: relative;
    padding: 20px 70px 20px 20px;
    margin-bottom: 15px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

/* Footer */
.page-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

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

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Back to Home Button */
.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 20px;
}

.back-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 32px;
    }
    
    .content-section {
        padding: 25px 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-list li {
        padding: 16px 60px 16px 16px;
    }
    
    .steps-list li::before {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .page-content {
        margin: 80px auto 40px;
        padding: 0 15px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .content-section {
        padding: 20px 15px;
        border-radius: 15px;
    }
}
