/* ============================================================
   assets/css/ads.css — Modern Responsive Ads Styling for Bol Kinnauri
   ============================================================ */

.bk-ad-container {
  width: 100%;
  margin: 20px 0;
  clear: both;
  display: block;
}

.bk-ad-container.bk-ad-header {
  margin: 10px auto 16px auto;
  text-align: center;
}

.bk-ad-container.bk-ad-footer {
  margin: 24px auto 10px auto;
  text-align: center;
}

.bk-ad-container.bk-ad-sidebar {
  margin: 16px 0;
}

.bk-ad-container.bk-ad-inpage {
  margin: 28px 0;
}

/* Modern Card Wrapper */
.bk-ad-card {
  position: relative;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  border-radius: var(--radius-lg, 12px);
  padding: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.25s ease;
  text-align: center;
}

[data-theme="dark"] .bk-ad-card {
  background: var(--bg-tertiary, #161b26);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.bk-ad-card:hover {
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
}

/* Sponsored / Advertisement Badge */
.bk-ad-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 8px;
  user-select: none;
}

.bk-ad-badge i {
  font-size: 0.65rem;
  color: #f59e0b;
}

/* Inner slot content (Google AdSense, Adsterra, or custom scripts) */
.bk-ad-slot-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 50px;
}

.bk-ad-slot-content ins.adsbygoogle {
  display: block;
  margin: 0 auto;
}

/* Custom Image / Banner Ad link */
.bk-ad-custom-link {
  display: block;
  text-decoration: none;
  max-width: 100%;
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  position: relative;
}

.bk-ad-custom-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md, 8px);
  transition: transform 0.3s ease;
}

.bk-ad-custom-link:hover .bk-ad-custom-img {
  transform: scale(1.015);
}

/* Native Card Ad Layout (Icon/Image + Headline + Description + Action CTA) */
.bk-ad-native {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 8px 12px;
}

@media (max-width: 640px) {
  .bk-ad-native {
    flex-direction: column;
    text-align: center;
  }
}

.bk-ad-native-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bk-ad-native-body {
  flex: 1;
  min-width: 0;
}

.bk-ad-native-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary, var(--text-main, #1e293b));
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.bk-ad-native-desc {
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
  margin: 0;
  line-height: 1.45;
}

.bk-ad-native-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.bk-ad-native-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
}

/* ============================================================
   Android Play Store App Limit Popup Modal
   ============================================================ */
.bk-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: bkFadeIn 0.25s ease-out;
}

@keyframes bkFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bkModalSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.bk-app-modal-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  position: relative;
  animation: bkModalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .bk-app-modal-card {
  background: #1e2433;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

.bk-app-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 10px 20px;
  border-bottom: 1px solid var(--border-light, rgba(0, 0, 0, 0.06));
}

[data-theme="dark"] .bk-app-modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.bk-app-play-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
}

[data-theme="dark"] .bk-app-play-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.bk-modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted, #94a3b8);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.bk-modal-close-btn:hover {
  color: var(--danger, #ef4444);
  background: rgba(239, 68, 68, 0.1);
}

.bk-app-modal-body {
  padding: 20px;
  text-align: center;
}

.bk-app-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  margin-bottom: 18px;
}

.bk-app-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.bk-app-info {
  flex: 1;
  min-width: 0;
}

.bk-app-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  margin: 0 0 2px 0;
  line-height: 1.3;
}

[data-theme="dark"] .bk-app-title {
  color: #f8fafc;
}

.bk-app-sub {
  font-size: 0.78rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 6px;
}

.bk-app-badge-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  background: #fef3c7;
  color: #b45309;
  padding: 2px 8px;
  border-radius: 6px;
}

[data-theme="dark"] .bk-app-badge-pill {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.bk-app-limit-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 14px;
}

[data-theme="dark"] .bk-app-limit-notice {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.bk-app-desc {
  font-size: 0.88rem;
  color: var(--text-secondary, #334155);
  line-height: 1.5;
  margin-bottom: 16px;
  text-align: left;
}

[data-theme="dark"] .bk-app-desc {
  color: #cbd5e1;
}

.bk-app-features {
  background: var(--bg-body, #f8fafc);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

[data-theme="dark"] .bk-app-features {
  background: rgba(15, 23, 42, 0.5);
}

.bk-app-feature-item {
  font-size: 0.82rem;
  color: var(--text-main, #1e293b);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

[data-theme="dark"] .bk-app-feature-item {
  color: #e2e8f0;
}

.bk-app-feature-item i {
  color: #10b981;
  font-size: 0.85rem;
}

.bk-playstore-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #000000;
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 12px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.bk-playstore-btn:hover {
  transform: translateY(-2px);
  background: #111827;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.bk-playstore-btn i.fa-google-play {
  font-size: 1.8rem;
  color: #34d399;
}

.bk-playstore-btn span {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.bk-playstore-btn span small {
  font-size: 0.65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.8;
}

.bk-playstore-btn span strong {
  font-size: 1.02rem;
  font-weight: 700;
}

.bk-app-modal-footer-note {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
