:root { --main: #2563eb; --text: #1e293b; --bg: #f1f5f9; }
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, sans-serif; }
body { background: var(--bg); color: var(--text); direction: rtl; line-height: 1.6; }
header { background: white; padding: 1rem 5%; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
.logo { font-size: 1.5rem; font-weight: bold; color: var(--main); text-decoration: none; }
nav { display: flex; gap: 10px; overflow-x: auto; padding: 5px; }
nav button { background: #e2e8f0; border: none; padding: 6px 15px; border-radius: 20px; cursor: pointer; white-space: nowrap; transition: 0.3s; }
nav button.active { background: var(--main); color: white; }

.container { max-width: 1000px; margin: 2rem auto; padding: 0 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,0.05); text-decoration: none; color: inherit; transition: 0.3s; }
.card:hover { transform: translateY(-5px); }
.card img { width: 100%; height: 180px; object-fit: cover; }
.card-content { padding: 1rem; }
.card-tag { font-size: 0.75rem; color: var(--main); font-weight: bold; }

/* Admin */
.admin-table { width: 100%; border-collapse: collapse; background: white; margin-top: 2rem; }
.admin-table th, .admin-table td { padding: 12px; border: 1px solid #ddd; text-align: right; }
form input, form textarea { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ddd; border-radius: 5px; }
.btn { background: var(--main); color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; }