/*
------------------------------------------------------------------------------
 NodeSniff Agent - Lightweight Linux metrics collector

 Author: Sebastian Zieba <sebastian@zieba.art>
 License: GNU GPL v3 (non-commercial use only)
------------------------------------------------------------------------------
*/

body {
    margin: 0;
    font-family:
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
    background: #f8f9fa;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 4%;
    box-sizing: border-box;
}

/* ---------------- HERO ---------------- */

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    padding: 70px 0 40px;
    color: #fff;
    background: #f0f0f0;
    border-bottom: 1px solid #e6e6e6;
}

.hero-content {
    flex: 1 1 480px;
    max-width: 600px;
}

.hero-image {
    flex: 1 1 480px;
    max-width: 600px;
    text-align: center;
}

.hero-image img {
    max-height: 380px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    margin-top: 30px;
    object-fit: contain;
}

.hero-headline {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #0f172a;
}

.hero-highlight {
    display: inline-block;
    margin-top: 10px;
    font-size: 2.6rem;
    font-weight: 700;
    color: #fff;
    background: #0f172a;
    padding: 4px 12px;
    border-radius: 6px;
}

.hero-bullets {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.hero-bullets > div {
    flex: 1 1 300px;
    min-width: 280px;
}

.btn {
    background: #fff;
    color: #0c6efd;
    padding: 12px 28px;
    font-weight: bold;
    border: 1px solid #e6e6e6;
    font-size: 1.05rem;
    text-decoration: none;
}

.btn:hover {
    border: 1px solid #0c6efd;
}

/* ---------------- ONBOARDING FLOW ---------------- */

.onboarding {
    padding: 20px;
    text-align: center;
}

.onboarding h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

.steps-horizontal {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 1px;
    maring: 0;
    padding: 0;
}

.step {
    background: #fff;
    border: 1px solid #e6e6e6;
    padding: 15px 12px;
    min-width: 160px;
    flex: 1;
    font-size: 0.85em;
}

.icon {
    background: #007bff;
    color: #fff;
    width: 28px;
    height: 28px;
    line-height: 28px;
    border-radius: 50%;
    margin: 0 auto 8px;
    font-weight: bold;
    font-size: 0.9em;
}

.step h3 {
    margin: 4px 0 6px;
    font-size: 1em;
}

.step p {
    margin: 0;
    line-height: 1.3em;
}

.step code {
    background: #eee;
    padding: 1px 3px;
    border-radius: 4px;
    font-size: 0.85em;
}

.arrow {
    font-size: 1.4em;
    line-height: 60px;
    color: #ccc;
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse;
        padding: 40px 4%;
        gap: 40px;
    }

    .hero-image img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .hero-image {
        display: none;
    }

    .steps-horizontal {
        flex-wrap: wrap;
    }

    .arrow {
        display: none;
    }

    .step {
        min-width: 100%;
    }
}
/* ---------------- MAIN CONTENT AREA ---------------- */

.content-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 40px;
    max-width: 1240px;
    margin: 0 auto;
    flex-wrap: nowrap; /* KLUCZOWE */
}

.main-content,
.tech-info {
    border: 1px solid #e6e6e6;
    padding: 20px;
    border-radius: 0;
    box-sizing: border-box;
}

.main-content {
    flex: 1 1 79%;
    min-width: 280px;
}

.tech-info {
    flex: 1 1 20%;
    min-width: 200px;
}

@media (max-width: 768px) {
    .content-section {
        flex-direction: column;
    }

    .main-content,
    .tech-info {
        width: 100%;
    }
}

/* update and info */
/* ---------------- UPDATES SECTION (main-content + tech-info) ---------------- */

.updates-post {
    margin-bottom: 28px;
    text-align: left;
}

.updates-post h3 {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: #222;
}

.updates-post p {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.updates-post .read-more {
    font-size: 0.75rem;
    padding: 6px 14px;
    font-weight: 600;
    border: 1px solid #ccc;
    color: #0d6efd;
    text-decoration: none;
    background: #f9f9f9;
}

.tech-info .entry {
    margin-bottom: 12px;
}

.tech-info .entry .date {
    font-size: 0.7rem;
    color: #888;
    display: block;
    margin-bottom: 4px;
    font-style: italic;
}

/* --- Read more link: szary, mały, bez zaokrągleń, inline --- */
.read-more {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #0d6efd !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
}

.read-more:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.tech-info {
    flex: 0 1 30%;
    max-width: 360px;
    min-width: 220px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #444;
    padding: 16px;
    border: 1px solid #e6e6e6;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.tech-info * {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    box-sizing: border-box;
    max-width: 100%;
}

.tech-info h3 {
    margin-top: 1em;
    margin-bottom: 0.3em;
    font-weight: 600;
    font-size: 0.85rem;
    color: #222;
    border-bottom: 1px solid #eee;
}

.tech-info ul {
    padding-left: 1.2em;
    margin-bottom: 1em;
}

.tech-info li {
    margin-bottom: 0.4em;
    font-size: 0.8rem;
}

/* Download btn */
.download-btn {
    padding: 4px 10px;
    background-color: #eee;
    border: 1px solid #ccc;
    text-decoration: none;
    font-family: monospace;
    color: #555;
}
.download-btn:hover {
    border-color: #0c6efd;
    color: #0c6efd;
}
