/1
Theme Name: Scaling AI Digitals
Theme URI: https://scalingaidigitals.com/wordpress
Author: Jessica Penn
Author URI: https://www.youtube.com/@Jessicapenn-u6r
Description: A clean, professional theme for Scaling AI Digitals — AI tutorials, Lovable affiliate offers, Prompt Vault, and coding videos for beginners.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scaling-ai-digitals
Tags: blog, portfolio, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* ============================================================
   SCALING AI DIGITALS — WordPress Theme
   Colors from logo: Navy #1a2e5a | Blue #2b6cb0 | Light Blue #63b3ed
   White background, simple and professional
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Variables ── */
:root {
  --navy:       #1a2e5a;
  --blue:       #2b6cb0;
  --light-blue: #63b3ed;
  --pale-blue:  #ebf4ff;
  --mid-blue:   #bee3f8;
  --white:      #ffffff;
  --off-white:  #f7faff;
  --text-dark:  #1a2e5a;
  --text-mid:   #2d3748;
  --text-muted: #718096;
  --border:     #dbeafe;
  --radius:     10px;
  --shadow:     0 2px 12px rgba(26,46,90,0.08);
  --shadow-md:  0 4px 24px rgba(26,46,90,0.13);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }

img { max-width: 100%; height: auto; display: block; }

p { margin-bottom: 1rem; color: var(--text-mid); }

ul, ol { padding-left: 1.5rem; }

code, pre {
  font-family: 'JetBrains Mono', monospace;
  background: var(--pale-blue);
  border-radius: 4px;
  font-size: 0.875rem;
}

code { padding: 2px 6px; }
pre  { padding: 1rem; overflow-x: auto; }

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover { background: var(--pale-blue); color: var(--navy); }

.btn-affiliate {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-affiliate:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ── Badges / Pills ── */
.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--pale-blue);
  color: var(--blue);
  border: 1px solid var(--mid-blue);
}

.badge-top {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--blue);
  color: #fff;
}

/* ── Section Labels ── */
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ── Navbar ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1.5px solid var(--border);
  backdrop-filter: blur(8px);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo img { height: 40px; width: auto; object-fit: contain; }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }

.main-nav a {
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover,
.main-nav a.current-menu-item { background: var(--pale-blue); color: var(--navy); }

.header-cta { margin-left: 1rem; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--navy);
}

@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1.5px solid var(--border); padding: 1rem; gap: 0.25rem; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
}

/* ── Hero Section ── */
.hero {
  padding: 5rem 0 4rem;
  background: var(--white);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--pale-blue);
  color: var(--blue);
  border: 1px solid var(--mid-blue);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--navy);
}

.hero h1 span { color: var(--blue); }

.hero p.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

.hero-proof { margin-top: 1.25rem; font-size: 0.8rem; color: var(--text-muted); }
.hero-proof strong { color: var(--navy); }

/* ── YouTube / Video Section ── */
.video-section {
  padding: 3rem 0;
  background: var(--white);
  border-bottom: 1.5px solid var(--border);
}

.video-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}

@media (max-width: 900px) { .video-card { grid-template-columns: 1fr; } }

.video-embed-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}

.video-embed-wrap iframe,
.video-embed-wrap .video-thumb-btn {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.video-thumb-btn {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.video-thumb-btn img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.video-thumb-btn:hover .play-btn { transform: scale(1.1); }

.play-btn svg { width: 28px; height: 28px; fill: #fff; margin-left: 4px; }

.video-info { padding: 2rem; display: flex; flex-direction: column; justify-content: center; background: var(--white); }

.video-channel-badge { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.video-channel-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--pale-blue); display: flex; align-items: center; justify-content: center; }
.video-channel-icon svg { width: 20px; height: 20px; fill: var(--blue); }

.video-info h2 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.video-info p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.video-info .btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ── Stats Strip ── */
.stats-strip {
  background: var(--off-white);
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue);
  display: block;
}
.stat-label { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }

/* ── Feature Cards Grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
}

.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--pale-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.feature-icon svg { width: 20px; height: 20px; stroke: var(--blue); fill: none; stroke-width: 2; }

.feature-card h3 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.feature-card .card-link { font-size: 0.8rem; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 4px; }

/* ── Code / Prompt Panel ── */
.code-panel {
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--navy);
  line-height: 1.6;
  overflow: hidden;
}

/* ── Affiliate Disclaimer ── */
.affiliate-disclaimer {
  background: var(--pale-blue);
  border: 1.5px solid var(--mid-blue);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0 1rem;
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.affiliate-disclaimer strong { color: var(--navy); }

/* ── Footer ── */
.site-footer {
  background: var(--off-white);
  border-top: 1.5px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand img { height: 40px; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); max-width: 280px; }

.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-social a { color: var(--text-muted); transition: color 0.15s; }
.footer-social a:hover { color: var(--blue); }
.footer-social svg { width: 20px; height: 20px; }

.footer-col h4 { font-size: 0.85rem; font-weight: 700; color: var(--navy); margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a { font-size: 0.85rem; color: var(--text-muted); }
.footer-col ul li a:hover { color: var(--blue); }

.footer-bottom {
  border-top: 1.5px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Blog / Archive ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.blog-card { padding: 0; overflow: hidden; }
.blog-card .blog-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--pale-blue); }
.blog-card .blog-body { padding: 1.25rem; }
.blog-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.blog-card .blog-meta { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.blog-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.blog-card .read-more { font-size: 0.82rem; font-weight: 600; color: var(--blue); }

/* ── Single Post ── */
.post-content { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem; }
.post-content h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.post-content .post-meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 2rem; }
.post-content h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
.post-content h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.post-content ul, .post-content ol { margin-bottom: 1rem; }
.post-content li { margin-bottom: 0.4rem; font-size: 0.95rem; }
.post-content blockquote { border-left: 4px solid var(--blue); padding-left: 1rem; color: var(--text-muted); font-style: italic; margin: 1.5rem 0; }

/* ── CTA Banner ── */
.cta-banner {
  background: var(--navy);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 0.75rem; }
.cta-banner h2 span { color: var(--light-blue); }
.cta-banner p { color: rgba(255,255,255,0.75); max-width: 480px; margin: 0 auto 2rem; }
.cta-banner .btn-primary { background: var(--blue); border-color: var(--blue); }
.cta-banner .btn-primary:hover { background: var(--light-blue); border-color: var(--light-blue); color: var(--navy); }

/* ── Responsive Utilities ── */
@media (max-width: 640px) {
  .section { padding: 2.5rem 0; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 2rem; }
  .cards-grid { grid-template-columns: 1fr; }
}
