/* ────────────────────────────────────────────────
   WPArchiver Light Modern Theme - 2026
   Clean, Minimal, RTL Persian Optimized
──────────────────────────────────────────────── */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --success: #10b981;
  --radius: 14px;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 25px rgba(0,0,0,0.08);
  --transition: all 0.2s ease;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../Vazir.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

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

body {
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  direction: rtl;
  text-align: right;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.8rem 1.2rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover,
a:focus {
  color: var(--accent-hover);
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand img {
  height: 52px;
  width: auto;
}

.brand h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  color: #0f172a;
}

.tagline {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.small {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Search */
.search {
  display: flex;
  max-width: 680px;
  margin: 2rem auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: white;
  transition: var(--transition);
}

.search:focus-within {
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
  border-color: var(--accent);
}

.search input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  background: transparent;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.search input::placeholder {
  color: var(--text-muted);
}

.search button {
  padding: 0 2rem;
  background: var(--accent);
  color: white;
  border: none;
  font-weight: 500;
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  cursor: pointer;
  transition: var(--transition);
}

.search button:hover {
  background: var(--accent-hover);
}

/* Meta */
.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Grid Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.6rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(59,130,246,0.3);
}

.card-head {
  padding: 1.4rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.2rem;
  border-radius:15px;
  background: var(--bg-secondary);
}

.card h2 {
  font-size: 1.35rem;
  margin: 0;
  line-height: 1.4;
}

.card h2 a {
  color: #0f172a;
}

.card h2 a:hover {
  color: var(--accent);
}

.muted {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  line-height: 1.6;
}

.badge {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--success);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}

.desc {
  padding: 2rem 2.6rem 2.2rem 1rem;
  color: var(--text-secondary);
  direction:ltr;
  text-align:left;
  font-size: 0.98rem;
  line-height: 1.8;
}

.versions {
  padding: 1.2rem 1.6rem;
  background: var(--bg-secondary);
  display: flex;
  border-radius:15px;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.dl {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1.3rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.96rem;
  transition: var(--transition);
}

.dl:hover {
  background: rgba(59,130,246,0.05);
  border-color: var(--accent);
  color: var(--accent);
}

/* Pager */
.pager {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  margin: 3rem 0 2rem;
}

.btn {
  padding: 0.85rem 1.6rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background: var(--accent-hover);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2.5rem 0 1.8rem;
  color: var(--text-muted);
  font-size: 0.94rem;
  border-top: 1px solid var(--border);
  line-height: 1.9;
}

.footer a {
  color: var(--accent);
  font-weight: 500;
}

.footer .copyright {
  margin-top: 1.2rem;
  font-size: 0.9rem;
}

code {
  background: #f1f5f9;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-family: 'Consolas', monospace;
  direction: ltr;
}

/* Responsive */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .search {
    flex-direction: column;
    border-radius: 12px;
  }
  .search button {
    margin-top: 0.8rem;
    border-radius: 0 0 12px 12px;
  }
}