/*
Theme Name: MAK Theme
Author: MohammadAli Keshvari
Version: 1.0
Direction: RTL
*/

/* ===== Variables ===== */
:root {
  --primary: #39a0ed;
  --bg-main: #f5f7fb;
  --bg-dark: #0b0c12;
  --bg-card: #ffffff;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
}

/* Dark mode */
body.dark {
  --bg-main: #0f172a;
  --bg-card: #020617;
  --text-main: #e5e7eb;
  --text-muted: #94a3b8;
  --border: #1e293b;
}

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

body {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  direction: rtl;
  line-height: 1.8;
}

/* ===== Header ===== */
header {
  background: #000;
  border-bottom: 1px solid #111;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__img {
  width: 38px;
  height: 38px;
}

.brand__name {
  color: #fff;
  font-weight: 600;
}

/* ===== Nav ===== */
nav {
  margin-right: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
}

nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--primary);
}

/* ===== Header Tools ===== */
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box input {
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  outline: none;
  font-family: inherit;
}

#themeToggle {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #fff;
}

/* ===== Mobile Menu ===== */
.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* ===== Main Content ===== */
main {
  margin-top: 40px;
}

.container {
  max-width: 900px;
  margin: 50px auto;
  background: var(--bg-card);
  padding: 30px;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.container h1,
.container h2 {
  margin-bottom: 15px;
}

.container p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== Posts ===== */
.post-item img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}

.post-item h2 a {
  color: var(--text-main);
  text-decoration: none;
}

.post-item h2 a:hover {
  color: var(--primary);
}

/* ===== Pagination ===== */
.pagination {
  text-align: center;
  margin: 40px 0;
}

/* ===== Footer ===== */
footer {
  background: #000;
  color: #9ca3af;
  text-align: center;
  padding: 30px 10px;
  margin-top: 60px;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    width: 100%;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    background: #000;
    padding: 15px;
    border-radius: 12px;
    margin-top: 10px;
  }

  .nav-container {
    flex-wrap: wrap;
  }
}


