/* ==========================================================================
   Wealth In Digital Pro Booster - Style Enhancements for Astra Theme
   100% Non-Destructive: Preserves all menus, header layouts, and logos.
   ========================================================================== */

/* 1. Global Reading Progress Bar */
#wid-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #00b0ff 0%, #00e676 100%);
  z-index: 999999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(0, 176, 255, 0.5);
}

/* 2. Blog Archive & Post Cards Polish */
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single,
.blog .post,
.archive .post,
article.ast-article-post {
  border-radius: 14px !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.06) !important;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease !important;
  overflow: hidden !important;
}

.blog .post:hover,
.archive .post:hover,
article.ast-article-post:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 36px -6px rgba(0, 176, 255, 0.14) !important;
  border-color: rgba(0, 176, 255, 0.3) !important;
}

/* Post Card Thumbnail Zoom */
.post-thumb-img-content,
.ast-blog-featured-section {
  overflow: hidden !important;
}

.ast-blog-featured-section img,
.post-thumb-img-content img {
  transition: transform 0.35s ease !important;
}

article.ast-article-post:hover .ast-blog-featured-section img,
article.ast-article-post:hover .post-thumb-img-content img {
  transform: scale(1.03) !important;
}

/* Post Titles on Archive */
.entry-title a {
  transition: color 0.2s ease !important;
}

.entry-title a:hover {
  color: #0091ea !important;
}

/* 3. Single Article Typography & Heading Accents */
.single-post .entry-content {
  font-size: 1.125rem !important;
  line-height: 1.8 !important;
  color: #334155 !important;
}

.single-post .entry-content p {
  margin-bottom: 1.6rem !important;
}

/* Modern H2 Headings with subtle Left Accent */
.single-post .entry-content h2 {
  font-size: 1.85rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-top: 2.8rem !important;
  margin-bottom: 1.2rem !important;
  padding-left: 14px !important;
  border-left: 4px solid #00b0ff !important;
  line-height: 1.3 !important;
}

/* Modern H3 Headings */
.single-post .entry-content h3 {
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin-top: 2rem !important;
  margin-bottom: 0.9rem !important;
}

/* Modernized Blockquotes */
.single-post .entry-content blockquote {
  background: #f8fafc !important;
  border-left: 4px solid #00b0ff !important;
  padding: 1.25rem 1.75rem !important;
  border-radius: 0 10px 10px 0 !important;
  margin: 2rem 0 !important;
  font-style: italic !important;
  color: #475569 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

/* 4. Sleek Gutenberg Tables */
.wp-block-table {
  overflow-x: auto !important;
  margin: 2.5rem 0 !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05) !important;
  background: #ffffff !important;
}

.wp-block-table table {
  width: 100% !important;
  border-collapse: collapse !important;
}

.wp-block-table th {
  background: #0f172a !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 14px 18px !important;
  text-align: left !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.02em !important;
  border-bottom: 2px solid #1e293b !important;
}

.wp-block-table td {
  padding: 14px 18px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: #475569 !important;
  font-size: 0.95rem !important;
}

.wp-block-table tr:nth-child(even) td {
  background-color: #f8fafc !important;
}

.wp-block-table tr:hover td {
  background-color: rgba(0, 176, 255, 0.05) !important;
}

/* 5. High-Converting Gutenberg Buttons */
.wp-block-button__link,
.wp-element-button {
  background: linear-gradient(135deg, #00b0ff, #0081cb) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 12px 28px !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(0, 176, 255, 0.3) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: none !important;
  display: inline-block !important;
  text-decoration: none !important;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(0, 176, 255, 0.45) !important;
  background: linear-gradient(135deg, #26c6da, #00b0ff) !important;
  color: #ffffff !important;
}

/* 6. Built-in Pros & Cons Component */
.wid-pros-cons-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

@media (max-width: 768px) {
  .wid-pros-cons-container {
    grid-template-columns: 1fr;
  }
}

.wid-pros-column,
.wid-cons-column {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
}

.wid-pros-column {
  border-top: 4px solid #00e676;
}

.wid-cons-column {
  border-top: 4px solid #ef4444;
}

.wid-box-heading {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pros-heading { color: #059669; }
.cons-heading { color: #dc2626; }

.wid-pros-column ul,
.wid-cons-column ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
}

.wid-pros-column li,
.wid-cons-column li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.5;
}

.wid-pros-column li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: 900;
}

.wid-cons-column li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: #dc2626;
  font-weight: 900;
}

/* 7. Built-in High-Converting CTA Box */
.wid-cta-wrapper {
  position: relative;
  margin: 2.5rem 0;
  text-align: center;
}

.wid-cta-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
  z-index: 2;
}

.wid-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00e676, #00c853);
  color: #05070d !important;
  padding: 16px 32px;
  border-radius: 10px;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.wid-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 230, 118, 0.5);
  background: linear-gradient(135deg, #69f0ae, #00e676);
}

.wid-btn-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.wid-cta-subtext {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.85;
  margin-top: 3px;
}

/* 8. Affiliate Disclosure Compliance Box */
.wid-compliance-box {
  background: #f0f9ff;
  border-left: 4px solid #00b0ff;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 0.88rem;
  color: #0369a1;
  margin: 1.5rem 0 2rem;
  line-height: 1.6;
}

/* 9. Floating Back to Top Button */
#wid-back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #00b0ff;
  color: #ffffff;
  border: none;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 176, 255, 0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

#wid-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

#wid-back-to-top:hover {
  transform: translateY(-3px);
  background: #0091ea;
  box-shadow: 0 10px 25px rgba(0, 176, 255, 0.55);
}
