/* ============================================
   DIY YARD PRO - MAIN STYLESHEET
   ============================================
   
   Table of Contents:
   1. CSS Reset & Variables
   2. Base Styles
   3. Navigation
   4. Hero Section
   5. Articles Section
   6. About Section
   7. Newsletter Section
   8. Footer
   9. Animations
   10. Responsive Design
   ============================================ */


/* ============================================
   1. CSS RESET & VARIABLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary: #16a34a;
    --primary-dark: #15803d;
    --secondary: #059669;
    --accent: #ff6b35;
    --dark: #0f172a;
    --gray: #64748b;
    --light-gray: #9ca3af;
    --light-bg: #f8fafc;
    --white: #ffffff;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.12);
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ============================================
   2. BASE STYLES
   ============================================ */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    overflow-x: hidden;
}

/* Container utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}


/* ============================================
   3. NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

/* Navbar when scrolled */
.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

/* Nav container */
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Nav links container */
.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

/* Individual nav links */
.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a:not(.cta-button):hover {
    color: var(--primary);
}

/* Underline effect on hover */
.nav-links a:not(.cta-button)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-fast);
}

.nav-links a:not(.cta-button):hover::after {
    width: 100%;
}

/* CTA Button styles */
.cta-button {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.3);
}


/* ============================================
   4. HERO SECTION
   ============================================ */

.hero {
    margin-top: 80px;
    padding: var(--spacing-xl) var(--spacing-md);
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Animated background element */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.1) 0%, transparent 70%);
    border-radius: var(--radius-full);
    animation: float 20s ease-in-out infinite;
}

/* Hero badge */
.hero-badge {
    display: inline-block;
    background: var(--white);
    padding: var(--spacing-xs) 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-md);
    animation: slideDown 0.6s ease-out;
}

/* Hero title */
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Hero subtitle */
.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Hero buttons container */
.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Primary CTA button */
.cta-button.primary {
    background: var(--primary);
    padding: var(--spacing-sm) 2.5rem;
    font-size: 1.1rem;
}

/* Secondary CTA button */
.cta-button.secondary {
    background: var(--white);
    color: var(--primary) !important;
    border: 2px solid var(--primary);
    padding: var(--spacing-sm) 2.5rem;
    font-size: 1.1rem;
}

.cta-button.secondary:hover {
    background: var(--primary);
    color: var(--white) !important;
}

/* Stats grid */
.stats-grid {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* Individual stat item */
.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast);
}

.stat-item:hover {
    transform: translateY(-5px);
}

/* Stat number */
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

/* Stat label */
.stat-label {
    color: var(--gray);
    font-weight: 500;
}


/* ============================================
   5. ARTICLES SECTION
   ============================================ */

.articles-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--white);
}

/* Section header */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* Section title */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--dark);
}

/* Section subtitle */
.section-subtitle {
    color: var(--gray);
    font-size: 1.2rem;
}

/* Articles grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual article card */
.article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-smooth);
    position: relative;
}

/* Article card hover effect */
.article-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

/* Article header (colored section) */
.article-header {
    padding: 3rem var(--spacing-md);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Article header background zoom effect */
.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    filter: brightness(1.1);
    transform: scale(1);
    transition: transform 0.6s;
}

.article-card:hover .article-header::before {
    transform: scale(1.1);
}

/* Article icon */
.article-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-xs);
    position: relative;
    z-index: 1;
}

/* Article badge */
.article-badge {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 0.4rem var(--spacing-sm);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* Article body content */
.article-body {
    padding: var(--spacing-md);
}

/* Article metadata (read time, difficulty) */
.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--gray);
}

/* Article title */
.article-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--dark);
    font-weight: 700;
    line-height: 1.4;
}

/* Article description */
.article-description {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Article footer (link and savings) */
.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid #e2e8f0;
}

/* Article link */
.article-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: gap var(--transition-fast);
}

.article-link:hover {
    gap: var(--spacing-sm);
}

/* Article savings badge */
.article-savings {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}


/* ============================================
   6. ABOUT SECTION
   ============================================ */

.about-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: linear-gradient(135deg, #f0fdf4 0%, var(--white) 100%);
}

/* About container */
.about-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* About avatar */
.about-avatar {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-full);
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    box-shadow: 0 12px 30px rgba(22, 163, 74, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

/* About title */
.about-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

/* About text */
.about-text {
    color: var(--gray);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

/* About stats container */
.about-stats {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Individual about stat */
.about-stat {
    padding: 1.5rem var(--spacing-md);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* About stat number */
.about-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

/* About stat label */
.about-stat-label {
    color: var(--gray);
    font-weight: 500;
}


/* ============================================
   7. NEWSLETTER SECTION
   ============================================ */

.newsletter-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Newsletter decorative element */
.newsletter-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
}

/* Newsletter container */
.newsletter-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Newsletter icon */
.newsletter-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

/* Newsletter title */
.newsletter-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

/* Newsletter subtitle */
.newsletter-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    line-height: 1.7;
}

/* Newsletter form */
.newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 550px;
    margin: 0 auto 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Newsletter input */
.newsletter-input {
    flex: 1;
    min-width: 280px;
    padding: 1.2rem 1.8rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Newsletter submit button */
.newsletter-button {
    padding: 1.2rem 2.5rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.newsletter-button:hover {
    background: #ff5722;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

/* Newsletter benefits grid */
.newsletter-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-md);
    margin-top: 3rem;
}

/* Individual benefit item */
.benefit-item {
    text-align: center;
}

/* Benefit icon */
.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

/* Benefit title */
.benefit-title {
    font-weight: 700;
    margin-bottom: 0.3rem;
}

/* Benefit text */
.benefit-text {
    opacity: 0.85;
    font-size: 0.9rem;
}

/* Newsletter note */
.newsletter-note {
    margin-top: var(--spacing-md);
    opacity: 0.8;
    font-size: 0.95rem;
}


/* ============================================
   8. FOOTER
   ============================================ */

.footer {
    background: var(--dark);
    color: #e5e7eb;
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
}

/* Footer container */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Footer title */
.footer-title {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Footer text */
.footer-text {
    color: var(--light-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Footer links container */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Individual footer link */
.footer-link {
    color: var(--light-gray);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--primary);
}

/* Social links container */
.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

/* Individual social link */
.social-link {
    color: var(--light-gray);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-link:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* Footer bottom section */
.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: var(--spacing-md);
    text-align: center;
    color: var(--light-gray);
}

.footer-bottom p {
    margin-bottom: var(--spacing-xs);
}

/* Footer tagline */
.footer-tagline {
    font-size: 0.9rem;
}


/* ============================================
   9. ANIMATIONS
   ============================================ */

/* Float animation for hero background */
@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg); 
    }
    50% { 
        transform: translate(-50px, 50px) rotate(180deg); 
    }
}

/* Slide down animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation for avatar */
@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.05); 
    }
}


/* ============================================
   10. RESPONSIVE DESIGN
   ============================================ */

/* Tablet and below */
@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        gap: var(--spacing-sm);
        flex-wrap: wrap;
    }
    
    /* Hero section */
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Section titles */
    .section-title {
        font-size: 2rem;
    }
    
    /* Newsletter */
    .newsletter-title {
        font-size: 2rem;
    }
    
    /* Articles grid - single column on mobile */
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile landscape and below */
@media (max-width: 480px) {
    /* Reduce padding on small screens */
    .hero,
    .articles-section,
    .about-section,
    .newsletter-section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    /* Smaller hero title */
    .hero h1 {
        font-size: 2rem;
    }
    
    /* Stack hero buttons vertically */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   ENHANCED ARTICLES SECTION - ADDITIONAL CSS
   ============================================
   Add this to your main.css file
   ============================================ */


/* ============================================
   CATEGORY FILTER
   ============================================ */

.category-filter {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.filter-btn {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}


/* ============================================
   ARTICLE CARD ENHANCEMENTS
   ============================================ */

/* Featured Badge (Popular, Trending, New) */
.article-featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: var(--dark);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

/* Article Views Counter */
.article-views {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Article Tags */
.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tag {
    background: #f1f5f9;
    color: var(--gray);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* Article Card Animation on Filter */
.article-card {
    animation: fadeInUp 0.5s ease-out;
}


/* ============================================
   LOAD MORE SECTION
   ============================================ */

.load-more-container {
    text-align: center;
    margin-top: 4rem;
}

.load-more-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.4);
}

.load-more-btn .btn-icon {
    font-size: 1.3rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

.articles-count {
    color: var(--gray);
    font-size: 0.95rem;
    margin-top: 1rem;
}


/* ============================================
   ENHANCED HOVER EFFECTS
   ============================================ */

/* Glow effect on hover */
.article-card:hover {
    transform: translateY(-12px) scale(1.02);
}

/* Featured badge pulse animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}


/* ============================================
   ARTICLE CARD GRADIENT VARIATIONS
   ============================================ */

/* Add unique styles for different article types if needed */
.article-card[data-category="hardscaping"] .article-savings {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-card[data-category="landscaping"] .article-savings {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-card[data-category="budget"] .article-savings {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ============================================
   RESPONSIVE ENHANCEMENTS
   ============================================ */

@media (max-width: 768px) {
    .category-filter {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .article-featured-badge {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .load-more-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .category-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        width: 100%;
        justify-content: center;
    }
    
    .article-tags {
        gap: 0.4rem;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
}


/* ============================================
   ADDITIONAL ANIMATIONS
   ============================================ */

/* Fade in scale animation for filtered items */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Shimmer effect for featured badges */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.article-featured-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 3s infinite;
}

/* ============================================
   ARTICLE PAGES STYLESHEET
   ============================================ */

/* ============================================
   ARTICLE HERO SECTION
   ============================================ */

.article-hero {
    margin-top: 80px;
    padding: 4rem 2rem 3rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-bottom: 1px solid #e5e7eb;
}

.article-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Breadcrumb Navigation */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

/* Article Category Badge */
.article-category-badge {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Article Hero Title */
.article-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 2rem;
}

/* Article Meta Info */
.article-meta-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.5rem 0;
    border-top: 2px solid #e5e7eb;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--gray);
    font-weight: 500;
}

.meta-icon {
    font-size: 1.2rem;
}

/* Author Info */
.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.author-name {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.1rem;
}

.author-bio {
    font-size: 0.9rem;
    color: var(--gray);
}


/* ============================================
   ARTICLE CONTENT
   ============================================ */

.article-content {
    padding: 3rem 2rem;
    background: white;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
}

/* Lead Paragraph */
.lead-paragraph {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 2rem;
}

/* Headings */
.content-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary);
}

.content-section h3 {
    font-size: 1.6rem;
    color: var(--dark);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    font-weight: 700;
}

.content-section h4 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

/* Paragraphs */
.content-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 1.25rem;
}

/* Lists */
.content-section ul,
.content-section ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content-section li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 0.75rem;
}

.content-section li strong {
    color: var(--dark);
    font-weight: 700;
}

/* Tools List */
.tools-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
}

.tools-list li {
    background: #f9fafb;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}


/* ============================================
   SPECIAL CONTENT BOXES
   ============================================ */

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 4px solid var(--primary);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.highlight-box h3 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 1rem;
}

.highlight-box ul {
    margin: 0;
}

/* Pro Tip Box */
.pro-tip {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.pro-tip h4 {
    color: #d97706;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.pro-tip p {
    margin-bottom: 0;
    color: #78350f;
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 4px solid #ef4444;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.warning-box p {
    margin-bottom: 0;
    color: #7f1d1d;
}

.warning-box strong {
    color: #dc2626;
}


/* ============================================
   MATERIALS & COST SECTIONS
   ============================================ */

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

.material-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.material-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
    transform: translateY(-3px);
}

.material-card h4 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 1rem;
}

.material-card ul {
    margin: 0;
    padding-left: 1.5rem;
}

/* Cost Breakdown Table */
.cost-breakdown {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.cost-breakdown h4 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.cost-breakdown table {
    width: 100%;
    border-collapse: collapse;
}

.cost-breakdown tr {
    border-bottom: 1px solid #e5e7eb;
}

.cost-breakdown td {
    padding: 1rem;
    font-size: 1.05rem;
}

.cost-breakdown td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--primary);
}

.highlight-row {
    background: #f9fafb;
}

.highlight-row td {
    font-weight: 700;
    color: var(--dark);
}

.savings-row {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.savings-row td {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
}


/* ============================================
   STEP-BY-STEP CARDS
   ============================================ */

.step-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    transition: all 0.3s;
}

.step-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.15);
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin-top: 0;
    color: var(--dark);
}

.step-content p {
    color: var(--gray);
    font-weight: 600;
    margin-bottom: 1rem;
}

.step-content ol {
    margin: 1rem 0;
}

.pattern-options {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.pattern-options h4 {
    margin-top: 0;
    color: var(--primary);
}


/* ============================================
   COMMON MISTAKES SECTION
   ============================================ */

.mistake-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.mistake-card h3 {
    color: #d97706;
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.mistake-card p {
    margin-bottom: 0;
    color: #78350f;
}


/* ============================================
   TIMELINE
   ============================================ */

.timeline {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.timeline-item {
    padding: 1.25rem;
    border-left: 3px solid var(--primary);
    margin-bottom: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}


/* ============================================
   AD CONTAINERS
   ============================================ */

.ad-container {
    margin: 3rem 0;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px dashed #d1d5db;
    text-align: center;
    min-height: 250px;
}


/* ============================================
   RELATED ARTICLES
   ============================================ */

.related-articles {
    background: #f9fafb;
    padding: 3rem 2rem;
    border-radius: 16px;
    margin-top: 4rem;
}

.related-articles h2 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    color: var(--dark);
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
    text-align: center;
}

.related-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.15);
}

.related-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.related-card h3 {
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.related-card p {
    color: var(--gray);
    margin-bottom: 0;
    font-size: 0.95rem;
}


/* ============================================
   ARTICLE NEWSLETTER CTA
   ============================================ */

.article-newsletter-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}

.article-newsletter-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.article-newsletter-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.article-newsletter-cta .cta-button {
    background: white;
    color: var(--primary);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.article-newsletter-cta .cta-button:hover {
    background: #f0fdf4;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .article-hero {
        padding: 3rem 1.5rem 2rem;
    }
    
    .article-hero-title {
        font-size: 2rem;
    }
    
    .article-meta-info {
        gap: 1rem;
    }
    
    .meta-item {
        font-size: 0.85rem;
    }
    
    .step-card {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .content-section h2 {
        font-size: 1.8rem;
    }
    
    .content-section h3 {
        font-size: 1.4rem;
    }
    
    .materials-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .article-newsletter-cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .article-hero-title {
        font-size: 1.75rem;
    }
    
    .lead-paragraph {
        font-size: 1.05rem;
    }
    
    .content-section p,
    .content-section li {
        font-size: 1rem;
    }
    
    .step-card {
        padding: 1rem;
    }
    
    .cost-breakdown {
        padding: 1rem;
    }
    
    .cost-breakdown td {
        padding: 0.75rem 0.5rem;
        font-size: 0.95rem;
    }
} 