:root {
    --bg-color: #0f172a;
    --text-color: #e2e8f0;
    --sidebar-bg: #1e293b;
    --accent-color: #38bdf8;
    --code-bg: #1e293b;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    flex-direction: row-reverse; /* RTL לימין לשמאל */
    direction: rtl;
}

#sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    padding: 20px;
    box-sizing: border-box;
    border-left: 1px solid #334155;
}

#sidebar h2 {
    color: var(--accent-color);
    font-size: 1.2rem;
    text-align: right;
}

#sidebar ul {
    list-style: none;
    padding: 0;
}

#sidebar li {
    margin-bottom: 12px;
    text-align: left; /* יישור הטקסט האנגלי לשמאל לאחידות */
}

#sidebar a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
    display: block;
}

#sidebar a:hover {
    color: var(--accent-color);
}

#content {
    margin: 0 auto;
    padding: 40px;
    max-width: 800px;
    width: 100%;
}

pre {
    background-color: var(--code-bg);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid #334155;
    direction: ltr; /* קוד תמיד משמאל לימין */
}

code {
    font-family: 'Fira Code', monospace;
}

/* סגנון הבלטה מיוחד לפרויקטים נבחרים - אדום בורדו עמוק */
.featured-card {
    border: 2px solid #800020 !important; /* Burgundy / Bordeaux */
    background-color: rgba(128, 0, 32, 0.05) !important;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.featured-badge {
    background-color: #800020;
    color: white;
    padding: 2px 6px;
    font-size: 0.8em;
    font-weight: bold;
    border-radius: 3px;
    margin-left: 10px;
}

/* הגדרות הבלטה כירורגיות לפרויקטי הדגל - שמירה על הגריד המקורי */
a[href*="compiler-zero-days-research.html"],
a[href*="android-bootstrap-hijacking.html"] {
    border: 2px solid #800020 !important; /* אדום בורדו עמוק */
    background-color: rgba(128, 0, 32, 0.04) !important;
    position: relative;
    display: block;
}

/* הזרקת תגיות (Badges) מעוצבות באמצעות פסאודו-אלמנט (:after) */
a[href*="compiler-zero-days-research.html"]::after {
    content: "מחקר נבחר";
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #800020;
    color: white;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    font-family: sans-serif;
}

a[href*="android-bootstrap-hijacking.html"]::after {
    content: "Forthcoming in DW";
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #800020;
    color: white;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    font-family: sans-serif;
}
