/* استایل هدر کلی */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #667eea, #764ba2);
  box-shadow: 0 2px 4px rgba(0, 0, 10, 0.1);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white; /* رنگ پیش‌فرض متن */
}

@media (max-width: 768px) {
  .header {
    position: static !important;
  }
}


/* لینک‌های منو */
.header-link {
  color: #d1d5db; /* خاکستری روشن */
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
  cursor: pointer;
}

.header-link:hover {
  color: #ffffff; /* سفید در حالت هاور */
}

/* دکمه دانلود */
.download-button {
  background-color: white;
  color: #4f46e5;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

.download-button:hover {
  background-color: #e0e7ff;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.6);
}

/* لایه کلیک بیرونی */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent; /* نامرئی */
  z-index: 150;
}

/* منوی کشویی سمت چپ */
.side-dropdown {
  position: absolute;
  top: 60px;   /* دقیقا زیر هدر */
  left: 1rem;  /* از سمت چپ */
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1rem;
  animation: slideFromLeft 0.3s ease forwards;
  z-index: 200;
}

/* لینک‌ها */
.side-dropdown a {
  margin: 0.5rem 0;
  text-decoration: none;
  font-size: 1rem;
  color: #333;
  transition: color 0.2s;
}

.side-dropdown a:hover {
  color: #0077ff;
}

/* انیمیشن اسلاید از چپ */
@keyframes slideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
