/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette - Dark Nature-Tech (Default) */
    --bg-primary: #07090e;
    --bg-secondary: rgba(15, 23, 42, 0.65);
    --bg-tertiary: rgba(30, 41, 59, 0.4);
    
    --accent-emerald: #10b981;
    --accent-mint: #34d399;
    --accent-glow: rgba(16, 185, 129, 0.15);
    --accent-gradient: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --bg-footer: rgba(7, 9, 14, 0.4);
    --text-footer-muted: var(--text-secondary);
    
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(52, 211, 153, 0.3);
    --glass-blur: blur(16px);
    
    /* Font Configurations */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Layout */
    --header-height: 72px;
    --container-max-width: 1100px;
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    
    /* Shadow system */
    --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 12px 20px -8px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 24px 0 rgba(16, 185, 129, 0.15);
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: rgba(255, 255, 255, 0.8);
    --bg-tertiary: rgba(241, 245, 249, 0.9);
    
    --accent-emerald: #059669;
    --accent-mint: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.08);
    --accent-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --bg-footer: rgba(241, 245, 249, 0.8);
    --text-footer-muted: #334155;
    
    --border-color: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(16, 185, 129, 0.4);
    --glass-blur: blur(20px);
    
    --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 30px -10px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px 0 rgba(16, 185, 129, 0.08);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-emerald);
}

/* ==========================================================================
   AESTHETIC BACKGROUNDS
   ========================================================================== */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    pointer-events: none;
    opacity: 0.6;
    transition: all 0.5s ease;
}

.glow-1 {
    top: -10%;
    right: 10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
}

.glow-2 {
    bottom: -10%;
    left: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.08) 0%, transparent 70%);
}

.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, var(--border-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border-color) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
    opacity: 0.7;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--bg-secondary);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: background 0.4s ease, border 0.4s ease;
}

.header-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sprout-icon-wrapper {
    background: var(--accent-gradient);
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.logo-icon {
    width: 20px;
    height: 20px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation Tabs */
.nav-tabs {
    position: relative;
    display: flex;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: 30px;
    align-items: center;
}

[data-theme="light"] .nav-tabs {
    background: rgba(15, 23, 42, 0.05);
}

.nav-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease, background-color 0.3s ease;
    z-index: 2;
}

.nav-tab svg {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.nav-tab:hover {
    color: var(--text-primary);
}

.nav-tab.active {
    color: #fff;
    background: var(--accent-gradient);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .nav-tab.active {
    color: #fff;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle-btn, .lang-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover, .lang-toggle-btn:hover {
    color: var(--accent-emerald);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.theme-toggle-btn svg, .lang-toggle-btn svg {
    width: 18px;
    height: 18px;
}

.lang-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    opacity: 0.85;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
}

.sun-icon { display: none; }
.moon-icon { display: block; }

[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }


/* ==========================================================================
   MAIN CONTENT & TABS CONFIGURATION
   ========================================================================== */
.main-content {
    flex: 1;
    max-width: var(--container-max-width);
    width: 100%;
    margin: 0 auto;
    padding: 40px 24px;
    position: relative;
}

.content-section {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.content-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================================
   HOME SECTION (HERO)
   ========================================================================== */
.hero-container {
    text-align: center;
    max-width: 700px;
    margin: 40px auto 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--accent-mint);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* BUTTON SYSTEM */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    border-color: var(--text-secondary);
}

.btn-full {
    width: 100%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 30px 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-md);
    background: rgba(16, 185, 129, 0.08);
    color: var(--accent-mint);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}


/* ==========================================================================
   TOOLS SECTION
   ========================================================================== */
.section-header {
    margin-bottom: 40px;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.tool-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 250px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.tool-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 12px;
}

.tool-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-md);
    background: rgba(16, 185, 129, 0.08);
    color: var(--accent-mint);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tool-card-icon svg {
    width: 22px;
    height: 22px;
}

.tool-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-grow: 1;
    margin-bottom: 20px;
}

.btn-card-action {
    background: transparent;
    border: none;
    color: var(--accent-mint);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    transition: transform 0.2s ease, color 0.2s ease;
}

.btn-card-action svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.btn-card-action:hover {
    color: var(--accent-emerald);
}

.btn-card-action:hover svg {
    transform: translateX(4px);
}

/* Locked card layout */
.tool-card.locked {
    opacity: 0.6;
}

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 9, 14, 0.7);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.locked-overlay svg {
    width: 20px;
    height: 20px;
}

/* Play Area (Micro-Tools workspace) */
.tool-play-area {
    margin-top: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    position: relative;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.btn-back svg {
    width: 14px;
    height: 14px;
}

.tool-container h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tool-tag {
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--border-color);
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 4px;
}

.tool-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.tool-workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.tool-workspace.vertical {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
    align-items: center;
}

.input-panel, .output-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tool-workspace label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-workspace textarea, .tool-workspace select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--border-radius-md);
    padding: 14px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.tool-workspace textarea {
    height: 160px;
    resize: none;
}

.tool-workspace textarea:focus, .tool-workspace select:focus {
    border-color: var(--accent-emerald);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.options-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.code-output-container {
    position: relative;
    height: 100%;
}

.code-output-container textarea {
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border-color: var(--border-color);
    color: var(--accent-mint);
    font-family: monospace;
}

.btn-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.btn-copy svg {
    width: 16px;
    height: 16px;
}

/* Generator details styling */
.idea-result-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    width: 100%;
    margin-top: 12px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.idea-type-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-mint);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.idea-result-card h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.idea-result-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.idea-tips {
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    color: var(--text-secondary);
}


/* ==========================================================================
   BLOG SECTION
   ========================================================================== */
.blog-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.search-box input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 16px 10px 40px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--accent-emerald);
    box-shadow: var(--shadow-glow);
}

.search-box svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.tag-filters {
    display: flex;
    gap: 8px;
}

.tag-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.tag-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.tag-btn.active {
    background: var(--border-color);
    color: var(--accent-mint);
    border-color: var(--accent-mint);
}

/* Tutorial Section Cards */
.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.chapter-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}

.chapter-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.chapter-num {
    position: absolute;
    top: 15px;
    right: 20px;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.15;
    user-select: none;
}

.chapter-card h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-mint);
    margin-bottom: 8px;
    font-weight: 600;
}

.chapter-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.chapter-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.5;
    flex-grow: 1;
}

.chapter-status {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
}

.badge-growing {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--accent-mint);
}

.badge-locked {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-color);
    color: var(--text-muted);
}

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.blog-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.blog-card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--accent-mint);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.5;
}

.blog-card-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.blog-card-tags .blog-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--border-color);
    padding: 2px 8px;
    border-radius: 4px;
}

.btn-read-more {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    transition: color 0.2s ease;
}

.btn-read-more svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.btn-read-more:hover {
    color: var(--accent-mint);
}

.btn-read-more:hover svg {
    transform: translateX(4px);
}

/* Modal for Reading Blogs */
.blog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(7, 9, 14, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.blog-modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    max-width: 760px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: var(--border-radius-lg);
    position: relative;
    padding: 40px;
    box-shadow: var(--shadow-md);
    scrollbar-width: thin;
}

.blog-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog-modal-close:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

/* Inside full blog article */
.blog-article-full h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.blog-article-full .post-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.blog-article-full .post-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.blog-article-full .post-content p {
    margin-bottom: 20px;
}

.blog-article-full .post-content h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 36px 0 16px;
}

.blog-article-full .post-content blockquote {
    border-left: 3px solid var(--accent-emerald);
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    color: var(--text-primary);
}


/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    align-items: center;
    padding: 20px 0;
}

.about-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.avatar-glow-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin-bottom: 24px;
    padding: 4px;
    background: var(--accent-gradient);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.25);
}

.avatar-fallback {
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-mint);
}

.avatar-fallback svg {
    width: 50px;
    height: 50px;
}

.about-name {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.about-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-mint);
    border-color: var(--accent-mint);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.social-links a svg {
    width: 18px;
    height: 18px;
}

.about-bio h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.about-bio p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.gardening-stats {
    display: flex;
    gap: 24px;
    margin-top: 36px;
}

.stat-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 16px 24px;
    border-radius: var(--border-radius-md);
    flex: 1;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 30px 24px;
    text-align: center;
    background: var(--bg-footer);
    margin-top: auto;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: background 0.4s ease;
}

.site-footer p {
    font-size: 0.8rem;
    color: var(--text-footer-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.footer-links {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.8rem;
}

.footer-link {
    color: var(--text-footer-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-link.active {
    color: var(--accent-mint);
    font-weight: 600;
}

.heart-icon {
    width: 12px;
    height: 12px;
    color: #ef4444;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.domain-text {
    margin-top: 6px;
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}


/* ==========================================================================
   HELPERS & UTILITIES
   ========================================================================== */
.hidden {
    display: none !important;
}

.spin-anim {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    margin: 40px auto 0;
    box-shadow: var(--shadow-sm);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.empty-state svg {
    width: 44px;
    height: 44px;
    color: var(--accent-mint);
    margin-bottom: 16px;
    opacity: 0.8;
}

.empty-state p {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Document Layout and Sidebar styles */
.doc-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 48px;
    margin-top: 40px;
    align-items: start;
}

.doc-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.doc-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--text-primary);
}

.doc-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.doc-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.sidebar-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.app-meta-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-meta-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.app-meta-list .meta-label {
    color: var(--text-muted);
}

.app-meta-list .meta-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* Alert boxes */
.alert-box {
    display: flex;
    gap: 16px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-left: 4px solid #f59e0b;
    border-radius: var(--border-radius-md);
    padding: 20px;
    margin: 28px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.alert-box.alert-warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
    border-left-color: #f59e0b;
}

.alert-icon {
    color: #f59e0b;
    flex-shrink: 0;
}

.alert-icon svg {
    width: 22px;
    height: 22px;
}

/* Mac Window mockup shell */
.mac-window-mockup {
    background: #1e293b;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin: 24px auto 32px;
    box-shadow: var(--shadow-md);
    width: fit-content;
    min-width: 320px;
    max-width: 100%;
}

.mac-window-titlebar {
    background: #0f172a;
    height: 32px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mac-dots {
    display: flex;
    gap: 8px;
}

.mac-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.mac-red { background: #ef4444; }
.mac-yellow { background: #f59e0b; }
.mac-green { background: #10b981; }

.mac-window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.mac-window-mockup img {
    display: block;
    width: 100%;
    height: auto;
}


/* ==========================================================================
   RESPONSIVE LAYOUTS (MOBILE FRIENDLY)
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --header-height: auto;
    }
    
    .header-container {
        flex-direction: column;
        padding: 16px 20px;
        gap: 16px;
        align-items: center;
    }
    
    .nav-tabs {
        width: 100%;
        justify-content: center;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .nav-tab {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .header-actions {
        display: none; /* Hide toggle on narrow mobile header to conserve space */
    }
    
    .main-content {
        padding: 24px 20px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-layout {
        display: flex;
        flex-direction: column;
    }
    
    .tool-workspace {
        grid-template-columns: 1fr;
    }
    
    .tool-workspace textarea {
        height: 120px;
    }
    
    .blog-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .tag-filters {
        overflow-x: auto;
        padding-bottom: 4px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-modal-content {
        padding: 24px;
    }
    
    .blog-article-full h1 {
        font-size: 1.6rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .gardening-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .tutorial-grid {
        grid-template-columns: 1fr;
    }
    
    .doc-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .doc-content {
        padding: 24px;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
