/*
Theme Name: GP Child
Theme URI: https://example.com
Description: Child theme for GeneratePress
Author: Your Name
Template: generatepress
Version: 1.0.0
*/

/* ==========================================================================
   Content Layout
   ========================================================================== */

/* Tighten reading width for long-form content */
.single-post .entry-content {
  max-width: 760px;
  margin-inline: auto;
}

/* ==========================================================================
   Affiliate Monetization Blocks
   ========================================================================== */

/* Legacy affiliate box (for shortcode backward compatibility) */
.gb-affiliate-box {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.25rem;
  background: #fafafa;
}

/* ==========================================================================
   GenerateBlocks Custom Styles
   ========================================================================== */

/* --- Affiliate CTA Button --- */
.gb-button-affiliate {
  background: #2563eb;
  color: white !important;
  padding: 0.875rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease;
}

.gb-button-affiliate:hover {
  background: #1d4ed8;
  color: white !important;
}

.gb-button-affiliate:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* --- Product Comparison Box (Outer Container) --- */
.gb-container-product {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 0;
  margin: 2rem 0;
  background: #fafafa;
  position: relative;
}

/* Product Box Inner Container */
.gb-container-product-inner {
  padding: 1.5rem;
}

/* Product "Best For" line */
.gb-product-bestfor {
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
  margin: 0.5rem 0 1rem;
}

/* Product Box Badge (Editor's Choice, Best Pick, etc.) */
.gb-product-badge {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  background: #10b981;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Product Box Bullets */
.gb-container-product ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.gb-container-product ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.gb-container-product ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

/* --- Decision Helper Block --- */
.gb-container-decision {
  border-left: 4px solid #3b82f6;
  background: #eff6ff;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.gb-container-decision .gb-headline {
  margin-top: 0;
  color: #1e40af;
  font-size: 1.125rem;
}

.gb-container-decision ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.gb-container-decision ul li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.5rem;
  color: #1e3a8a;
}

.gb-container-decision ul li.decision-yes::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.gb-container-decision ul li.decision-no::before {
  content: "❌";
  position: absolute;
  left: 0;
}

/* ==========================================================================
   Visual Disclosure Block (for special pages)
   ========================================================================== */

.gb-container-disclosure {
  border: 1px solid #fbbf24;
  background: #fffbeb;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  color: #92400e;
}

.gb-container-disclosure p {
  margin: 0;
}

/* ==========================================================================
   Tool Cards & Comparison Grids (Money Pages)
   ========================================================================== */

/* Individual Tool Card */
.tool-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  background: #ffffff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

/* Tool Card Heading */
.tool-card .gb-headline {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: #111827;
}

/* Tool Card "Best for" line */
.tool-card .tool-bestfor {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

/* Tool Card Bullets */
.tool-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  flex-grow: 1;
}

.tool-card ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: #374151;
}

.tool-card ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: bold;
}

/* Tool Card CTA Button */
.tool-card .gb-button {
  margin-top: 1rem;
  width: 100%;
  text-align: center;
}

/* Grid Layout for Tool Cards */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tool-grid.tool-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Newsletter CTA Blocks
   ========================================================================== */

/* Inline Newsletter CTA (mid-article) */
.newsletter-cta-inline {
  border: 2px solid #3b82f6;
  border-radius: 8px;
  padding: 1.5rem;
  background: #eff6ff;
  margin: 2.5rem 0;
  text-align: center;
}

.newsletter-cta-inline .gb-headline {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #1e40af;
  font-size: 1.25rem;
}

.newsletter-cta-inline p {
  margin-bottom: 1rem;
  color: #1e3a8a;
}

.newsletter-cta-inline .gb-button {
  background: #3b82f6;
  color: white !important;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease;
}

.newsletter-cta-inline .gb-button:hover {
  background: #2563eb;
}

/* End-of-post Newsletter CTA (stronger) */
.newsletter-cta-end {
  border: 2px solid #10b981;
  border-radius: 10px;
  padding: 2rem;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  margin: 3rem 0;
  text-align: center;
}

.newsletter-cta-end .gb-headline {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #065f46;
  font-size: 1.5rem;
}

.newsletter-cta-end p {
  margin-bottom: 1.25rem;
  color: #047857;
  font-size: 1.0625rem;
}

.newsletter-cta-end .gb-button {
  background: #10b981;
  color: white !important;
  padding: 1rem 2.5rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.newsletter-cta-end .gb-button:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   Content Note (Documentation-Style Callout)
   ========================================================================== */

.content-note {
  border-left: 4px solid #6366f1;
  background: #f5f3ff;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.content-note.note-info {
  border-left-color: #3b82f6;
  background: #eff6ff;
}

.content-note.note-warning {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.content-note.note-success {
  border-left-color: #10b981;
  background: #ecfdf5;
}

.content-note.note-danger {
  border-left-color: #ef4444;
  background: #fef2f2;
}

.content-note p:first-child {
  margin-top: 0;
}

.content-note p:last-child {
  margin-bottom: 0;
}

/* Optional: Add icon support via emoji or custom */
.content-note::before {
  content: "ℹ️";
  margin-right: 0.5rem;
  font-size: 1.25rem;
}

.content-note.note-warning::before {
  content: "⚠️";
}

.content-note.note-success::before {
  content: "✅";
}

.content-note.note-danger::before {
  content: "❌";
}

/* ==========================================================================
   Top Pick Box (Enhanced for Money Pages)
   ========================================================================== */

.top-pick-box {
  border: 3px solid #10b981;
  border-radius: 10px;
  padding: 0;
  margin: 2rem 0;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
  position: relative;
}

.top-pick-box::before {
  content: "🏆 TOP PICK";
  position: absolute;
  top: -14px;
  left: 1.5rem;
  background: #10b981;
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.top-pick-box-inner {
  padding: 2rem 1.5rem 1.5rem;
}

.top-pick-box .gb-headline {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #065f46;
  font-size: 1.5rem;
}

.top-pick-box p {
  margin-bottom: 1rem;
  color: #047857;
  font-size: 1.0625rem;
}

.top-pick-box ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.top-pick-box ul li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.5rem;
  color: #065f46;
  font-weight: 500;
}

.top-pick-box ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
  font-size: 1.125rem;
}

.top-pick-box .gb-button {
  background: #10b981;
  color: white !important;
  padding: 0.875rem 1.75rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.top-pick-box .gb-button:hover {
  background: #059669;
  transform: translateY(-1px);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
  .gb-button-affiliate {
    width: 100%;
    text-align: center;
  }
  
  .gb-container-product-inner {
    padding: 1.25rem;
  }
  
  .gb-product-badge {
    right: 1rem;
  }
  
  .tool-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .tool-card {
    padding: 1.25rem;
  }
  
  .newsletter-cta-inline,
  .newsletter-cta-end {
    padding: 1.25rem;
  }
  
  .top-pick-box-inner {
    padding: 1.75rem 1.25rem 1.25rem;
  }
}
