/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #0b0c0b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #2ba6cb;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.2s ease;
}

a:hover {
    color: #258faf;
}

/* Smooth animations for all interactive elements */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* Header */
.header {
    background-color: #0b0c0b;
    padding: 20px 0;
}

.logo-section {
    text-align: center;
}

.logo-wrapper {
    display: inline-block;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.logo-wrapper:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.logo-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    max-height: 250px;
    object-fit: contain;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Navigation */
.main-nav {
    background-color: #f3f3f3;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 0;
    flex: 1;
}

.nav-list li {
    display: inline-block;
}

.nav-list a {
    display: block;
    padding: 15px 20px;
    color: #222;
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: none;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #2ba6cb;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
    left: 0;
}

.nav-list a:hover {
    background-color: #e6e6e6;
    color: #222;
}

.nav-list a.active {
    color: #222;
    font-weight: 500;
}

.nav-list a.active::after {
    width: 100%;
    left: 0;
}

.donate-wrapper {
    padding: 10px 0;
}

.donate-btn {
    display: inline-block;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.donate-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.donate-btn img {
    height: 28px;
    width: auto;
    display: block;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1rem;
    padding: 15px;
    cursor: pointer;
    color: #222;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 0 0 30px;
}

.content-panel {
    background-color: #f2f2f2;
    border: 1px solid #d9d9d9;
    border-top: none;
    border-left: 4px solid #2ba6cb;
    padding: 20px 25px;
    border-radius: 0 0 3px 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.6s ease-out 0.3s both;
    transition: box-shadow 0.3s ease;
}

.content-panel:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-section {
    margin-bottom: 25px;
    transition: transform 0.2s ease;
}

.info-section:hover {
    transform: translateX(5px);
}

.info-section h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.info-section:hover h4 {
    color: #2ba6cb;
}

.info-section p {
    font-size: 0.875rem;
    color: #444;
    line-height: 1.6;
}

.info-section p a {
    position: relative;
    transition: color 0.2s ease;
}

.info-section p a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #2ba6cb;
    transition: width 0.3s ease;
}

.info-section p a:hover::after {
    width: 100%;
}

/* Terminal Install Card */
.terminal-install-card {
    background-color: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 16px;
    padding: 28px 32px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.terminal-install-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.terminal-install-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.terminal-icon {
    color: #2563eb;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.terminal-install-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.terminal-install-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 24px;
}

.terminal-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background-color: #f1f5f9;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    transition: background-color 0.2s ease;
}

.terminal-step:last-child {
    margin-bottom: 0;
}

.terminal-step:hover {
    background-color: #e8eef6;
}

.terminal-step-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background-color: #2563eb;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    margin-top: 2px;
}

.terminal-step-content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.terminal-step-content p {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
}

.terminal-command-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 10px;
    overflow: hidden;
}

.terminal-command-box code {
    flex: 1;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8125rem;
    color: #334155;
    white-space: nowrap;
    overflow-x: auto;
    display: block;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 transparent;
}

.terminal-command-box code::-webkit-scrollbar {
    height: 6px;
}

.terminal-command-box code::-webkit-scrollbar-track {
    background: transparent;
}

.terminal-command-box code::-webkit-scrollbar-thumb {
    background-color: #94a3b8;
    border-radius: 3px;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background-color 0.2s ease;
    flex-shrink: 0;
}

.copy-btn:hover {
    color: #2563eb;
    background-color: #cbd5e1;
}

/* License Section */
.license-section {
    margin-top: 20px;
}

.license-section p {
    font-size: 0.875rem;
    color: #444;
}

/* Footer */
.footer {
    background-color: #333;
    color: #999;
    padding: 25px 0;
    text-align: center;
    animation: fadeIn 0.6s ease-out 0.5s both;
}

.footer p {
    font-size: 0.8125rem;
    line-height: 1.6;
    margin-bottom: 5px;
}

.footer p:last-child {
    margin-bottom: 0;
}

.footer a {
    color: #2ba6cb;
    position: relative;
    transition: color 0.2s ease;
}

.footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #45b8db;
    transition: width 0.3s ease;
}

.footer a:hover {
    color: #45b8db;
}

.footer a:hover::after {
    width: 100%;
}

/* Page Titles */
.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2ba6cb;
}

/* FAQ Styles */
.faq-section {
    margin-bottom: 35px;
}

.faq-category {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2ba6cb;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 3px solid #2ba6cb;
}

.faq-item {
    margin-bottom: 20px;
    padding: 15px 18px;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.faq-question {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    cursor: pointer;
}

.faq-answer {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.7;
}

.faq-answer p {
    margin-bottom: 10px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 10px 0;
    padding-left: 20px;
}

.faq-answer ul li {
    margin-bottom: 6px;
}

.faq-answer code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85em;
    color: #c7254e;
}

.faq-answer pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 12px 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 10px 0;
}

.faq-answer pre code {
    background: none;
    color: #f8f8f2;
    padding: 0;
}

/* Downloads Styles */
.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.download-card {
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.download-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.download-card-primary {
    border: 2px solid #2ba6cb;
}

.download-card-header {
    padding: 18px 20px;
    background-color: #fafafa;
    border-bottom: 1px solid #e0e0e0;
}

.download-card-primary .download-card-header {
    background-color: #e8f6fa;
}

.download-card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #222;
    margin-top: 8px;
}

.download-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-stable {
    background-color: #28a745;
    color: #fff;
}

.badge-beta {
    background-color: #fd7e14;
    color: #fff;
}

.badge-nightly {
    background-color: #6f42c1;
    color: #fff;
}

.download-card-body {
    padding: 20px;
}

.download-description {
    font-size: 0.875rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.download-features {
    list-style: none;
    margin-bottom: 20px;
    font-size: 0.8125rem;
    color: #666;
}

.download-features li {
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
}

.download-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 2px solid transparent;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background-color: #2ba6cb;
    color: #fff;
    border-color: #2ba6cb;
}

.btn-primary:hover {
    background-color: #258faf;
    border-color: #258faf;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 166, 203, 0.3);
}

.btn-secondary {
    background-color: #fd7e14;
    color: #fff;
    border-color: #fd7e14;
}

.btn-secondary:hover {
    background-color: #e06c00;
    border-color: #e06c00;
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #555;
    border-color: #ccc;
}

.btn-outline:hover {
    background-color: #f5f5f5;
    border-color: #999;
    color: #333;
}

.btn-large {
    padding: 14px 28px;
    font-size: 0.9375rem;
}

/* Older Versions Table */
.older-versions {
    margin-bottom: 40px;
}

.older-versions h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
}

.older-versions>p {
    font-size: 0.875rem;
    color: #555;
    margin-bottom: 15px;
}

.versions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.versions-table th,
.versions-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.versions-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.versions-table tr:hover {
    background-color: #fafafa;
}

.versions-table td a {
    color: #2ba6cb;
}

.versions-table td a:hover {
    text-decoration: underline;
}

/* Installation Section */
.installation-section {
    margin-bottom: 40px;
}

.installation-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 20px;
}

.installation-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.step {
    display: flex;
    gap: 15px;
    padding: 15px;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.step-number {
    width: 36px;
    height: 36px;
    background-color: #2ba6cb;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 5px;
}

.step-content p {
    font-size: 0.8125rem;
    color: #555;
    line-height: 1.5;
}

/* Alternative Installation */
.alt-installation {
    background-color: #2d2d2d;
    padding: 25px;
    border-radius: 8px;
}

.alt-installation h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.alt-installation p {
    font-size: 0.875rem;
    color: #ccc;
    margin-bottom: 15px;
}

.alt-installation pre {
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 5px;
    margin: 0;
}

.alt-installation code {
    color: #7ec699;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
}

/* Downloads Page - Original Style */
.download-section-group {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.download-section-group:last-child {
    border-bottom: none;
}

.download-section-group h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
}

.download-section-group>p {
    font-size: 0.875rem;
    color: #444;
    margin-bottom: 15px;
    line-height: 1.6;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0 8px;
}

.download-button {
    display: inline-block;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.download-button:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.download-button img {
    height: 28px;
    width: auto;
    display: block;
}

.download-version-link {
    font-size: 1rem;
    font-weight: 500;
    color: #2ba6cb;
}

.download-version-link:hover {
    color: #258faf;
    text-decoration: underline;
}

.download-info {
    font-size: 0.875rem;
    color: #555;
    margin-bottom: 10px;
}

.download-info a {
    color: #2ba6cb;
}

/* Details/Summary for Changelog and Older Versions */
.changelog-details,
.older-versions-details {
    margin: 10px 0;
}

.changelog-details summary,
.older-versions-details summary {
    font-size: 0.875rem;
    color: #2ba6cb;
    cursor: pointer;
    user-select: none;
    padding: 5px 0;
    list-style: none;
}

.changelog-details summary::-webkit-details-marker,
.older-versions-details summary::-webkit-details-marker {
    display: none;
}

.changelog-details summary::before,
.older-versions-details summary::before {
    content: '\25B6 ';
    font-size: 0.7em;
    margin-right: 5px;
}

.changelog-details[open] summary::before,
.older-versions-details[open] summary::before {
    content: '\25BC ';
}

.changelog-details summary:hover,
.older-versions-details summary:hover {
    color: #258faf;
}

.changelog-content,
.older-versions-content {
    padding: 15px;
    background-color: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 0.875rem;
    color: #444;
    line-height: 1.6;
}

.changelog-content p,
.older-versions-content p {
    margin-bottom: 10px;
}

.changelog-content ul,
.older-versions-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.changelog-content ul li,
.older-versions-content ul li {
    margin-bottom: 5px;
}

.older-versions-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 15px;
}

/* FAQ Page - Original Style */
.faq-panel h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #222;
    margin: 20px 0 8px;
    line-height: 1.4;
}

.faq-panel h4:first-child {
    margin-top: 0;
}

.faq-panel p {
    font-size: 0.875rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 10px;
}

.faq-panel ul,
.faq-panel ol {
    font-size: 0.875rem;
    color: #444;
    line-height: 1.7;
    margin: 10px 0 15px;
    padding-left: 25px;
}

.faq-panel ul li,
.faq-panel ol li {
    margin-bottom: 6px;
}

.faq-panel pre {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 10px 0 15px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #333;
}

.faq-panel code {
    background-color: #f5f5f5;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.85em;
    color: #333;
}

.faq-panel pre code {
    background: none;
    padding: 0;
}

.faq-panel a {
    color: #2ba6cb;
}

.faq-panel a:hover {
    color: #258faf;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-wrapper {
        flex-wrap: wrap;
    }

    .mobile-menu-toggle {
        display: block;
        order: 1;
    }

    .donate-wrapper {
        order: 2;
    }

    .nav-list {
        display: none;
        order: 3;
        width: 100%;
        flex-direction: column;
        background-color: #f3f3f3;
        border-top: 1px solid #ddd;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list a {
        padding: 12px 20px;
        border-bottom: 1px solid #e6e6e6;
    }

    .logo-image {
        max-width: 80%;
    }

    .content-panel {
        padding: 15px 18px;
    }

    /* FAQ responsive */
    .faq-item {
        padding: 12px 15px;
    }

    /* Downloads responsive */
    .download-cards {
        grid-template-columns: 1fr;
    }

    .versions-table {
        font-size: 0.8125rem;
    }

    .versions-table th,
    .versions-table td {
        padding: 10px 8px;
    }

    .installation-steps {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }

    .btn {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .logo-image {
        max-width: 100%;
    }

    .download-btn img {
        max-width: 200px;
    }

    .page-title {
        font-size: 1.25rem;
    }

    .faq-category {
        font-size: 1rem;
    }

    .versions-table th:nth-child(3),
    .versions-table td:nth-child(3) {
        display: none;
    }

    .alt-installation {
        padding: 18px;
    }

    .alt-installation pre {
        padding: 10px;
        font-size: 0.8rem;
    }
}