/* Monetization, Ad Placements, VIP Community & Affiliate Styles */

/* 1. VIP WhatsApp & Telegram Community Bar */
.vip-community-bar {
  background: linear-gradient(90deg, #059669 0%, #0284c7 100%);
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vip-community-bar .vip-tag {
  background: #fef08a;
  color: #854d0e;
  font-size: 0.725rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.vip-community-bar .vip-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-join-wa {
  background: #25d366;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.775rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.15s ease, background 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.btn-join-wa:hover {
  background: #1ebc59;
  transform: translateY(-1px);
}

.btn-join-tg {
  background: #0088cc;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.775rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.15s ease, background 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.btn-join-tg:hover {
  background: #0077b5;
  transform: translateY(-1px);
}

/* 2. Google AdSense Responsive Ad Slots */
.ad-slot-container {
  margin: 1.5rem auto;
  text-align: center;
  width: 100%;
  max-width: 1000px;
  padding: 0.5rem;
}

.ad-label {
  display: block;
  font-size: 0.685rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  opacity: 0.8;
}

.ad-box {
  background: var(--surface-subtle);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}
.ad-box:hover {
  border-color: var(--primary);
}

.ad-leaderboard {
  min-height: 90px;
  width: 100%;
}

.ad-in-article {
  margin: 2rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  min-height: 250px;
  box-shadow: var(--shadow-sm);
}

.ad-box-placeholder {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.ad-box-placeholder svg {
  opacity: 0.4;
}

/* 3. High Converting Affiliate Badges & Buttons */
.affiliate-partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.725rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
[data-theme="dark"] .affiliate-partner-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.4);
}

.affiliate-cashback-callout {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(2, 132, 199, 0.1) 100%);
  border-left: 4px solid #10b981;
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0.75rem 0;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 4. Sticky Bottom Revenue Notification Bar */
.sticky-bottom-deal-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 2px solid var(--primary);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
  padding: 0.65rem 1rem;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: transform 0.3s ease;
}

.sticky-bottom-deal-bar.hidden {
  transform: translateY(100%);
}

.deal-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.deal-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.deal-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.1rem;
}

.deal-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.deal-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-deal-claim {
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.825rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
  transition: all 0.15s ease;
}
.btn-deal-claim:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(79, 70, 229, 0.4);
}

.btn-deal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  border-radius: 4px;
}
.btn-deal-close:hover {
  background: var(--surface-subtle);
  color: var(--text);
}

/* 5. Floating Quick Action Community Button */
.floating-community-badge {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.float-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
  position: relative;
}
.float-btn:hover {
  transform: scale(1.1);
}

.float-wa {
  background: #25d366;
}
.float-tg {
  background: #0088cc;
}

.float-tooltip {
  position: absolute;
  right: 56px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.2s ease;
}
.float-btn:hover .float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* 6. Sponsored Review & Partner Tag */
.sponsored-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  font-weight: 600;
}
[data-theme="dark"] .sponsored-badge {
  background: #1e293b;
  color: #94a3b8;
  border-color: #334155;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
  .vip-community-bar {
    font-size: 0.775rem;
    padding: 0.4rem 0.75rem;
  }
  .sticky-bottom-deal-bar {
    padding: 0.5rem 0.75rem;
  }
  .deal-text p {
    display: none;
  }
  .floating-community-badge {
    bottom: 5rem;
    right: 0.75rem;
  }
}
