/* --- Global Styles & Variables --- */
:root {
    --primary-color: #3182CE;
    --primary-hover: #4299E1;
    --background-color: #0d1117;
    --surface-color: #1a1a1a;
    --text-color: #c9d1d9;
    --text-muted: #8b949e;
    --border-color: #30363d;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-mono: 'Source Code Pro', 'SF Mono', Consolas, 'Courier New', monospace;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3, h4 { 
    font-weight: 700; 
    line-height: 1.2; 
    color: #e6edf3;
}
h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
.text-center { text-align: center; }
.section-title { text-align: center; margin-bottom: 3rem; font-size: 2.5rem; }
.subtitle { color: var(--text-muted); max-width: 650px; margin: 1rem auto; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn-primary { 
    background-color: var(--primary-color); 
    color: #fff; 
    border-color: #63B3ED;
}
.btn-primary:hover { background-color: var(--primary-hover); }
.btn-secondary { 
    background-color: transparent; 
    color: #58a6ff; 
    border: 1px solid #58a6ff; 
}
.btn-secondary:hover { background-color: #58a6ff1a; }

/* --- Header & Navigation --- */
.main-header { padding: 1.5rem 0; border-bottom: 1px solid var(--border-color); }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--text-color); text-decoration: none; }
.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav a, .dropdown-toggle { color: var(--text-muted); font-weight: 600; text-decoration: none; transition: color 0.2s ease; }
.main-nav a:hover { color: var(--text-color); }
.hamburger-menu, .mobile-nav { display: none; }

/* Dropdowns */
.dropdown { position: relative; display: inline-block; padding: 1rem 0; margin: -1rem 0; }
.dropdown-toggle { color: var(--text-muted); font-weight: 600; cursor: pointer; background: none; border: none; font-size: 1rem; font-family: inherit; padding: 0; }
.dropdown-toggle:hover, .dropdown:hover .dropdown-toggle { color: var(--text-color); }
.dropdown-menu { display: none; position: absolute; top: 100%; right: 0; background-color: #161b22; min-width: 160px; border: 1px solid var(--border-color); border-radius: 6px; box-shadow: 0 8px 16px rgba(0,0,0,0.3); z-index: 1000; padding: 0.5rem 0; }
/* This creates an invisible block above the menu that catches the mouse cursor */
.dropdown-menu::before {
    content: "";
    display: block;
    position: absolute;
    top: -20px;  /* extend upwards towards the button */
    left: 0;
    width: 100%;
    height: 20px; /* height of the bridge */
    background: transparent; /* make it invisible */
}
.dropdown-menu a { color: var(--text-muted); padding: 0.75rem 1.5rem; display: block; text-align: left; margin: 0; }
.dropdown-menu a:hover { background-color: rgba(255, 255, 255, 0.05); color: var(--text-color); }
.dropdown:hover .dropdown-menu { display: block; }

/* --- Homepage Sections --- */
.hero { padding: 6rem 0; }
.hero h1 { max-width: 800px; margin: 0 auto 1.5rem; }
.hero .cli-identifier { font-family: var(--font-mono); font-size: 1.1rem; color: var(--primary-color); margin-bottom: 2rem; }
.hero .subtitle { font-size: 1.25rem; }
.demo-section { padding: 2rem 0 5rem; }
.demo-gif { max-width: 100%; border-radius: 8px; border: 1px solid var(--border-color); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); display: block; margin: 0 auto 2rem auto; }
.more-demos-link { text-align: center; margin-top: 2.5rem; font-size: 1.1rem; color: #c9d1d9; }
.more-demos-link a { color: #58a6ff; font-weight: 600; text-decoration: none; border-bottom: 1px solid #58a6ff; transition: color 0.2s, border-color 0.2s; padding-bottom: 2px; }
.more-demos-link a:hover { color: #80baff; border-bottom-color: #80baff; }

/* --- Why Rust / Feature Grid & FIXED BUTTON --- */
.why-rust-section { padding: 5rem 0; background-color: var(--surface-color); }

.features-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 1.5rem; 
    text-align: left; 
    margin-top: 3rem;
}

.feature-card { background-color: #161b22; padding: 1.5rem 2rem; border-radius: 8px; border: 1px solid var(--border-color); }
.feature-card h3 { margin-top: 0; margin-bottom: 0.5rem; font-size: 1.25rem; color: var(--text-color); }
.feature-card p { color: var(--text-muted); margin-bottom: 0; }

/* FIX: Forces the button wrapper to span the full width of the grid */
.benchmark-cta {
    grid-column: 1 / -1; 
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px dashed #30363d;
    width: 100%;
}

.benchmark-cta .btn {
    min-width: 200px;
    font-size: 1.1rem;
}

/* --- FIXED Features Table --- */
.features-table-section { padding: 5rem 0; }

.features-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background: #161b22;
}

.features-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px; /* Ensures table doesn't crush on mobile */
}

.features-table th, 
.features-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.features-table th {
    background-color: #0d1117;
    color: #e6edf3;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
}

/* Feature Name Column */
.features-table td:first-child {
    color: #e6edf3;
    font-weight: 500;
    width: 60%;
}

/* Free/Pro Columns */
.features-table th:nth-child(2), .features-table td:nth-child(2),
.features-table th:nth-child(3), .features-table td:nth-child(3) {
    text-align: center;
    width: 20%;
    vertical-align: middle;
}

/* Row Striping */
.features-table tbody tr:nth-child(even) { background-color: #0d1117; }
.features-table tbody tr:hover { background-color: #21262d; }

/* Icons */
.check { color: #2ea043; font-size: 1.4rem; }
.cross { color: #484f58; font-size: 1.2rem; }


/* --- Installation & Privacy Section --- */
.installation-section { padding: 5rem 0; background-color: var(--surface-color); }

.code-block-container { 
    position: relative;
    max-width: 800px; 
    margin: 1.5rem auto; 
    background-color: #161b22; 
    border-radius: 8px; 
    padding: 1.5rem; 
    border: 1px solid var(--border-color); 
}
.code-block-container h3 { margin: 0 0 0.5rem; }
.code-block-container p { margin-top: 0.5rem; }
pre { margin: 0; background: #0d1117; padding: 1rem; border-radius: 6px; overflow-x: auto; }
code { font-family: var(--font-mono); font-size: 0.9rem; color: #dcdfe4; }

.copy-button {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background-color: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s;
}
.copy-button:hover { background-color: #30363d; }
.copy-button.copied { background-color: #2ea043; color: white; border-color: #267c34; }

/* --- NEW: Solid Privacy Card --- */
.privacy-card {
    background: #0d1117;
    border: 1px solid #30363d;
    border-left: 5px solid #2ea043; /* Green accent */
    border-radius: 8px;
    padding: 2rem;
    margin: 4rem auto 1rem auto;
    max-width: 700px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.privacy-card .icon { 
    font-size: 3rem; 
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(46, 160, 67, 0.4));
}

.privacy-card h3 { 
    margin: 0 0 0.5rem 0; 
    color: #e6edf3; 
    font-size: 1.35rem; 
}

.privacy-card p { 
    margin: 0; 
    color: #8b949e; 
    font-size: 1rem;
    line-height: 1.5; 
}

.safety-pledge-link {
    text-align: center;
    margin-bottom: 0;
}
.safety-pledge-link a { 
    color: #58a6ff; 
    text-decoration: none; 
    font-weight: 600; 
    border-bottom: 1px dashed #58a6ff; 
    font-size: 0.9rem;
}
.safety-pledge-link a:hover { 
    border-bottom-style: solid; 
}

/* --- NEW: Newsletter Section --- */
.newsletter-section { 
    background-color: #0d1117; 
    padding: 5rem 0; 
    text-align: center; 
    border-top: 1px solid #30363d; 
    position: relative;
    z-index: 1;
}

.newsletter-section .container { max-width: 600px; }
.newsletter-section h2 { margin-bottom: 0.75rem; color: #e6edf3; font-size: 2rem; }
.newsletter-section .subtitle { margin-bottom: 2.5rem; font-size: 1.1rem; color: #8b949e; }

/* Capsule Form Design */
.newsletter-form { 
    display: flex; 
    gap: 10px; 
    background: #161b22; 
    padding: 10px;
    border: 1px solid #30363d;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.newsletter-form input[type="email"] { 
    flex-grow: 1; 
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    outline: none;
}
.newsletter-form input[type="email"]::placeholder { color: #484f58; }

.newsletter-form button { 
    background-color: #2ea043;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}
.newsletter-form button:hover { background-color: #3fb950; }


/* --- NEW: Footer --- */
.main-footer { 
    background-color: #0d1117; 
    padding: 3rem 0; 
    text-align: center; 
    color: #484f58; 
    border-top: 1px solid #21262d; 
    font-size: 0.9rem;
}

.footer-links { 
    display: flex; 
    justify-content: center; 
    gap: 1.5rem; 
    margin-bottom: 1rem; 
}

.footer-links a { 
    color: #8b949e; 
    text-decoration: none; 
    font-weight: 500;
}
.footer-links a:hover { color: #58a6ff; }

/* --- Content/Blog/Docs Styles --- */
.blog-post-container, .changelog-container, .support-container, .roadmap-container, .use-cases-container, .about-content-container { padding-top: 3rem; padding-bottom: 4rem; }
.blog-post-container { max-width: 800px; margin: 0 auto; } /* Added Center */

/* Blog */
.blog-post-header h1, .blog-listing-container h1, .use-cases-container h1, .changelog-container h1, .support-header h1 { font-size: 2.75rem; text-align: center; margin-bottom: 1rem; }
.blog-post-meta { color: var(--text-muted); margin-bottom: 2rem; text-align: center; } /* Centered meta */
.blog-post-content p, .blog-post-content ul, .blog-post-content li { font-size: 1.1rem; color: var(--text-color); }
.blog-post-content h2 { font-size: 1.8rem; margin-top: 2.5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
.blog-post-content a { color: #58a6ff; text-decoration: none; }
.blog-post-content a:hover { text-decoration: underline; }

/* Blog Grid */
.blog-listing-container h1 { font-size: 2.75rem; text-align: center; margin-bottom: 1rem; }
.blog-subtitle, .use-cases-subtitle, .roadmap-subtitle, .changelog-subtitle { color: var(--text-muted); max-width: 550px; margin: 0 auto 4rem auto; text-align: center; font-size: 1.1rem; }
.blog-posts-grid, .roadmap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.blog-card, .roadmap-card, .use-case-card { background-color: #161b22; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s ease, border-color 0.2s ease; }
.blog-card:hover { transform: translateY(-5px); border-color: #58a6ff; }
.blog-card-content { padding: 1.5rem; }
.blog-card h2 { margin: 0 0 0.75rem 0; font-size: 1.4rem; }
.blog-card h2 a { color: #e6edf3; text-decoration: none; }
.blog-card p { margin: 0 0 1.5rem 0; color: var(--text-muted); }
.blog-card-category { display: inline-block; background-color: #58a6ff1a; color: #58a6ff; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; margin-bottom: 1rem; }

/* Docs */
.docs-container { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; padding-top: 2rem; padding-bottom: 4rem; }
.docs-nav { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; }
.docs-nav ul { list-style: none; padding: 0; margin: 0; }
.docs-nav li { margin-bottom: 0.5rem; }
.docs-nav a { color: var(--text-muted); text-decoration: none; display: block; padding: 0.25rem 0; }
.docs-nav a:hover { color: #58a6ff; }
.docs-content section { margin-bottom: 3rem; border-bottom: 1px solid var(--border-color); padding-bottom: 2rem; }
.docs-content h1 { font-size: 2.5rem; }
.docs-content pre { background: #0d1117; padding: 1rem; border-radius: 6px; }

/* Use Case / Misc */
.use-case-card { padding: 2rem; margin-bottom: 3rem; }
.gif-container { margin-top: 1.5rem; position: relative; max-width: 100%; border-radius: 8px; overflow: hidden; border: 1px solid #4a4a4a; }
.gif-thumbnail { width: 100%; display: block; }
.final-cta { padding: 2rem; text-align: center; }

/* Form */
.form-container { max-width: 600px; margin: 0 auto; background-color: #161b22; padding: 2rem; border: 1px solid var(--border-color); border-radius: 8px; }
.form-container input, .form-container textarea { width: 100%; padding: 0.75rem; margin-top: 0.5rem; background-color: #0d1117; border: 1px solid var(--border-color); border-radius: 6px; color: #c9d1d9; box-sizing: border-box;}
.form-container button { width: 100%; font-size: 1rem; margin-top: 1rem; }

/* About */
.about-content { max-width: 800px; margin: 0 auto; }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 1.5rem; }

/* Benchmark Page */
.benchmark-container h1 { margin-bottom: 0.5rem; }
.benchmark-article { border-bottom: 1px solid var(--border-color); padding-bottom: 2rem; margin-bottom: 2rem; }
.benchmark-table { width: 100%; margin-top: 1.5rem; border-collapse: collapse; }
.benchmark-table th, .benchmark-table td { text-align: left; padding: 0.75rem 1rem; border: 1px solid var(--border-color); }
.benchmark-table th { background-color: #21262d; color: #e6edf3; }

/* --- RESPONSIVE STYLES --- */
@media (max-width: 768px) {
    /* Global */
    h1 { font-size: 2.25rem; }
    .section-title, .blog-post-header h1 { font-size: 2rem; }
    
    /* Navigation */
    .main-nav, .main-header .btn-primary { display: none; }
    .hamburger-menu { display: block; font-size: 2rem; background: none; border: none; color: #c9d1d9; cursor: pointer; z-index: 1001; }
    .mobile-nav { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--background-color); z-index: 1000; display: flex; flex-direction: column; align-items: center; gap: 2rem; transform: translateX(100%); transition: transform 0.3s ease-in-out; padding: 4rem 0; box-sizing: border-box; }
    .mobile-nav.active { transform: translateX(0); }
    .mobile-nav a { color: #e6edf3; text-decoration: none; font-size: 1.5rem; }
    body.no-scroll { overflow: hidden; }

    /* Layout Grids */
    .features-grid, .blog-posts-grid, .roadmap-grid, .projects-grid, .docs-container { grid-template-columns: 1fr; }
    
    /* Benchmark Button Mobile */
    .benchmark-cta { margin-top: 2rem; border-top: 1px solid var(--border-color); }
    .benchmark-cta .btn { width: 100%; }

    /* Features Table Mobile */
    .features-table th, .features-table td { padding: 0.75rem; font-size: 0.9rem; }
    
    /* NEW: Privacy Card Mobile */
    .privacy-card { flex-direction: column; text-align: center; padding: 1.5rem; }
    .privacy-card .icon { margin-bottom: 1rem; }

    /* NEW: Newsletter Mobile */
    .newsletter-form { flex-direction: column; background: transparent; border: none; box-shadow: none; padding: 0; }
    .newsletter-form input[type="email"] { background: #161b22; border: 1px solid #30363d; border-radius: 8px; width: 100%; box-sizing: border-box; margin-bottom: 0.75rem; }
    .newsletter-form button { width: 100%; }

    /* Docs */
    .docs-nav { position: relative; top: 0; max-height: none; border-bottom: 1px solid var(--border-color); margin-bottom: 2rem; padding-bottom: 1rem; }
}

/* =========================================
   USE CASES PAGE STYLES
   ========================================= */

.use-cases-hero {
    padding: 6rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: radial-gradient(circle at top center, #1f2937 0%, #0d1117 70%);
}

.use-cases-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.use-cases-grid {
    display: grid;
    /* Creates a responsive grid: 1 column on mobile, 2 on desktop */
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.use-case-card {
    background-color: #161b22;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.use-case-card:hover {
    transform: translateY(-5px);
    border-color: #58a6ff;
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}

.use-case-card h2 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #e6edf3;
    line-height: 1.4;
    border-bottom: 1px solid #30363d;
    padding-bottom: 1rem;
}

.use-case-card p {
    color: var(--text-muted);
    font-size: 1rem;
    flex-grow: 1; /* Pushes content down so cards align */
    margin-bottom: 1.5rem;
}

/* Adjust code blocks to fit inside grid cards */
.use-case-card .code-block-container {
    max-width: 100%;
    margin: 0 0 1.5rem 0;
    font-size: 0.85rem; /* Slightly smaller font for density */
    border: 1px solid #30363d;
    background: #0d1117;
}

.use-case-card pre {
    padding: 1rem;
    overflow-x: auto;
}

/* GIF Thumbnail Styles */
.gif-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #30363d;
    background: #000;
    cursor: pointer;
    margin-top: auto; /* Pushes to bottom of flex container */
}

.gif-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.gif-container:hover .gif-thumbnail {
    opacity: 1;
}

.gif-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    pointer-events: none;
}

/* Mobile Adjustments for Use Cases */
@media (max-width: 768px) {
    .use-cases-hero h1 { font-size: 2.5rem; }
    .use-cases-grid { 
        grid-template-columns: 1fr; /* Force single column on mobile */
    }
    .use-case-card { padding: 1.5rem; }
}

/* =========================================
   LIGHTBOX STYLES (Simplified)
   ========================================= */

#lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 10000; /* Extremely high to sit on top of everything */
    
    /* REMOVED: opacity: 0 and animation */
    /* We will rely purely on display: none/flex toggled by JS */
    display: none; 
    
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

#lightbox-overlay.active {
    display: flex !important; /* Force visibility when class is added */
}

.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#lightbox-overlay img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    background-color: #0d1117;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* =========================================
   DOCS PAGE STYLES
   ========================================= */

/* The Main Layout: Sidebar + Content */
.docs-container {
    display: grid;
    /* Sidebar fixed at 250px, Content takes the rest */
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: start;
    padding-top: 2rem;
    padding-bottom: 5rem;
}

/* --- Sidebar Navigation --- */
.docs-nav {
    position: sticky;
    top: 2rem; /* Stick to top of viewport */
    max-height: calc(100vh - 4rem); /* Scroll internal if too tall */
    overflow-y: auto;
    padding-right: 1rem;
    /* Custom scrollbar for webkit */
    scrollbar-width: thin;
    scrollbar-color: #30363d transparent;
}

.docs-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-nav li {
    margin-bottom: 0.25rem;
}

/* Section Headers in Sidebar */
.docs-nav strong {
    display: block;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #e6edf3;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.docs-nav strong:first-child {
    margin-top: 0;
}

/* Links in Sidebar */
.docs-nav a {
    color: #8b949e;
    text-decoration: none;
    display: block;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.docs-nav a:hover {
    color: #58a6ff;
    background-color: rgba(88, 166, 255, 0.1);
}

/* --- Main Content Area --- */
.docs-content {
    min-width: 0; /* Prevents code blocks from breaking grid */
}

.docs-content section {
    margin-bottom: 4rem;
    scroll-margin-top: 2rem; /* For smooth anchor scrolling */
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.docs-content section:last-child {
    border-bottom: none;
}

.docs-content h1 {
    font-size: 3rem;
    margin-top: 0;
    border-bottom: none;
}

.docs-content h2 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #e6edf3;
}

.docs-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.docs-content p {
    color: #c9d1d9;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* Tables (Arguments) */
.table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.args-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #161b22;
}

.args-table th, 
.args-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #30363d;
}

.args-table th {
    background-color: #0d1117;
    color: #e6edf3;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.args-table td:first-child code {
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Badges */
.pro-badge {
    font-size: 0.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700 0%, #FFAA00 100%);
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 8px;
    text-transform: uppercase;
}

.recommended-badge {
    font-size: 0.75rem;
    font-weight: 700;
    background: #2ea043;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 8px;
    text-transform: uppercase;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .docs-container {
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 2rem;
    }
    .docs-nav {
        position: relative;
        top: 0;
        max-height: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 2rem;
    }
}

/* =========================================
   BLOG PAGE STYLES
   ========================================= */

.blog-listing-container {
    padding-top: 4rem;
    padding-bottom: 6rem;
    max-width: 1200px; /* Slightly wider for 3-column grid */
}

.blog-hero {
    text-align: center;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 3rem;
}

.blog-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.blog-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* The Grid Layout */
.blog-posts-grid {
    display: grid;
    /* Responsive: 1 col mobile, 2 col tablet, 3 col desktop */
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* The Card Design */
.blog-card {
    background-color: #161b22;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease-in-out;
    height: 100%; /* Ensures all cards in a row are equal height */
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: #58a6ff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.blog-card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Category Tag */
.blog-card-category {
    align-self: flex-start;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 1rem;
}

/* Typography */
.blog-card h2 {
    font-size: 1.4rem;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.blog-card h2 a {
    color: #e6edf3;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card h2 a:hover {
    color: #58a6ff;
}

.blog-card p {
    color: #8b949e;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Pushes meta to bottom */
}

/* Footer Metadata (Date/Author) */
.blog-card-meta {
    border-top: 1px solid #30363d;
    padding-top: 1rem;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6e7681;
}

/* Mobile Fixes */
@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
    .blog-hero h1 { font-size: 2.5rem; }
}

/* =========================================
   ABOUT PAGE STYLES
   ========================================= */

.about-content-container {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    color: #e6edf3;
}

.about-content h2:first-of-type {
    margin-top: 0;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.creator-social-link {
    margin-top: 1rem;
    display: flex;
    align-items: center;
}

.creator-social-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #58a6ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.creator-social-link a:hover {
    color: #80baff;
    text-decoration: underline;
}

/* Project Cards Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.project-card {
    background-color: #161b22;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #58a6ff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.project-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #58a6ff;
    margin-bottom: 0.75rem;
}

.project-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #e6edf3;
}

.project-card p {
    font-size: 0.95rem;
    color: #8b949e;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.5;
}

.project-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #58a6ff;
    transition: color 0.2s ease;
}

.project-card:hover .project-link {
    text-decoration: underline;
    color: #80baff;
}

/* Review Section */
.review-section {
    background-color: #161b22;
    padding: 5rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 5rem;
}

/* =========================================
   ROADMAP, CHANGELOG & SUPPORT STYLES
   ========================================= */

/* Common Page Layouts */
.roadmap-container, 
.changelog-container, 
.support-container { 
    padding-top: 4rem; 
    padding-bottom: 6rem; 
    max-width: 800px; 
    margin: 0 auto; 
}

.roadmap-container h1, 
.changelog-container h1, 
.support-header h1 { 
    font-size: 3rem; 
    text-align: center; 
    margin-bottom: 1rem; 
}

.roadmap-subtitle, 
.changelog-subtitle, 
.support-header .subtitle { 
    color: var(--text-muted); 
    text-align: center; 
    margin-bottom: 3rem; 
    font-size: 1.2rem; 
    line-height: 1.6;
}

/* --- Roadmap Specifics --- */
.roadmap-suggestion-box {
    background-color: #161b22;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 4rem;
}

.roadmap-suggestion-box p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #c9d1d9;
}

.roadmap-phase {
    margin-bottom: 4rem;
}

.roadmap-phase h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: #e6edf3;
}

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

.roadmap-card {
    background-color: #161b22;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.roadmap-card:hover {
    transform: translateY(-3px);
    border-color: #58a6ff;
}

.roadmap-card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: #e6edf3;
}

.roadmap-card p {
    margin-bottom: 0;
    color: #8b949e;
    line-height: 1.5;
}

/* --- Changelog Page Styles --- */

.changelog-container h1 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    margin-top: 4rem;
}

.changelog-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 5rem auto;
}

.changelog-version {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.changelog-version:last-of-type {
    border-bottom: none;
}

.changelog-version h2 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    color: #e6edf3;
}

.changelog-version .release-date {
    color: var(--text-muted);
    margin-top: 0;
    margin-bottom: 1.5rem;
    display: block;
    font-size: 0.95rem;
}

.changelog-version ul {
    list-style-type: none; /* Cleaner look for changelogs with badges */
    padding-left: 0;
    font-size: 1.1rem;
}

.changelog-version li {
    margin-bottom: 1rem;
    color: #c9d1d9;
    line-height: 1.6;
}

/* Changelog Badges */
.change-tag {
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: middle;
}

.change-new { background-color: rgba(63, 185, 80, 0.2); color: #3fb950; border: 1px solid rgba(63, 185, 80, 0.4); }
.change-fix { background-color: rgba(220, 53, 69, 0.2); color: #ff7b72; border: 1px solid rgba(220, 53, 69, 0.4); }
.change-imp { background-color: rgba(0, 123, 255, 0.2); color: #58a6ff; border: 1px solid rgba(0, 123, 255, 0.4); }

.pro-badge-changelog {
    font-size: 0.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700 0%, #FFAA00 100%);
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 8px;
    text-transform: uppercase;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .changelog-container h1 { font-size: 2.5rem; }
    .changelog-version h2 { font-size: 1.75rem; }
    .changelog-version ul { font-size: 1rem; }
}

/* Badges */
.change-new { background: rgba(46, 160, 67, 0.2); color: #3fb950; padding: 2px 6px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; margin-right: 0.5rem; }
.change-fix { background: rgba(210, 153, 34, 0.2); color: #d29922; padding: 2px 6px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; margin-right: 0.5rem; }
.change-imp { background: rgba(88, 166, 255, 0.2); color: #58a6ff; padding: 2px 6px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; margin-right: 0.5rem; }

/* --- Support Form Styles --- */
.form-container { 
    background-color: #161b22; 
    padding: 2.5rem; 
    border-radius: 12px; 
    border: 1px solid var(--border-color); 
    max-width: 700px;
    margin: 0 auto;
}

.form-container label { 
    display: block; 
    margin-bottom: 0.5rem; 
    font-weight: 600; 
    color: #e6edf3;
}

.form-container input[type="email"], 
.form-container textarea { 
    width: 100%; 
    padding: 0.75rem; 
    margin-bottom: 1rem; 
    background: #0d1117; 
    border: 1px solid #30363d; 
    border-radius: 6px; 
    color: #c9d1d9; 
    box-sizing: border-box; 
    font-size: 1rem;
}

.form-container input[type="file"] {
    margin-top: 0.5rem;
    color: #8b949e;
}

.file-input-info {
    font-size: 0.85rem;
    color: #8b949e;
    margin-top: 0.25rem;
    margin-bottom: 1.5rem;
    display: block;
}

.form-container button { 
    width: 100%; 
    padding: 0.75rem;
    font-size: 1rem;
    margin-top: 1rem; 
}

/* --- Support Page & Form Styles --- */

.support-header {
    margin: 4rem auto 3rem auto;
    text-align: center;
    max-width: 800px;
}

.support-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.support-header .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.form-container {
    max-width: 700px;
    margin: 0 auto 5rem auto;
    padding: 2.5rem;
    background-color: #161b22;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.form-container label {
    display: block;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #e6edf3;
}

.form-container input[type="email"],
.form-container textarea {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    background-color: #0d1117;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: #c9d1d9;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-container input[type="email"]:focus,
.form-container textarea:focus {
    border-color: #58a6ff;
    outline: none;
}

.form-container input[type="file"] {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #8b949e;
}

.form-container .file-input-info {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    margin: 0.25rem 0 0 0;
    display: block;
}

.form-container button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
    cursor: pointer;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .support-header h1 { font-size: 2.5rem; }
    .form-container { padding: 1.5rem; }
}

/* =========================================
   TOOLS & PLAYGROUND STYLES
   ========================================= */

/* --- Tools Landing Page (Grid) --- */
.tools-hero {
    padding: 6rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: radial-gradient(circle at top right, #1f2937 0%, #0d1117 70%);
}

.tools-hero h1 { font-size: 3.5rem; margin-bottom: 1rem; }
.tools-hero .subtitle { font-size: 1.25rem; color: var(--text-muted); }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.tool-card {
    background-color: #161b22;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: #58a6ff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.tool-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.tool-card h3 { margin: 0 0 0.5rem 0; color: #e6edf3; font-size: 1.5rem; }
.tool-card p { color: #8b949e; line-height: 1.6; margin-bottom: 1.5rem; flex-grow: 1; }
.tool-link-text { color: #58a6ff; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }

/* --- Playground Specific Styles --- */
.playground-section { padding: 4rem 0; }

.playground-card {
    background-color: #161b22;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.input-group { margin-bottom: 1.5rem; }

.input-label {
    display: block;
    color: #e6edf3;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.playground-card textarea, 
.playground-card input[type="text"] {
    width: 100%;
    background-color: #0d1117;
    border: 1px solid var(--border-color);
    color: #dcdfe4;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    padding: 1rem;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.playground-card textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.5;
    white-space: pre;
    overflow-x: auto;
}

.playground-card input[type="text"]:focus, 
.playground-card textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

.loading-text {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    margin-top: 1rem;
    display: none;
}

/* Results Area */
#result-area {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 6px;
    background-color: #0d1117;
    border: 1px solid var(--border-color);
    font-family: var(--font-mono);
    display: none; 
}

/* Result Items */
.status-match { border-left: 4px solid #2ea043; }
.status-no-match { border-left: 4px solid #dc3545; }
.status-error { border-left: 4px solid #ffc107; color: #ffc107; }
.pre-wrap { white-space: pre-wrap; overflow-x: auto; }

.result-list {
    max-height: 400px; 
    overflow-y: auto; 
    border: 1px solid var(--border-color); 
    border-radius: 6px; 
    background: #0d1117;
}

.result-item {
    padding: 0.75rem; 
    border-bottom: 1px solid var(--border-color); 
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #c9d1d9;
}
.result-item:last-child { border-bottom: none; }
.result-match { background: rgba(46, 160, 67, 0.1); }
.result-error { border-left: 3px solid #ffc107; background: rgba(255, 193, 7, 0.05); }

/* Mobile Optimizations for Tools */
@media (max-width: 768px) {
    .playground-section { padding: 2rem 0; }
    .playground-card { padding: 1.5rem; }
    .tools-hero h1 { font-size: 2.5rem; }
    
    /* Prevent iOS Zoom */
    .playground-card textarea, 
    .playground-card input[type="text"] { font-size: 16px; }
}

/* =========================================
   PLAYGROUND SPECIFIC STYLES
   ========================================= */

.playground-section {
    padding: 4rem 0;
}

.playground-card {
    background-color: var(--surface-color); /* Matches your other cards */
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.playground-card textarea, 
.playground-card input[type="text"] {
    width: 100%;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    color: var(--text-color); /* Ensures text is visible */
    font-family: var(--font-mono);
    font-size: 0.95rem;
    padding: 1rem;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.playground-card textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.5;
    white-space: pre;
    overflow-x: auto;
}

.playground-card input[type="text"]:focus, 
.playground-card textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15); /* Blue glow */
}

.loading-text {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    margin-top: 1rem;
    display: none;
}

/* Results Area */
#result-area {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 6px;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    font-family: var(--font-mono);
    display: none; 
}

/* Result Items */
.status-match { border-left: 4px solid #2ea043; }
.status-no-match { border-left: 4px solid #dc3545; }
.status-error { border-left: 4px solid #ffc107; color: #ffc107; }
.pre-wrap { white-space: pre-wrap; overflow-x: auto; }

.result-list {
    max-height: 400px; 
    overflow-y: auto; 
    border: 1px solid var(--border-color); 
    border-radius: 6px; 
    background: var(--background-color);
}

.result-item {
    padding: 0.75rem; 
    border-bottom: 1px solid var(--border-color); 
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-color);
}
.result-item:last-child { border-bottom: none; }
.result-match { background: rgba(46, 160, 67, 0.1); }
.result-error { border-left: 3px solid #ffc107; background: rgba(255, 193, 7, 0.05); }

/* Mobile Optimizations */
@media (max-width: 768px) {
    .playground-section { padding: 2rem 0; }
    .playground-card { padding: 1.5rem; }
    .playground-card textarea, .playground-card input[type="text"] { font-size: 16px; }
}

/* --- Blog Post Images (Thumbnail Style) --- */
.blog-post-content img {
    display: block;           /* Allows centering */
    max-width: 80%;           /* Restrict width so it doesn't fill screen */
    max-height: 500px;        /* Restrict height so it doesn't push content down too far */
    width: auto;              /* Maintain aspect ratio */
    margin: 2rem auto;        /* Center the image vertically and horizontally */
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: zoom-in;          /* Shows the user it is clickable */
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.blog-post-content img:hover {
    transform: scale(1.02);   /* Slight lift effect */
    border-color: var(--primary-color);
}

/* Ensure mobile images still take up space they need */
@media (max-width: 768px) {
    .blog-post-content img {
        max-width: 100%;
    }
}

.blog-post-content a.btn,
.btn-primary {
    color: #ffffff !important;
}