
  /* استایل تبلیغات */
:root {
  --ad-primary: #ff6b6b;
  --ad-secondary: #4ecdc4;
  --ad-gold: #ffd700;
}

.sidebar-ads {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.ad-banner {
  background: linear-gradient(135deg, var(--ad-primary), var(--ad-secondary));
  color: white;
  padding: 25px;
  border-radius: 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.ad-banner:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  color: white;
}

.ad-banner.premium {
  background: linear-gradient(135deg, var(--ad-gold), #ff8c00);
  color: #333;
}

.ad-banner.tech {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.ad-banner.service {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.ad-special-label {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #ff4757;
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
}

.top-ad-banner, .bottom-ad, .text-ad {
  display: block;
  text-align: center;
  padding: 20px;
  border-radius: 15px;
  margin: 25px 0;
  text-decoration: none;
  transition: 0.3s;
  font-size: 1.1rem;
}

.top-ad-banner {
  background: linear-gradient(135deg, #ff9a9e, #fecfef);
  color: #333;
}

.bottom-ad {
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
  color: #333;
}

.text-ad {
  background: linear-gradient(135deg, #a8edea, #fed6e3);
  color: #333;
}

.top-ad-banner:hover,
.bottom-ad:hover,
.text-ad:hover {
  transform: scale(1.03);
}

.ad-title {
  font-weight: 600;
  font-size: 1.2rem;
}

.main-wrapper {
  display: flex;
  gap: 30px;
  max-width: 1400px;
  margin: auto;
  padding: 20px;
}

.container {
  flex: 1;
  min-width: 0;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.ad-banner:nth-child(odd),
.ad-banner:nth-child(even) {
  animation: pulse 3s ease-in-out infinite;
}

.ad-banner::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 ease;
}

.ad-banner:hover::before {
  left: 100%;
}
