/*
Theme Name: Budget Sprout
Theme URI: https://budgetsprout.com
Author: Brendan Correia
Author URI: https://budgetsprout.com
Description: A modern, responsive WordPress theme for Budget Sprout blog with Block Editor support and Next.js headless integration. Features floating card design, cream background, and beautiful typography optimized for financial content.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: budget-sprout
Tags: blog, two-columns, custom-colors, custom-menu, editor-style, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks

Budget Sprout WordPress Theme
Built for headless WordPress with Next.js frontend.
Block Editor enabled with custom styling to match Next.js design.
*/

/* ==========================================================================
   CSS VARIABLES - Brand Colors & Typography
   ========================================================================== */

:root {
    /* Brand Colors */
    --primary-blue: #2E86AB;
    --secondary-blue: #A23B72;
    --accent-teal: #4ECDC4;
    --fresh-green: #7CB342;
    --light-teal: #B8E6E1;
    --navy-blue: #1B4D72;
    --soft-blue: #87CEEB;
    --mint-green: #98FB98;
    
    /* Background Colors */
    --background-light: #F0F8FF;
    --background-blue: #E6F3FF;
    --background-green: #F0FFF0;
    --background-accent: #FFF8F5;
    --background-cream: #fefcf8;
    --white: #FFFFFF;
    
    /* Text Colors */
    --text-dark: #1B4D72;
    --text-medium: #4A5568;
    --text-light: #718096;
    
    /* Status Colors */
    --success-green: #10B981;
    --warning-orange: #F59E0B;
    --error-red: #EF4444;
    
    /* Typography */
    --font-serif: 'Merriweather', serif;
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Varela Round', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--background-cream);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
    margin-bottom: 1.5em;
    line-height: 1.8;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.content-area {
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   FLOATING BLOG CARD DESIGN
   ========================================================================== */

.single-post-layout {
    background: var(--background-cream);
    min-height: 100vh;
}

.floating-blog-card {
    max-width: 800px;
    margin: -120px auto 3rem auto;
    padding: 3rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
}

.hero-image-container {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #64748b 0%, #334155 100%);
    background-size: cover;
    background-position: center;
    margin-bottom: 0;
}

/* ==========================================================================
   BLOG POST CONTENT
   ========================================================================== */

.blog-post-content {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
}

.blog-post-content h2 {
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 0.5rem;
    margin-top: 2.5rem;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.blog-post-content blockquote {
    border-left: 4px solid var(--primary-blue);
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 1em 0 1.5em 1.5em;
    padding: 0;
}

.blog-post-content li {
    margin-bottom: 1em;
}

.blog-post-content code {
    background: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

.blog-post-content pre {
    background: #1a1a1a;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 2rem 0;
}

/* ==========================================================================
   POST META
   ========================================================================== */

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 2rem 0;
    flex-wrap: wrap;
}

.meta-separator {
    margin: 0 0.5rem;
}

.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* ==========================================================================
   POST TAGS
   ========================================================================== */

.post-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.post-tags h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-medium);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--background-blue);
    color: var(--primary-blue);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

/* ==========================================================================
   AUTHOR BIO
   ========================================================================== */

.author-bio-section {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.author-bio-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.author-avatar img {
    border-radius: 50%;
    border: 3px solid var(--primary-blue);
}

.author-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.author-info p {
    margin: 0;
    color: var(--text-medium);
}

/* ==========================================================================
   POST NAVIGATION
   ========================================================================== */

.post-navigation {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.nav-arrows {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.nav-arrow {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.nav-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.nav-title {
    font-weight: 600;
    color: var(--text-dark);
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.post-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-search,
.sidebar-recent-posts {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.sidebar-search h3,
.sidebar-recent-posts h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

.search-input-container {
    display: flex;
    gap: 0.5rem;
}

.search-field {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-sm);
    font-family: var(--font-serif);
}

.search-submit {
    padding: 0.75rem 1rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}

.search-submit:hover {
    background: var(--navy-blue);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-image-container {
        height: 300px;
    }
    
    .floating-blog-card {
        margin: -80px 1rem 2rem 1rem;
        padding: 2rem 1.5rem;
    }
    
    .author-bio-card {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-arrows {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-blue);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .social-share-sidebar,
    .post-sidebar,
    .post-navigation {
        display: none;
    }
    
    .floating-blog-card {
        box-shadow: none;
        margin: 0;
    }
}

/**
 * Budget Sprout Frontend - Blog Post Styles
 * Add this to your existing style.css to match Next.js exactly
 */

/* ===================================
   BLOG POST CONTAINER
   =================================== */
.single-post .entry-content,
.blog-post-content {
  max-width: 900px !important;
  margin: 0 auto;
  padding: 3rem 2rem;
  font-family: 'Merriweather', serif;
}

/* ===================================
   WORDPRESS BLOCK CONTENT WRAPPER
   =================================== */
.wp-block-post-content {
  max-width: 900px;
  margin: 0 auto;
}

/* ===================================
   PARAGRAPHS
   =================================== */
.entry-content p,
.blog-post-content p,
.wp-content p {
  font-family: 'Merriweather', serif !important;
  font-size: 18px !important;
  line-height: 1.8 !important;
  font-weight: 400 !important;
  margin-bottom: 1.5rem !important;
  color: #4a5568 !important;
}

/* ===================================
   HEADINGS
   =================================== */
.entry-content h1,
.blog-post-content h1,
.wp-content h1 {
  font-family: 'Merriweather', serif !important;
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin-top: 3rem !important;
  margin-bottom: 1rem !important;
  color: #1a202c !important;
}

.entry-content h2,
.blog-post-content h2,
.wp-content h2 {
  font-family: 'Merriweather', serif !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin-top: 3rem !important;
  margin-bottom: 1rem !important;
  color: #1a202c !important;
}

.entry-content h3,
.blog-post-content h3,
.wp-content h3 {
  font-family: 'Merriweather', serif !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin-top: 2rem !important;
  margin-bottom: 0.75rem !important;
  color: #2d3748 !important;
}

.entry-content h4,
.blog-post-content h4,
.wp-content h4 {
  font-family: 'Merriweather', serif !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin-top: 2rem !important;
  margin-bottom: 0.75rem !important;
  color: #2d3748 !important;
}

/* ===================================
   TEXT FORMATTING
   =================================== */
.entry-content strong,
.entry-content b,
.wp-content strong,
.wp-content b {
  font-weight: 700 !important;
  color: #1a202c !important;
}

.entry-content em,
.entry-content i,
.wp-content em,
.wp-content i {
  font-style: italic !important;
}

/* ===================================
   LISTS
   =================================== */
.entry-content ul,
.entry-content ol,
.wp-content ul,
.wp-content ol {
  font-family: 'Merriweather', serif !important;
  font-size: 18px !important;
  line-height: 1.8 !important;
  font-weight: 400 !important;
  margin-bottom: 1.5rem !important;
  padding-left: 2.5rem !important;
  list-style-position: outside !important;
}

.entry-content ul,
.wp-content ul {
  list-style-type: disc !important;
}

.entry-content ol,
.wp-content ol {
  list-style-type: decimal !important;
}

.entry-content li,
.wp-content li {
  font-family: 'Merriweather', serif !important;
  font-size: 18px !important;
  line-height: 1.8 !important;
  margin-bottom: 0.5rem !important;
  color: #4a5568 !important;
  display: list-item !important;
}

.entry-content li::marker,
.wp-content li::marker {
  color: #4a5568 !important;
}

/* ===================================
   LINKS
   =================================== */
.entry-content a,
.wp-content a {
  color: #2a7d9d !important;
  text-decoration: underline !important;
}

.entry-content a:hover,
.wp-content a:hover {
  color: #1e5970 !important;
}

/* ===================================
   BLOCKQUOTES
   =================================== */
.entry-content blockquote,
.wp-content blockquote,
.wp-block-quote {
  font-family: 'Merriweather', serif !important;
  font-size: 18px !important;
  line-height: 1.8 !important;
  font-style: italic !important;
  border: 2px dashed #cbd5e0 !important;
  border-radius: 8px !important;
  padding: 1.5rem !important;
  margin: 2rem 0 !important;
  background-color: #f7fafc !important;
  color: #4a5568 !important;
  border-left: none !important;
}

/* Remove WordPress default left border on quotes */
.wp-block-quote {
  border-left: none !important;
}

/* ===================================
   IMAGES
   =================================== */
.entry-content img,
.wp-content img,
.wp-block-image img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
  margin: 2rem 0 !important;
}

/* WordPress image captions */
.wp-block-image figcaption,
.wp-caption-text {
  font-family: 'Merriweather', serif;
  font-size: 14px;
  font-style: italic;
  color: #718096;
  text-align: center;
  margin-top: 0.5rem;
}

/* ===================================
   SEPARATORS
   =================================== */
.entry-content hr,
.wp-content hr,
.wp-block-separator {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 3rem 0 !important;
  background: none !important;
  height: 1px !important;
}

/* ===================================
   CODE BLOCKS
   =================================== */
.entry-content code,
.wp-content code {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  background: #f7fafc;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  color: #2d3748;
}

.entry-content pre,
.wp-content pre,
.wp-block-code {
  font-family: 'Monaco', 'Courier New', monospace;
  background: #f7fafc;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
}

/* ===================================
   WORDPRESS ALIGNMENT CLASSES
   =================================== */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  max-width: 100%;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ===================================
   WORDPRESS BLOCKS - Remove defaults
   =================================== */

/* Remove extra spacing WordPress adds */
.wp-block-group,
.wp-block-cover {
  margin-bottom: 0 !important;
}

/* Fix WordPress column blocks */
.wp-block-columns {
  margin-bottom: 1.5rem;
}

/* ===================================
   MOBILE RESPONSIVE
   =================================== */
@media (max-width: 768px) {
  .single-post .entry-content,
  .blog-post-content {
    padding: 2rem 1rem;
  }
  
  .entry-content h1,
  .blog-post-content h1 {
    font-size: 2rem !important;
  }
  
  .entry-content h2,
  .blog-post-content h2 {
    font-size: 1.75rem !important;
  }
  
  .entry-content h3,
  .blog-post-content h3 {
    font-size: 1.5rem !important;
  }
  
  .alignleft,
  .alignright {
    float: none;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

/* ===================================
   PRINT STYLES (bonus)
   =================================== */
@media print {
  .entry-content,
  .blog-post-content {
    font-size: 12pt;
    line-height: 1.6;
    color: #000;
  }
  
  .entry-content a {
    text-decoration: none;
    color: #000;
  }
  
  .entry-content a[href]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}
/**
 * Budget Sprout Frontend - Blog Post Styles
 * Add this to your existing style.css to match Next.js exactly
 */

/* ===================================
   BLOG POST CONTAINER
   =================================== */
.single-post .entry-content,
.blog-post-content {
  max-width: 900px !important;
  margin: 0 auto;
  padding: 3rem 2rem;
  font-family: 'Merriweather', serif;
}

/* ===================================
   WORDPRESS BLOCK CONTENT WRAPPER
   =================================== */
.wp-block-post-content {
  max-width: 900px;
  margin: 0 auto;
}

/* ===================================
   PARAGRAPHS
   =================================== */
.entry-content p,
.blog-post-content p,
.wp-content p {
  font-family: 'Merriweather', serif !important;
  font-size: 18px !important;
  line-height: 1.8 !important;
  font-weight: 400 !important;
  margin-bottom: 1.5rem !important;
  color: #4a5568 !important;
}

/* ===================================
   HEADINGS
   =================================== */
.entry-content h1,
.blog-post-content h1,
.wp-content h1 {
  font-family: 'Merriweather', serif !important;
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin-top: 3rem !important;
  margin-bottom: 1rem !important;
  color: #1a202c !important;
}

.entry-content h2,
.blog-post-content h2,
.wp-content h2 {
  font-family: 'Merriweather', serif !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin-top: 3rem !important;
  margin-bottom: 1rem !important;
  color: #1a202c !important;
}

.entry-content h3,
.blog-post-content h3,
.wp-content h3 {
  font-family: 'Merriweather', serif !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin-top: 2rem !important;
  margin-bottom: 0.75rem !important;
  color: #2d3748 !important;
}

.entry-content h4,
.blog-post-content h4,
.wp-content h4 {
  font-family: 'Merriweather', serif !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin-top: 2rem !important;
  margin-bottom: 0.75rem !important;
  color: #2d3748 !important;
}

/* ===================================
   TEXT FORMATTING
   =================================== */
.entry-content strong,
.entry-content b,
.wp-content strong,
.wp-content b {
  font-weight: 700 !important;
  color: #1a202c !important;
}

.entry-content em,
.entry-content i,
.wp-content em,
.wp-content i {
  font-style: italic !important;
}

/* ===================================
   LISTS
   =================================== */
.entry-content ul,
.entry-content ol,
.wp-content ul,
.wp-content ol {
  font-family: 'Merriweather', serif !important;
  font-size: 18px !important;
  line-height: 1.8 !important;
  font-weight: 400 !important;
  margin-bottom: 1.5rem !important;
  padding-left: 2.5rem !important;
  list-style-position: outside !important;
}

.entry-content ul,
.wp-content ul {
  list-style-type: disc !important;
}

.entry-content ol,
.wp-content ol {
  list-style-type: decimal !important;
}

.entry-content li,
.wp-content li {
  font-family: 'Merriweather', serif !important;
  font-size: 18px !important;
  line-height: 1.8 !important;
  margin-bottom: 0.5rem !important;
  color: #4a5568 !important;
  display: list-item !important;
}

.entry-content li::marker,
.wp-content li::marker {
  color: #4a5568 !important;
}

/* ===================================
   LINKS
   =================================== */
.entry-content a,
.wp-content a {
  color: #2a7d9d !important;
  text-decoration: underline !important;
}

.entry-content a:hover,
.wp-content a:hover {
  color: #1e5970 !important;
}

/* ===================================
   BLOCKQUOTES
   =================================== */
.entry-content blockquote,
.wp-content blockquote,
.wp-block-quote {
  font-family: 'Merriweather', serif !important;
  font-size: 18px !important;
  line-height: 1.8 !important;
  font-style: italic !important;
  border: 2px dashed #cbd5e0 !important;
  border-radius: 8px !important;
  padding: 1.5rem !important;
  margin: 2rem 0 !important;
  background-color: #f7fafc !important;
  color: #4a5568 !important;
  border-left: none !important;
}

/* Remove WordPress default left border on quotes */
.wp-block-quote {
  border-left: none !important;
}

/* ===================================
   IMAGES
   =================================== */
.entry-content img,
.wp-content img,
.wp-block-image img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
  margin: 2rem 0 !important;
}

/* WordPress image captions */
.wp-block-image figcaption,
.wp-caption-text {
  font-family: 'Merriweather', serif;
  font-size: 14px;
  font-style: italic;
  color: #718096;
  text-align: center;
  margin-top: 0.5rem;
}

/* ===================================
   SEPARATORS
   =================================== */
.entry-content hr,
.wp-content hr,
.wp-block-separator {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 3rem 0 !important;
  background: none !important;
  height: 1px !important;
}

/* ===================================
   CODE BLOCKS
   =================================== */
.entry-content code,
.wp-content code {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  background: #f7fafc;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  color: #2d3748;
}

.entry-content pre,
.wp-content pre,
.wp-block-code {
  font-family: 'Monaco', 'Courier New', monospace;
  background: #f7fafc;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
}

/* ===================================
   WORDPRESS ALIGNMENT CLASSES
   =================================== */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  max-width: 100%;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ===================================
   WORDPRESS BLOCKS - Remove defaults
   =================================== */

/* Remove extra spacing WordPress adds */
.wp-block-group,
.wp-block-cover {
  margin-bottom: 0 !important;
}

/* Fix WordPress column blocks */
.wp-block-columns {
  margin-bottom: 1.5rem;
}

/* ===================================
   MOBILE RESPONSIVE
   =================================== */
@media (max-width: 768px) {
  .single-post .entry-content,
  .blog-post-content {
    padding: 2rem 1rem;
  }
  
  .entry-content h1,
  .blog-post-content h1 {
    font-size: 2rem !important;
  }
  
  .entry-content h2,
  .blog-post-content h2 {
    font-size: 1.75rem !important;
  }
  
  .entry-content h3,
  .blog-post-content h3 {
    font-size: 1.5rem !important;
  }
  
  .alignleft,
  .alignright {
    float: none;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

/* ===================================
   PRINT STYLES (bonus)
   =================================== */
@media print {
  .entry-content,
  .blog-post-content {
    font-size: 12pt;
    line-height: 1.6;
    color: #000;
  }
  
  .entry-content a {
    text-decoration: none;
    color: #000;
  }
  
  .entry-content a[href]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}
/**
 * Budget Sprout - Landing Page & Navigation Fixes
 * Add to your WordPress theme's main style.css
 * These styles match your Next.js landing page exactly
 */

/* ===================================
   GOOGLE FONTS - Load matching fonts
   =================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

/* ===================================
   ROOT VARIABLES - Match Next.js
   =================================== */
:root {
  --font-poppins: 'Poppins', system-ui, sans-serif;
  --font-varela: 'Varela Round', system-ui, sans-serif;
  --font-merriweather: 'Merriweather', Georgia, serif;
  
  --sprout-green: #4CAF50;
  --sprout-blue: #5B9BD5;
  --navy-900: #102A43;
  --navy-800: #243B53;
  --navy-700: #334E68;
}

/* ===================================
   GLOBAL FONT SETTINGS
   =================================== */
body {
  font-family: var(--font-poppins) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings use Varela Round by default (like Next.js) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-varela) !important;
}

/* Blog posts override to use Merriweather */
.single-post h1,
.single-post h2,
.single-post h3,
.single-post h4,
.single-post h5,
.single-post h6 {
  font-family: var(--font-merriweather) !important;
}

/* ===================================
   HEADER / NAVIGATION
   =================================== */
.site-header {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .site-title {
  font-family: var(--font-varela) !important;
  font-weight: 700;
  font-size: 1.5rem;
  color: #3789a9;
}

.main-navigation {
  font-family: var(--font-poppins) !important;
}

.main-navigation a {
  font-weight: 500;
  color: #334E68;
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: #3789a9;
}

/* ===================================
   SLIDE-OUT MENU (Match Next.js)
   =================================== */

/* Menu Toggle Button (Right side) */
.menu-toggle {
  position: fixed;
  right: 0;
  top: 8rem; /* 128px like Next.js */
  z-index: 50;
  
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4rem;
  width: 3rem;
  
  background-color: #3789a9;
  color: white;
  
  border: none;
  border-radius: 0.5rem 0 0 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.menu-toggle span {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* Mobile Menu Panel */
.mobile-menu {
  position: fixed;
  right: 0;
  top: 0;
  z-index: 50;
  
  height: 100vh;
  width: 20rem; /* 320px */
  
  background-color: #f9fafb;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

/* Menu Header */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: white;
}

.mobile-menu-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.mobile-menu-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 0.5rem;
  background-color: #3789a9;
}

.mobile-menu-logo-text {
  font-family: var(--font-varela) !important;
  font-size: 1.25rem;
  font-weight: 700;
  color: #3789a9;
}

.menu-close {
  padding: 0.5rem;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.menu-close:hover {
  color: #374151;
}

/* Menu Items */
.mobile-menu-items {
  padding: 1.5rem;
  overflow-y: auto;
  height: calc(100vh - 200px);
}

.mobile-menu-items ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-items li {
  margin-bottom: 0.5rem;
}

.mobile-menu-items a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-family: var(--font-poppins);
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  transition: all 0.2s;
}

.mobile-menu-items a:hover {
  background-color: white;
  color: #111827;
}

/* Menu CTA Buttons */
.mobile-menu-cta {
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
  background: white;
}

.mobile-menu-cta .btn-signin {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  
  text-align: center;
  font-family: var(--font-poppins);
  font-weight: 500;
  color: #3789a9;
  
  border: 2px solid #3789a9;
  border-radius: 0.5rem;
  background: white;
  
  text-decoration: none;
  transition: all 0.2s;
}

.mobile-menu-cta .btn-signin:hover {
  background-color: #f0f9ff;
}

.mobile-menu-cta .btn-trial {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  
  text-align: center;
  font-family: var(--font-poppins);
  font-weight: 500;
  color: white;
  
  background: linear-gradient(135deg, #7CB342, #9ACD32);
  border: none;
  border-radius: 0.5rem;
  
  text-decoration: none;
  transition: transform 0.2s;
}

.mobile-menu-cta .btn-trial:hover {
  transform: scale(1.05);
}

/* Hide menu toggle on desktop */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

/* Show menu toggle on mobile */
@media (max-width: 767px) {
  .main-navigation {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
}

/* ===================================
   BUTTONS - Match Next.js styling
   =================================== */
.btn-primary,
.wp-block-button__link {
  font-family: var(--font-poppins) !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #7CB342, #9ACD32);
  color: white;
  border: none;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s;
}

.btn-primary:hover,
.wp-block-button__link:hover {
  transform: scale(1.05);
}

.btn-secondary {
  font-family: var(--font-poppins) !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background: white;
  color: #3789a9;
  border: 2px solid #3789a9;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background-color: #f0f9ff;
}

/* ===================================
   LANDING PAGE SECTIONS
   =================================== */

/* Hero Section */
.hero-section {
  font-family: var(--font-poppins);
  padding: 4rem 2rem;
}

.hero-section h1 {
  font-family: var(--font-varela) !important;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-900);
}

/* Feature Cards */
.feature-card {
  font-family: var(--font-poppins);
}

.feature-card h3 {
  font-family: var(--font-varela) !important;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-800);
}

/* Stats Section */
.stats-section {
  font-family: var(--font-poppins);
}

.stat-number {
  font-family: var(--font-varela) !important;
  font-size: 3rem;
  font-weight: 700;
  color: var(--sprout-green);
}

/* Testimonials */
.testimonial-card {
  font-family: var(--font-poppins);
}

.testimonial-text {
  font-style: italic;
  color: #4b5563;
}

.testimonial-author {
  font-weight: 600;
  color: var(--navy-800);
}

/* FAQ Section */
.faq-section {
  font-family: var(--font-poppins);
}

.faq-question {
  font-family: var(--font-varela) !important;
  font-weight: 700;
  color: var(--navy-800);
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
  font-family: var(--font-poppins);
  background-color: #f9fafb;
  padding: 3rem 2rem;
}

.site-footer h3 {
  font-family: var(--font-varela) !important;
  font-weight: 700;
  color: var(--navy-800);
}

.site-footer a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #3789a9;
}

/* ===================================
   RESPONSIVE FIXES
   =================================== */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .mobile-menu {
    width: 100%;
    max-width: 20rem;
  }
}