/* =============================================
   RAZORHUB – MODERN MATRIX GREEN & BLACK THEME
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700&display=swap');

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

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --border-color: #2a2a2a;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --accent: #00ff41;
  --accent-blue: #00cc33;
  --accent-hover: #00cc33;
  --font-main: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  --card-radius: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.5);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.6);
  --shadow-green: 0 4px 20px rgba(0, 255, 65, 0.3);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* ----- پس‌زمینه متحرک (ذرات سبز ماتریکسی) ----- */
#matrix-bg {
  display: none; /* فعلاً حذفش می‌کنیم تا سبک بمونه */
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.3;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 255, 65, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 204, 51, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.01) 0%, transparent 70%);
  pointer-events: none;
}

/* ----- هدر ----- */
.site-header {
  background: rgba(10, 10, 10, 0.9);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo img {
  height: 40px;
  filter: drop-shadow(0 0 6px rgba(0, 255, 65, 0.5));
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0, 255, 65, 0.4);
}

/* ----- همبرگر ----- */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

/* ----- محتوای اصلی ----- */
.main-content {
  flex: 1;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  width: 100%;
}

.page-title {
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.page-title span {
  color: var(--accent);
}

/* ----- جستجو ----- */
.search-box {
  display: block;
  margin: 0 auto 2rem;
  width: 100%;
  max-width: 450px;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}

.search-box:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.2);
}

.search-box::placeholder {
  color: var(--text-secondary);
}

/* ----- بنر کلیکی ----- */
.click-banner {
  text-align: center;
  margin: 1.5rem 0 2.5rem;
}

.btn-banner {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.8rem 2.5rem;
  text-decoration: none;
  border-radius: 50px;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
  box-shadow: var(--shadow-green);
}

.btn-banner:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 255, 65, 0.5);
}

/* ----- کارت‌های پروژه ----- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  width: 100%;
  max-width: 280px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 255, 65, 0.15);
  border-color: var(--accent);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.file-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 8px var(--accent));
}

.file-icon-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--bg-secondary);
  padding: 8px;
  box-shadow: 0 0 12px rgba(0, 255, 65, 0.2);
}

.project-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.project-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.project-card small {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.85rem;
}

.btn-download-card {
  margin-top: 1.2rem;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.8rem;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 50px;
}

.btn-download-card:hover {
  background: var(--accent);
  color: #000;
  box-shadow: var(--shadow-green);
  transform: translateY(-2px);
}

/* ----- آخرین بروزرسانی‌ها ----- */
.recent-updates {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 2rem;
  margin: 3rem 0 2rem;
  box-shadow: var(--shadow-sm);
}

.updates-title {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.updates-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
}

.updates-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.updates-list li:last-child {
  border-bottom: none;
}

.updates-list .project-name {
  color: var(--text-primary);
  font-weight: 600;
}

.updates-list .project-date {
  color: var(--accent);
  font-weight: 500;
}

/* ----- دکمه‌ها ----- */
.btn {
  background: var(--accent);
  border: none;
  color: #000;
  padding: 0.8rem 2rem;
  font-family: var(--font-main);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1rem;
  box-shadow: var(--shadow-green);
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 65, 0.4);
}

.btn-small {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

.btn-download {
  font-size: 1.1rem;
  padding: 0.9rem 2.5rem;
  margin: 1rem 0;
}

/* ----- صفحات داخلی ----- */
.about-section,
.contact-section,
.project-detail,
.download-section,
.changelog-section,
.donate-container,
.thanks-container,
.faq-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

/* ----- فرم تماس ----- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-main);
  border-radius: 10px;
  outline: none;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.15);
}

/* ----- FAQ ----- */
.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.3s;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  color: var(--text-secondary);
  margin-top: 0.8rem;
  display: none;
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ----- والت ----- */
.wallet-address {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--accent);
  font-family: var(--font-main);
  font-size: 0.9rem;
  padding: 1rem;
  border-radius: 10px;
  word-break: break-all;
  direction: ltr;
  text-align: left;
}

.copy-btn {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-main);
}

.copy-btn:hover {
  background: var(--accent);
  color: #000;
}

.crypto-option {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-main);
  transition: all 0.3s;
  margin: 0.3rem;
}

.crypto-option.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 255, 65, 0.1);
}

/* ----- آمار ----- */
.stats-bar {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* ----- فوتر ----- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: auto;
}

/* ----- شبکه‌های اجتماعی ----- */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0, 255, 65, 0.05);
}

/* ----- گالری ----- */
.gallery {
  margin: 2.5rem 0;
}

.gallery h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.gallery-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.gallery-viewport {
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 100%;
  max-width: 700px;
}

.gallery-track {
  display: flex;
  transition: transform 0.5s ease;
}

.gallery-slide {
  min-width: 100%;
  max-height: 400px;
  object-fit: contain;
  background: var(--bg-secondary);
}

.gallery-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.5rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-btn:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* ----- ریسپانسیو ----- */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(12px);
    width: 70%;
    height: calc(100vh - 70px);
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transition: right 0.3s;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .page-title {
    font-size: 2rem;
  }

  .project-card {
    max-width: 100%;
  }
}