/* --- Global Styles & Variables --- */
:root {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --background-color: #0a0a0a;
    --surface-color: #1a1a1a;
    --text-color: #f0f2f5;
    --text-muted: #adb5bd;
    --border-color: #343a40;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Source Code Pro', 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; }
.text-center { text-align: center; }
.section-title { text-align: center; margin-bottom: 3rem; font-size: 2.5rem; }

/* --- 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;
}
.btn-primary { background-color: var(--primary-color); color: #fff; }
.btn-primary:hover { background-color: var(--primary-hover); color: #fff; }
.btn-secondary { background-color: transparent; color: var(--text-color); border-color: var(--border-color); }
.btn-secondary:hover { background-color: var(--surface-color); border-color: var(--text-muted); }

/* --- Header --- */
.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 a { margin: 0 1rem; color: var(--text-muted); font-weight: 600; text-decoration: none; }
.main-nav a:hover { color: var(--text-color); }

/* --- Sections --- */
.hero { padding: 6rem 0; }
.hero h1 { max-width: 800px; margin: 0 auto 1.5rem; }
.hero .subtitle { font-size: 1.25rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 2rem; }

.demo-section { padding: 2rem 0 5rem; }
.demo-section .subtitle { margin-bottom: 3rem; }

.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; /* Center with bottom margin */
}

.installation-section { padding: 5rem 0; background-color: var(--surface-color); }
.features-table-section { padding: 5rem 0; }


/* --- Rust Section ("Engineered for Performance") --- */
.why-rust-section {
    padding: 5rem 0;
    background-color: var(--surface-color);
}
.why-rust-section .subtitle {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    text-align: left;
}
.feature-card {
    background-color: var(--background-color);
    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;
}


/* --- Code & Terminal --- */
.code-block-container {
    max-width: 800px;
    margin: 2rem auto 0; /* Center with top margin */
    background-color: #000;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}
pre { margin: 0; }
code.language-bash, code.language-text, code.language-json, code.language-logfmt {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #dcdfe4;
    white-space: pre-wrap;
}
.terminal-demo { background-color: #0D1117; border: 1px solid #30363d; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

/* --- Features Table --- */
.features-table { width: 100%; max-width: 800px; margin: 0 auto; border-collapse: collapse; background-color: var(--surface-color); border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); }
.features-table th, .features-table td { padding: 1.25rem; text-align: left; border-bottom: 1px solid var(--border-color); }
.features-table thead { background-color: #000; }
.features-table th { font-size: 1.1rem; font-weight: 600; }
.features-table td:first-child { color: var(--text-color); font-weight: 600; }
.features-table td.check, .features-table td.cross { text-align: center; font-size: 1.5rem; }
.features-table td.check { color: #28a745; }
.features-table td.cross { color: #dc3545; }
.features-table tbody tr:last-child td { border-bottom: none; }

/* --- Footer --- */
.main-footer { padding: 2rem 0; text-align: center; color: var(--text-muted); border-top: 1px solid var(--border-color); margin-top: 4rem; }


/* ---
   NEW: Use Cases Page Specific Styles
--- */

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

.use-cases-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 5rem auto; /* Creates space below the subtitle */
}

.use-case-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    margin-bottom: 3rem; /* Spacing between each use case card */
}

.use-case-card h2 {
    margin-top: 0;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.use-case-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* This adds space below the code block, fixing the issue you mentioned */
.use-case-card .code-block-container {
    margin-top: 2rem;
    margin-bottom: 2rem; 
    max-width: none; /* Allows block to fill the card width */
    margin-left: 0;
    margin-right: 0;
}

.use-case-card .btn {
    margin-top: 1rem; /* Adds a little extra space above the button */
}

.final-cta {
    margin-top: 6rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.final-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.final-cta p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.final-cta .btn {
    margin: 0 0.5rem; /* Adds space between the two buttons */
}

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

.support-header {
    margin: 4rem 0;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2.5rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

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

.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: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    box-sizing: border-box; /* Important for 100% width */
}

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

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

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


.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;
}

.changelog-version .release-date {
    color: var(--text-muted);
    margin-top: 0;
}

.changelog-version ul {
    list-style-type: none;
    padding-left: 0;
    font-size: 1.1rem;
}

.changelog-version li {
    margin-bottom: 0.75rem;
}

.changelog-version .change-new,
.changelog-version .change-fix,
.changelog-version .change-improvement {
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.75rem;
    font-size: 0.9rem;
}

.change-new { background-color: rgba(63, 185, 80, 0.2); color: #3fb950; }
.change-fix { background-color: rgba(220, 53, 69, 0.2); color: #dc3545; }
.change-improvement { background-color: rgba(0, 123, 255, 0.2); color: #007bff; }

/* ---
   NEW: Roadmap Page Styles
--- */

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

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

.roadmap-suggestion-box {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    padding: 2rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
}

.roadmap-suggestion-box p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.roadmap-phase {
    max-width: 900px;
    margin: 0 auto 4rem auto;
}

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

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

.roadmap-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem 2rem;
}

.roadmap-card h3 {
    margin-top: 0;
    font-size: 1.25rem;
}

.roadmap-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* --- Add these rules to your blog's CSS file --- */

/* This rule uses Flexbox to align your navigation links horizontally */
.main-nav {
    display: flex;
    align-items: center;
}

/* This adds the smooth color transition back to the links on hover */
.main-nav a {
    transition: color 0.2s ease;
}


/* --- Pure CSS Dropdown Menu --- */
/* These rules are required for the dropdown to function and look correct */
.dropdown {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem; /* Creates a "bridge" for the cursor */
    margin-bottom: -1rem;  /* Prevents padding from adding extra space */
}

.dropdown-toggle {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1rem; /* Inherits from .main-nav a */
    font-family: inherit;
    padding: 0;
    margin: 0 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.dropdown-toggle:hover,
.dropdown:hover .dropdown-toggle {
    color: var(--text-color);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--surface-color);
    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;
}

.dropdown-menu a {
    padding: 0.75rem 1.5rem;
    display: block;
    text-align: left;
    margin: 0; /* Overrides the margin from .main-nav a */
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

/* This is the magic that shows the menu on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}