/* === Design System — ParsPack-inspired === */
:root {
  --bg-main: #0A0E1A;
  --bg-card: #111827;
  --bg-card-alt: #1A1F2E;
  --accent: #F5B800;
  --accent-hover: #FFC107;
  --secondary: #3B82F6;
  --text-main: #F9FAFB;
  --text-sub: #9CA3AF;
  --gradient-btn: linear-gradient(135deg, #F5B800 0%, #FF8A00 100%);
  --glass-bg: rgba(17, 24, 39, 0.7);
  --glass-border: rgba(245, 184, 0, 0.15);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --radius: 16px;
}

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

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

h1 { font-size: 2.5rem; font-weight: 900; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 700; }
p { font-size: 1rem; }
small { font-size: 0.875rem; }

a { color: var(--secondary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent); }

/* === Glassmorphism Card === */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* === Buttons === */
.btn-primary {
  display: inline-block;
  background: var(--gradient-btn);
  color: #0A0E1A;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(245, 184, 0, 0.4);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-secondary:hover {
  background: var(--secondary);
  color: #fff;
}

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-header .brand {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent);
}
.site-header nav a {
  margin-inline-start: 20px;
  color: var(--text-sub);
  font-weight: 500;
  transition: color 0.3s;
}
.site-header nav a:hover { color: var(--accent); }

/* === Hero Section === */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0A0E1A 0%, #1a1f3a 50%, #0A0E1A 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent), #FF8A00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.2rem;
  color: var(--text-sub);
  max-width: 600px;
  margin-bottom: 32px;
}

/* === Features === */
.features {
  padding: 80px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.feature-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.feature-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  fill: var(--accent);
}
.feature-card h3 { margin-bottom: 12px; color: var(--accent); }
.feature-card p { color: var(--text-sub); }

/* === Stats === */
.stats {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-item .number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
}
.stat-item .label {
  color: var(--text-sub);
  font-size: 0.9rem;
}

/* === Footer === */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-sub);
  font-size: 0.875rem;
}
.site-footer a { color: var(--accent); }

/* === Panel Layout === */
.panel-layout {
  display: flex;
  min-height: 100vh;
}
.panel-sidebar {
  width: 260px;
  background: var(--bg-card);
  border-left: 1px solid var(--glass-border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.panel-sidebar .sidebar-brand {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 24px;
  padding: 0 12px;
}
.panel-sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text-sub);
  font-weight: 500;
  transition: all 0.3s;
}
.panel-sidebar a:hover,
.panel-sidebar a.active {
  background: rgba(245, 184, 0, 0.1);
  color: var(--accent);
  transform: translateX(-5px);
}
.panel-sidebar a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.panel-main {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.panel-header h2 { font-size: 1.5rem; }

/* === Forms === */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-sub);
  font-size: 0.9rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(10, 14, 26, 0.8);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.2);
}

/* === Flash Messages === */
.flash-msg {
  padding: 14px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 500;
  animation: fadeInUp 0.5s ease;
}
.flash-msg.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6EE7B7;
}
.flash-msg.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Auth Pages === */
.auth-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
}
.auth-card h1 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  text-align: center;
  color: var(--accent);
}

/* === Pulse Glow Animation === */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(245, 184, 0, 0.2); }
  50% { box-shadow: 0 0 25px rgba(245, 184, 0, 0.5); }
}
.pulse-glow { animation: pulseGlow 2s ease-in-out infinite; }

/* === Gallery Grid === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.gallery-item {
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(245, 184, 0, 0.15);
}
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
}
.gallery-item-info {
  padding: 12px 16px;
}
.gallery-item-info strong {
  display: block;
  font-size: 0.95rem;
}
.gallery-item-info small {
  color: var(--text-sub);
}

/* === Responsive === */
@media (max-width: 768px) {
  .panel-layout { flex-direction: column; }
  .panel-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    border-left: none;
    border-bottom: 1px solid var(--glass-border);
  }
  .hero h1 { font-size: 2rem; }
  h1 { font-size: 2rem; }
}
