/*
Theme Name: Moein Gift Pro
Theme URI: https://www.moeinhojati.ir
Author: Moein Gift
Author URI: https://www.moeinhojati.ir
Description: قالب اختصاصی معین گیفت برای خدمات دیجیتال، کارت‌های مجازی، اشتراک پرمیوم و پنل کاربری.
Version: 1.0.0
Text Domain: moeingift-pro
*/


/* =========================
   فایل: style.css
   ========================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020617;
  color: #e5e7eb;
  line-height: 1.8;
  direction: rtl;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

:root {
  --bg-main: #020617;
  --bg-soft: #050816;
  --card: #0b1220;
  --border: rgba(148, 163, 184, 0.35);
  --primary: #22d3ee;
  --primary-soft: rgba(56, 189, 248, 0.15);
  --accent: #4f46e5;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --danger: #ef4444;
  --success: #22c55e;
}

/* Layout عمومی */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

main {
  min-height: calc(100vh - 180px);
}

.section {
  padding: 2.7rem 0;
}

.section-header {
  margin-bottom: 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.section-kicker {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 800;
}

.section-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 36rem;
}

/* دکمه‌ها */

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #020617;
  font-weight: 700;
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.7);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(15, 23, 42, 0.85);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* هدر مشترک */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  gap: 1rem;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: radial-gradient(circle at 10% 10%, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #f9fafb;
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.6);
}

.logo-text-main {
  font-weight: 800;
  font-size: 1.1rem;
}

.logo-text-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
}

.nav a {
  color: #e5e7eb;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.hamburger span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

/* کارت‌ها و گریدها */

.card {
  border-radius: 1rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
}

.card-header-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.card-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

/* هیرو صفحه اصلی */

.hero {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.2), transparent 55%),
    var(--bg-soft);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 2.7rem;
  padding: 3.2rem 0 2.5rem;
  align-items: center;
}

.hero-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  margin-bottom: 1.1rem;
  color: var(--text-main);
}

.hero-badge-pill {
  padding: 0.08rem 0.55rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #a5f3fc;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2rem, 3.1vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary), #a855f7, var(--accent));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.94rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 1.6rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.3rem;
}

.hero-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.7rem;
  font-size: 0.78rem;
}

.hero-stat-label {
  color: #6b7280;
}

.hero-stat-value {
  font-weight: 700;
}

/* کارت هیرو راست */

.hero-side-card {
  border-radius: 1.2rem;
  padding: 1.4rem 1.3rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
  border: 1px solid var(--border);
  box-shadow:
    0 22px 60px rgba(15, 23, 42, 0.9),
    0 0 90px rgba(56, 189, 248, 0.22);
  display: grid;
  gap: 0.9rem;
  font-size: 0.8rem;
}

.hero-side-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

/* جدول‌ها / داشبورد */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.table thead {
  background: #020617;
}

.table th,
.table td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid rgba(55, 65, 81, 0.7);
  text-align: right;
}

.table th {
  font-weight: 600;
  color: var(--text-muted);
}

.table tr:hover td {
  background: rgba(15, 23, 42, 0.8);
}

/* فرم‌ها */

.field {
  display: grid;
  gap: 0.22rem;
  font-size: 0.78rem;
}

.field label {
  color: var(--text-main);
}

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

input,
textarea,
select {
  border-radius: 0.6rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 0.45rem 0.6rem;
  background: rgba(15, 23, 42, 0.98);
  color: #f9fafb;
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.45);
  background: #020617;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

/* Layout پنل کاربری */

.dashboard-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1.8rem;
}

.dashboard-sidebar {
  border-radius: 0.9rem;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1rem;
  display: grid;
  gap: 1rem;
  font-size: 0.8rem;
}

.dashboard-userbox {
  border-radius: 0.8rem;
  padding: 0.8rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px dashed rgba(148, 163, 184, 0.6);
  display: grid;
  gap: 0.2rem;
}

.dashboard-nav {
  display: grid;
  gap: 0.3rem;
}

.dashboard-nav a {
  border-radius: 0.55rem;
  padding: 0.4rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  border: 1px solid transparent;
  cursor: pointer;
}

.dashboard-nav a span:first-child {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dashboard-nav a.active,
.dashboard-nav a:hover {
  background: rgba(15, 23, 42, 0.96);
  border-color: var(--border);
  color: var(--text-main);
}

.dashboard-main {
  display: grid;
  gap: 1.1rem;
}

/* باکس‌های وضعیت */

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  font-size: 0.8rem;
}

.status-box {
  border-radius: 0.8rem;
  padding: 0.8rem;
  background: var(--card);
  border: 1px solid var(--border);
  display: grid;
  gap: 0.15rem;
}

/* وبلاگ */

.blog-list {
  display: grid;
  gap: 1rem;
}

.blog-card {
  border-radius: 0.9rem;
  padding: 0.9rem;
  background: var(--card);
  border: 1px solid rgba(55, 65, 81, 0.9);
  display: grid;
  gap: 0.4rem;
  font-size: 0.8rem;
}

.blog-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* فوتر */

footer {
  border-top: 1px solid rgba(31, 41, 55, 1);
  background: #020617;
  padding: 1.4rem 0 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 2.7fr) minmax(0, 2fr);
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
}

.footer-links a {
  color: #e5e7eb;
  font-size: 0.78rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.74rem;
}

/* ریسپانسیو */

@media (max-width: 992px) {
  .nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(55, 65, 81, 0.9);
    padding: 0.7rem 1.25rem 0.9rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .hamburger {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 2.4rem;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-4,
  .grid-3,
  .grid-2,
  .status-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 2.1rem 0;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================
   پایان style.css
   ========================= */
