/* Custom Styles for High-CPC Authority Blog */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #10b981;
  --bg-dark: #0f172a;
  --card-dark: #1e293b;
}

/* Smooth reading typography */
.prose {
  font-size: 1.075rem;
  line-height: 1.8;
  color: #334155;
}

.prose h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: #1e293b;
}

.prose p {
  margin-bottom: 1.35rem;
}

.prose ul, .prose ol {
  margin-bottom: 1.35rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose strong {
  color: #0f172a;
}

.prose a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.prose a:hover {
  color: #1d4ed8;
}

/* Reading Progress Bar */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #10b981);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Ad Placeholders */
.ad-slot-wrapper {
  margin: 2rem 0;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ad-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 6px;
  display: block;
}

/* Sticky Mobile Anchor Ad Bar */
.mobile-anchor-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.3);
  z-index: 9000;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.mobile-anchor-ad.hidden-ad {
  transform: translateY(100%);
}

.ad-close-btn {
  position: absolute;
  top: -12px;
  right: 12px;
  background: #ef4444;
  color: white;
  border-radius: 9999px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Comparison Tables */
.table-container {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.custom-table th {
  background: #f1f5f9;
  padding: 12px 16px;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 2px solid #cbd5e1;
}

.custom-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

.custom-table tr:hover {
  background: #f8fafc;
}
