
/* ==============================
   NYXHUB
   Minimal dark theme
============================== */

* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;

    --background: #0a0a0a;
    --surface: #0e0e0e;
    --surface-hover: #171419;
    --border: #252525;

    --text: #ededed;
    --muted: #888888;

    --accent: #b69af5;
    --accent-hover: #c8b5ff;
}

/* ==============================
   PAGE
============================== */

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    background: linear-gradient(
        135deg,
        #0a0a0a 0%,
        #100d13 45%,
        #0b0a0c 75%,
        #0a0a0a 100%
    );

    background-attachment: fixed;

    color: var(--text);
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

/* ==============================
   TOP NAVBAR
============================== */

.top {
    position: sticky;
    top: 0;
    z-index: 10;

    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 64px;
    padding: 0 24px;

    background: #0a0a0a;
    border-bottom: 1px solid var(--border);
}

.top img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.top h3 {
    margin: 0;

    color: #f0f0f0;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.4px;
}

/* ==============================
   SEARCH
============================== */

.search {
    display: flex;
    align-items: center;
    gap: 8px;

    width: 340px;
    margin-left: auto;
}

.search input {
    flex: 1;
    width: 100%;
    min-width: 0;

    padding: 9px 12px;

    background: #101010;
    border: 1px solid #292929;
    border-radius: 5px;
    outline: none;

    color: var(--text);
    font-family: inherit;
    font-size: 13px;

    transition: border-color 0.15s;
}

.search input::placeholder {
    color: #777;
}

.search input:focus {
    border-color: #75618f;
}

.search button {
    padding: 9px 13px;

    background: #ded5ed;
    border: 1px solid #ded5ed;
    border-radius: 5px;

    color: #17121d;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    transition: background 0.15s;
}

.search button:hover {
    background: #c9b7e6;
}

/* ==============================
   PAGE LAYOUT
============================== */

.layout {
    display: flex;
    align-items: stretch;

    min-height: calc(100vh - 64px);
}

/* ==============================
   SIDEBAR
============================== */

.sidebar {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 4px;

    width: 200px;
    min-height: calc(100vh - 64px);
    padding: 25px 14px;

    background: transparent;
    border-right: 1px solid var(--border);
}

.sidebar h4 {
    margin: 0 10px 13px;

    color: #777;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.sidebar a {
    display: block;

    padding: 9px 10px;

    border-radius: 3px;

    color: #999;
    font-size: 13px;
    text-decoration: none;

    transition:
        color 0.15s,
        background 0.15s;
}

.sidebar a:hover {
    background: #171419;
    color: #eee;
}

.sidebar a.active {
    background: #1b1721;
    color: var(--accent);
}

/* Keyboard accessibility */

.sidebar a:focus-visible,
.search button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ==============================
   MAIN CONTENT
============================== */

.content {
    flex: 1;
    min-width: 0;

    padding: 42px clamp(24px, 5vw, 60px);
}

.content h1 {
    max-width: 800px;
    margin: 0 0 12px;

    color: #f0f0f0;
    font-size: clamp(25px, 3vw, 31px);
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.3;
}

.content h2 {
    margin: 35px 0 16px;

    color: #e5e5e5;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.content p {
    max-width: 680px;
    margin: 0 0 14px;

    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.content a {
    color: var(--accent);
    text-decoration: none;
}

.content a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ==============================
   PROJECT SECTION
   Ready for project content
============================== */

.projects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;

    margin-top: 24px;
}

.project-card {
    min-width: 0;
    padding: 19px;

    background: #0d0d0d;
    border: 1px solid #252525;
    border-radius: 4px;

    transition: border-color 0.15s;
}

.project-card:hover {
    border-color: #51445f;
}

.project-card h3 {
    margin: 0 0 8px;

    color: #eee;
    font-size: 15px;
    font-weight: 600;
}

.project-card p {
    margin: 0;

    color: #888;
    font-size: 13px;
    line-height: 1.7;
}

/* Optional small project labels */

.project-tag {
    display: inline-block;

    margin-bottom: 12px;
    padding: 3px 6px;

    background: #19151e;
    border: 1px solid #302639;
    border-radius: 3px;

    color: #b69af5;
    font-size: 10px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* ==============================
   DIVIDERS
============================== */

.divider {
    height: 1px;
    margin: 28px 0;

    background: var(--border);
    border: 0;
}

/* ==============================
   RESPONSIVE DESIGN
============================== */

@media (max-width: 900px) {
    .sidebar {
        width: 175px;
    }

    .content {
        padding: 32px 24px;
    }

    .projects {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .top {
        flex-wrap: wrap;
        gap: 10px;

        padding: 12px 16px;
    }

    .top img {
        width: 27px;
        height: 27px;
    }

    .search {
        order: 2;
        width: 100%;
        margin: 0;
    }

    .layout {
        flex-direction: column;
    }

    .sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;

        width: 100%;
        min-height: auto;
        padding: 12px;

        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .sidebar h4 {
        width: 100%;
        margin: 0 8px 5px;
    }

    .sidebar a {
        padding: 8px 10px;
    }

    .content {
        padding: 27px 18px;
    }

    .content h1 {
        font-size: 25px;
    }

    .content h2 {
        margin-top: 27px;
    }

    .projects {
        grid-template-columns: 1fr;
    }
}

/* brand */
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: inherit;
    text-decoration: none;
}

/* subtle welcome gradient */
.welcome {
    padding: 32px 0 38px;
    background: radial-gradient(
        ellipse at 12% 0%,
        #21172a 0%,
        #100e12 35%,
        transparent 72%
    );
}

.eyebrow {
    margin-bottom: 12px !important;
    color: #a98acb !important;
    font-size: 10px !important;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.intro {
    max-width: 570px;
}

.welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.button {
    display: inline-block;
    padding: 9px 13px;
    border: 1px solid #303030;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
}

.button.primary {
    background: #d8c7ec;
    border-color: #d8c7ec;
    color: #17121d;
}

.button.primary:hover {
    background: #c7afe3;
}

.button.secondary {
    background: transparent;
    color: #ccc;
}

.button.secondary:hover {
    background: #191919;
    color: white;
}

.divider {
    border: 0;
    border-top: 1px solid #252525;
    margin: 25px 0 30px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.section-heading h2,
.about h2,
.links h2 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
}

.section-count {
    padding-bottom: 12px;
    color: #777;
    font-size: 12px;
}

/* project cards */
.project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 22px;
}

.project-symbol {
    color: #c4a7e6;
    font-family: monospace;
    font-size: 19px;
    font-weight: bold;
}

.project-tag {
    padding: 3px 6px;
    border: 1px solid #302a34;
    border-radius: 3px;
    color: #aaa;
    font-size: 10px;
}

.project-card h3 {
    margin-bottom: 9px;
}

.project-card p {
    min-height: 65px;
}

.project-link,
.project-status {
    display: inline-block;
    margin-top: 16px;
    font-size: 12px;
}

.project-link {
    color: #c4a7e6;
}

.project-link span,
.link-list span {
    margin-left: 4px;
}

.project-status {
    color: #777;
}

/* about and links */
.about,
.links {
    max-width: 700px;
    margin-bottom: 32px;
}

.about p {
    max-width: 620px;
}

.link-list a {
    display: inline-block;
    padding: 9px 0;
    color: #bbb;
    text-decoration: none;
}

.link-list a:hover {
    color: #c4a7e6;
}

/* sidebar footer */
.sidebar-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 15px 9px 0;
    border-top: 1px solid #252525;
    color: #999;
    font-size: 12px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8eaa8e;
}

.version {
    margin-left: auto;
    color: #666;
}

/* footer */
.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid #252525;
    color: #666;
    font-size: 11px;
}

/* smaller screens */
@media (max-width: 900px) {
    .projects {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .welcome {
        padding-top: 15px;
    }

    .welcome-actions {
        align-items: flex-start;
    }

    .section-count {
        display: none;
    }

    .projects {
        grid-template-columns: 1fr;
    }

    .project-card p {
        min-height: 0;
    }

    .footer {
        flex-direction: column;
    }
}
