﻿@font-face {
  font-family: "Vazir";
  src: url("../fonts/Vazir.woff2") format("woff2"),
    url("../fonts/Vazir.woff") format("woff"),
    url("../fonts/Vazir.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Far Roya";
  src: url("../fonts/Far_RoyaBd.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

::root {
  color-scheme: light;
}

html {
  font-family: "Vazir", Tahoma, Arial, sans-serif;
  direction: rtl;
}

body {
  background: #f8fafc;
  color: #0f172a;
  min-height: 100vh;
}

.hidden {
  display: none;
}

.site-header {
  background: linear-gradient(135deg, #0f172a, #1d1d2b);
  color: #f8fafc;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem);
  border-radius: 1.25rem;
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.35);
  margin: clamp(1rem, 2vw, 2rem) auto;
  max-width: 1200px;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.site-header__logo {
  direction: ltr;
  width: 54px;
  height: 54px;
  margin-left: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
}

/* .site-header__logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #f97316;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.4);
} */

.site-header__title {
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0;
}

.site-header__tagline {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.8;
}

.site-header__search {
  flex: 1;
  min-width: 220px;
  max-width: 460px;
  position: relative;
}

.site-header__search-input {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.site-header__search-input input {
  flex: 1;
  border: none;
  background: transparent;
  color: #fff;
  padding: 0.5rem 1rem;
  outline: none;
  font-size: 0.95rem;
}

.site-header__search-input button {
  border: none;
  background: #f97316;
  color: #fff;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.35);
}

.site-header__results {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  background: #fff;
  color: #0f172a;
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
  z-index: 5;
  overflow: hidden;
}

.site-header__actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
}

.site-header__nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.site-header__nav--categories {
  gap: 0.4rem;
}

.site-header__nav--categories a {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.site-header__nav--categories a.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.site-header__nav a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.site-header__nav .nav-cta {
  background: #f97316;
  color: #0f172a;
  padding: 0.35rem 1rem;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.5);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.user-chip .user-name {
  font-weight: 600;
}

.user-chip .user-role {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-menu__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  margin: 0;
}

.user-menu__item button {
  all: unset;
  display: contents;
}

.user-menu__item:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.user-menu__item:active {
  transform: translateY(0);
}

.user-menu__item svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s;
}

.user-menu__item:hover svg {
  transform: scale(1.1);
}

.user-menu__tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.user-menu__tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(15, 23, 42, 0.95);
}

.user-menu__item:hover .user-menu__tooltip,
.user-menu__avatar:hover .user-menu__tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.user-menu__avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.user-menu__avatar:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

.user-menu__avatar-initial {
  display: block;
  line-height: 1;
}

.user-menu__avatar .user-menu__tooltip {
  bottom: calc(100% + 12px);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  background: transparent;
}

.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem) 3rem;
}

.scroll-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: none;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.3);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 999;
}

.scroll-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.scroll-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-to-top:hover {
  background: #f97316;
  color: #0f172a;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .scroll-to-top {
    right: 16px;
    bottom: 16px;
  }
}

.admin-section {
  margin-top: 2rem;
}

.card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 
    0 4px 20px rgba(15, 23, 42, 0.08),
    0 1px 4px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  box-shadow: 
    0 8px 30px rgba(15, 23, 42, 0.12),
    0 2px 8px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}

.admin-form {
  background: linear-gradient(to bottom, #ffffff, #f8fafc);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-form__header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid rgba(15, 23, 42, 0.06);
}

.admin-form__header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.admin-section .admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-section .admin-table th,
.admin-section .admin-table td {
  text-align: right;
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.admin-section .admin-table th {
  background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
  font-weight: 600;
  color: #0f172a;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border-bottom: 2px solid #e2e8f0;
}

.admin-section .admin-table tbody tr {
  transition: background-color 0.2s ease;
}

.admin-section .admin-table tbody tr:hover {
  background-color: #f8fafc;
}

.admin-section .admin-table td {
  vertical-align: middle;
}

.admin-section .admin-table .edit-category,
.admin-section .admin-table .delete-category {
  border: none;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Vazir", Tahoma, Arial, sans-serif;
  margin-left: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.admin-section .admin-table .edit-category {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
}

.admin-section .admin-table .edit-category:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.admin-section .admin-table .edit-category:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}

.admin-section .admin-table .delete-category {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
}

.admin-section .admin-table .delete-category:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.admin-section .admin-table .delete-category:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
}

.admin-form input {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  font-family: "Vazir", Tahoma, Arial, sans-serif;
  box-shadow: 
    inset 0 2px 4px rgba(15, 23, 42, 0.04),
    0 1px 2px rgba(15, 23, 42, 0.05);
  background: linear-gradient(to bottom, #ffffff, #f8fafc);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #0f172a;
  border: 2px solid transparent;
}

.admin-form input::placeholder {
  color: #94a3b8;
  opacity: 0.7;
  font-weight: 400;
}

.admin-form input:hover {
  box-shadow: 
    inset 0 2px 4px rgba(15, 23, 42, 0.06),
    0 2px 8px rgba(15, 23, 42, 0.08);
  background: linear-gradient(to bottom, #ffffff, #f1f5f9);
  transform: translateY(-1px);
}

.admin-form input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 
    inset 0 2px 4px rgba(59, 130, 246, 0.1),
    0 0 0 4px rgba(59, 130, 246, 0.1),
    0 4px 12px rgba(59, 130, 246, 0.15);
  background: #ffffff;
  transform: translateY(-2px);
}

.admin-form button {
  border: none;
  border-radius: 16px;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #3b82f6 100%);
  background-size: 200% 200%;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 
    0 4px 14px rgba(15, 23, 42, 0.25),
    0 2px 6px rgba(59, 130, 246, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-family: "Vazir", Tahoma, Arial, sans-serif;
}

.admin-form button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.admin-form button:hover::before {
  left: 100%;
}

.admin-form button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 8px 24px rgba(15, 23, 42, 0.35),
    0 4px 12px rgba(59, 130, 246, 0.3);
  background-position: 100% 0;
}

.admin-form button:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 
    0 2px 8px rgba(15, 23, 42, 0.2),
    0 1px 4px rgba(59, 130, 246, 0.15);
}

.admin-form__actions .ghost {
  background: linear-gradient(to bottom, #ffffff, #f8fafc);
  border: 2px solid #e2e8f0;
  color: #0f172a;
  box-shadow: 
    0 2px 6px rgba(15, 23, 42, 0.08),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.admin-form__actions .ghost:hover {
  background: linear-gradient(to bottom, #ffffff, #f1f5f9);
  border-color: #cbd5e1;
  box-shadow: 
    0 4px 12px rgba(15, 23, 42, 0.12),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.admin-form__header h3 {
  margin-bottom: 0.4rem;
}

.admin-form__body label {
  display: block;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: #475569;
}

.admin-form__body label span {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #0f172a;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.admin-form__actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

#category-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 0.9rem;
  text-align: center;
  transition: all 0.3s ease;
}

#category-status:empty {
  display: none;
}

.admin-form__actions .ghost {
  background: transparent;
  color: #0f172a;
  border: 1px solid #cbd5f5;
}

.hero {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(249, 115, 22, 0.08));
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: center;
  margin-bottom: 2rem;
}

.hero__title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero__subtitle {
  color: #475569;
  line-height: 1.9;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero__actions .cta-primary,
.hero__actions .cta-secondary {
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  text-decoration: none;
}

.hero__actions .cta-primary {
  background: #0f172a;
  color: #fff;
}

.hero__actions .cta-secondary {
  background: #fff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.15);
}

.stat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.stat-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.stat-card h4 {
  font-size: 1.3rem;
  margin: 0;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chips button {
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  background: #fff;
  color: #0f172a;
  font-size: 0.85rem;
  cursor: pointer;
}

.filter-chips button.active {
  background: #0f172a;
  color: #fff;
}

.post-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.post-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.post-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.post-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.post-card__views {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.messages-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.message-card {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.message-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.message-sender {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.message-sender__avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.message-sender__name {
  font-weight: 700;
}

.message-sender__name {
  color: #0f172a;
  text-decoration: none;
}

.message-sender__name:hover {
  color: #2563eb;
}

.message-sender__email {
  font-size: 0.85rem;
  color: #94a3b8;
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

.message-delete {
  border: none;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.message-delete:hover {
  background: rgba(239, 68, 68, 0.18);
}

.message-card__content {
  margin-top: 0.9rem;
  color: #475569;
  line-height: 1.8;
}

.message-count {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.message-empty {
  text-align: center;
  color: #94a3b8;
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px dashed rgba(148, 163, 184, 0.3);
}

.post-card__link {
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
}

.featured-banner {
  background: #0f172a;
  color: #fff;
  border-radius: 2rem;
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 2.5rem 0;
}

.featured-banner h3 {
  font-size: 1.3rem;
  margin: 0;
}

.card-shadow {
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.text-muted {
  color: #64748b;
}

.badge {
  background: #e2e8f0;
  color: #475569;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.rtl {
  direction: rtl;
}

.loader {
  border: 3px solid #e2e8f0;
  border-top: 3px solid #0f172a;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* استایل‌های فرم ویرایش پروفایل */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #0f172a;
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: "Vazir", Tahoma, Arial, sans-serif;
  background: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #0f172a;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-input select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: left 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-left: 2.5rem;
  cursor: pointer;
}

.form-input select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%233b82f6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
}

.form-group label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-left: 0.5rem;
  cursor: pointer;
  accent-color: #3b82f6;
}

.hidden {
  display: none !important;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

/* استایل‌های تبلیغات */
.ad-wrapper {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ad-wrapper--link {
  cursor: pointer;
}

.ad-wrapper--link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.15);
}

.ad-wrapper--link img,
.ad-wrapper--link video {
  transition: transform 0.3s ease;
}

.ad-wrapper--link:hover img,
.ad-wrapper--link:hover video {
  transform: scale(1.02);
}

.ad-title {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.5;
}

.ad-wrapper--link .ad-title {
  color: #3b82f6;
  transition: color 0.2s ease;
}

.ad-wrapper--link:hover .ad-title {
  color: #2563eb;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 2rem;
}

.btn-primary {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #3b82f6 100%);
  background-size: 200% 200%;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Vazir", Tahoma, Arial, sans-serif;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35);
  background-position: 100% 0;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: linear-gradient(to bottom, #ffffff, #f8fafc);
  color: #0f172a;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Vazir", Tahoma, Arial, sans-serif;
}

.btn-secondary:hover {
  background: linear-gradient(to bottom, #ffffff, #f1f5f9);
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

/* استایل‌های دکمه‌های تعامل */
.interaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  font-family: "Vazir", Tahoma, Arial, sans-serif;
  position: relative;
  overflow: hidden;
}

.interaction-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.interaction-btn:active::before {
  width: 300px;
  height: 300px;
}

.interaction-btn__text {
  position: relative;
  z-index: 1;
}

.interaction-btn__count {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.85rem;
  min-width: 1.5rem;
  text-align: center;
}

.interaction-btn--like {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.3);
}

.interaction-btn--like:hover {
  background: linear-gradient(135deg, #e11d48, #be123c);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.4);
}

.interaction-btn--like.interaction-btn--active {
  background: linear-gradient(135deg, #be123c, #9f1239);
  box-shadow: 0 4px 14px rgba(190, 18, 60, 0.5);
}

.interaction-btn--bookmark {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.interaction-btn--bookmark:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.interaction-btn--bookmark.interaction-btn--active {
  background: linear-gradient(135deg, #b45309, #92400e);
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.5);
}

.interaction-btn--share {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.3);
}

.interaction-btn--share:hover {
  background: linear-gradient(135deg, #1e293b, #334155);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.4);
}

/* منوی اشتراک‌گذاری */
.share-menu {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.share-menu__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Vazir", Tahoma, Arial, sans-serif;
}

.share-menu__item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.share-menu__item svg {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header__search-input {
    flex-direction: column;
  }

  .site-header__nav {
    justify-content: center;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
  
  .interaction-btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
  }
  
  .share-menu {
    grid-template-columns: 1fr;
  }
  
  .user-menu {
    gap: 0.35rem;
  }
  
  .user-menu__item {
    width: 36px;
    height: 36px;
  }
  
  .user-menu__item svg {
    width: 18px;
    height: 18px;
  }
  
  .user-menu__avatar {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
  
  .user-menu__tooltip {
    display: none;
  }
}

/* استایل‌های صفحه بوکمارک‌ها */
.bookmarks-hero {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 2rem;
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
}

.bookmarks-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 50%;
  color: #ffffff;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.bookmarks-hero__title {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.bookmarks-hero__subtitle {
  color: #64748b;
  font-size: 1.1rem;
}

.bookmarks-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: #ffffff;
  border-radius: 2rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.bookmarks-container {
  margin-top: 2rem;
}

.bookmarks-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.post-card {
  background: #ffffff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
}

.post-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.post-card__content {
  padding: 1.5rem;
}

.post-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: #64748b;
}

.post-card__badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #f1f5f9;
  color: #475569;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.post-card__author {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.post-card__author:hover {
  color: #0f172a;
}

.post-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.post-card__title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s;
}

.post-card__title a:hover {
  color: #3b82f6;
}

.post-card__excerpt {
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.post-card__link {
  display: inline-flex;
  align-items: center;
  color: #3b82f6;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.post-card__link:hover {
  color: #2563eb;
  transform: translateX(-4px);
}

@media (max-width: 768px) {
  .bookmarks-hero {
    padding: 2rem 1.5rem;
  }

  .bookmarks-hero__title {
    font-size: 1.5rem;
  }

  .bookmarks-hero__subtitle {
    font-size: 1rem;
  }

  .bookmarks-grid {
    grid-template-columns: 1fr;
  }
}
