@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: #070907;
    color: #f0f2ef;
    font-family: "Manrope", sans-serif;
    overflow-x: hidden;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   VARIÁVEIS
========================================================= */

:root {
    --bg: #070907;

    --surface: #0d100d;
    --surface-hover: #111511;
    --surface-light: #151a15;

    --white: #f0f2ef;
    --white-soft: #d9ded9;

    --muted: #a6aea6;
    --muted-light: #b9c0b9;
    --dim: #737b73;

    --green: #58e58a;
    --green-dark: #1f9e50;
    --green-light: #76f0a2;

    --green-soft: rgba(88, 229, 138, 0.10);
    --green-border: rgba(88, 229, 138, 0.30);

    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.15);
}


/* =========================================================
   TOPBAR
========================================================= */

.topbar {
    height: 72px;

    position: sticky;
    top: 0;
    z-index: 50;

    background: rgba(7, 9, 7, 0.90);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.topbar-inner {
    width: min(1240px, calc(100% - 64px));
    height: 100%;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* BRAND */

.brand {
    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--white);

    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand-symbol {
    width: 27px;
    height: 27px;

    display: grid;
    place-items: center;

    border: 1px solid var(--green-border);

    color: var(--green);

    font-family: "DM Mono", monospace;
    font-size: 15px;
}


/* RIGHT */

.topbar-right {
    display: flex;
    align-items: center;
    gap: 26px;
}

.online {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--muted);

    font-family: "DM Mono", monospace;
    font-size: 10px;

    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.online-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);

    box-shadow: 0 0 10px rgba(88, 229, 138, 0.6);
}

.write-button {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 9px 13px;

    border: 1px solid var(--green-border);

    background: var(--green-soft);

    color: var(--green);

    font-family: "DM Mono", monospace;
    font-size: 10px;

    text-transform: uppercase;
    letter-spacing: 0.8px;

    transition:
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.write-button:hover {
    background: rgba(88, 229, 138, 0.17);
    border-color: rgba(88, 229, 138, 0.55);
    transform: translateY(-1px);
}

.write-button span {
    font-size: 15px;
    line-height: 8px;
}


/* =========================================================
   INTRO
========================================================= */

.intro {
    width: min(1240px, calc(100% - 64px));

    margin: 0 auto;

    padding: 100px 0 82px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 60px;
}

.intro-content {
    max-width: 730px;
}

.intro-kicker,
.list-kicker,
.composer-kicker {
    display: block;

    margin-bottom: 18px;

    color: var(--green);

    font-family: "DM Mono", monospace;
    font-size: 10px;
    font-weight: 500;

    letter-spacing: 1.7px;
}

.intro h1 {
    max-width: 700px;

    color: var(--white);

    font-size: clamp(54px, 7vw, 92px);
    line-height: 0.94;

    font-weight: 700;

    letter-spacing: -5px;
}

.intro h1 span {
    color: var(--green);
}

.intro p {
    max-width: 580px;

    margin-top: 30px;

    color: var(--muted-light);

    font-size: 15px;
    line-height: 1.85;
}


/* =========================================================
   METADATA
========================================================= */

.intro-meta {
    display: flex;
    gap: 38px;

    padding-bottom: 4px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-item strong {
    color: var(--white);

    font-size: 24px;
    font-weight: 600;

    letter-spacing: -1px;
}

.meta-item span {
    color: var(--muted);

    font-family: "DM Mono", monospace;
    font-size: 9px;

    text-transform: uppercase;
    letter-spacing: 1px;
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.forum-layout {
    width: min(1240px, calc(100% - 64px));

    margin: 0 auto;

    padding-bottom: 120px;

    display: grid;

    grid-template-columns: minmax(0, 1fr) 350px;

    align-items: start;

    gap: 54px;
}


/* =========================================================
   COMENTÁRIOS
========================================================= */

.list-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    padding-bottom: 17px;

    border-bottom: 1px solid var(--border);

    margin-bottom: 12px;
}

.list-kicker {
    margin-bottom: 7px;

    color: var(--green);

    font-size: 9px;
}

.list-header h2 {
    color: var(--white);

    font-size: 20px;
    font-weight: 600;

    letter-spacing: -0.7px;
}

.sort-label {
    color: var(--muted);

    font-family: "DM Mono", monospace;
    font-size: 9px;

    text-transform: uppercase;
    letter-spacing: 0.8px;
}


/* =========================================================
   COMMENT CARD
========================================================= */

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment {
    display: flex;
    gap: 17px;

    padding: 21px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 8px;

    transition:
        border-color 180ms ease,
        background 180ms ease,
        transform 180ms ease;
}

.comment:hover {
    background: var(--surface-hover);

    border-color: rgba(88, 229, 138, 0.22);

    transform: translateY(-1px);
}


/* =========================================================
   AVATAR
========================================================= */

.comment-avatar {
    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 7px;

    background: var(--green-soft);

    border: 1px solid var(--green-border);

    color: var(--green);

    font-family: "DM Mono", monospace;
    font-size: 12px;
}


/* =========================================================
   COMMENT CONTENT
========================================================= */

.comment-content {
    min-width: 0;
    flex: 1;
}

.comment-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 11px;
}

.comment-user {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 9px;
}

.comment-user strong {
    color: var(--white-soft);

    font-family: "DM Mono", monospace;
    font-size: 11px;
    font-weight: 500;
}

.comment-user span {
    color: var(--muted);

    font-family: "DM Mono", monospace;
    font-size: 9px;
}

.comment time {
    flex-shrink: 0;

    color: #8b948b;

    font-family: "DM Mono", monospace;
    font-size: 9px;

    white-space: nowrap;
}

.comment p {
    color: #b4bbb4;

    font-size: 13px;
    line-height: 1.8;
}


/* =========================================================
   COMPOSER
========================================================= */

.composer {
    position: sticky;
    top: 96px;

    padding: 25px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 10px;
}

.composer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 25px;
}

.composer-kicker {
    margin: 0;

    color: var(--green);

    font-size: 9px;
}

.composer-symbol {
    width: 27px;
    height: 27px;

    display: grid;
    place-items: center;

    border-radius: 6px;

    background: var(--green-soft);

    color: var(--green);

    font-family: "DM Mono", monospace;
}

.composer h2 {
    color: var(--white);

    font-size: 24px;
    line-height: 1.1;

    letter-spacing: -1px;

    font-weight: 600;
}

.composer-description {
    margin-top: 9px;
    margin-bottom: 27px;

    color: var(--muted-light);

    font-size: 12px;
    line-height: 1.7;
}


/* =========================================================
   FORM
========================================================= */

#comment-form {
    display: flex;
    flex-direction: column;
}

#comment-form label {
    margin-bottom: 7px;

    color: var(--muted);

    font-family: "DM Mono", monospace;
    font-size: 9px;

    text-transform: uppercase;
    letter-spacing: 1px;
}

#comment-form input,
#comment-form textarea {
    width: 100%;

    border: 1px solid var(--border-strong);

    outline: none;

    border-radius: 6px;

    background: #080a08;

    color: var(--white);

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

#comment-form input:focus,
#comment-form textarea:focus {
    border-color: var(--green-border);

    box-shadow:
        0 0 0 3px rgba(88, 229, 138, 0.07);
}

#comment-form input {
    height: 43px;

    padding: 0 12px;

    margin-bottom: 17px;

    font-family: "DM Mono", monospace;
    font-size: 10px;
}

#comment-form textarea {
    min-height: 135px;

    resize: vertical;

    padding: 12px;

    margin-bottom: 9px;

    font-size: 12px;
    line-height: 1.7;
}

#comment-form input::placeholder,
#comment-form textarea::placeholder {
    color: #697169;
}


/* =========================================================
   USERNAME
========================================================= */

.input-wrapper {
    position: relative;

    margin-bottom: 17px;
}

.input-wrapper span {
    position: absolute;

    left: 12px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--green);

    font-family: "DM Mono", monospace;
    font-size: 11px;

    pointer-events: none;
}

.input-wrapper input {
    margin: 0 !important;

    padding-left: 26px !important;
}


/* =========================================================
   FORM FOOTER
========================================================= */

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

#character-count {
    color: #7d857d;

    font-family: "DM Mono", monospace;
    font-size: 9px;
}

.form-footer button {
    display: flex;
    align-items: center;
    gap: 12px;

    border: 0;
    border-radius: 6px;

    padding: 11px 15px;

    background: var(--green);

    color: #071008;

    font-family: "DM Mono", monospace;
    font-size: 9px;
    font-weight: 500;

    text-transform: uppercase;
    letter-spacing: 0.8px;

    transition:
        background 180ms ease,
        transform 180ms ease;
}

.form-footer button:hover {
    background: var(--green-light);

    transform: translateY(-1px);
}

.form-footer button:active {
    transform: translateY(0);
}

.form-footer button span {
    font-size: 15px;
}

.privacy-note {
    margin-top: 17px;

    color: #6d756d;

    font-size: 9px;
    line-height: 1.6;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    border-top: 1px solid var(--border);
}

.footer-inner {
    width: min(1240px, calc(100% - 64px));

    min-height: 75px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #747c74;

    font-family: "DM Mono", monospace;
    font-size: 9px;

    letter-spacing: 1px;
}


/* =========================================================
   RESPONSIVIDADE
========================================================= */

@media (max-width: 950px) {

    .intro {
        align-items: flex-start;

        flex-direction: column;

        padding-top: 80px;
    }

    .intro-meta {
        padding: 0;
    }

    .forum-layout {
        grid-template-columns: 1fr;
    }

    .composer {
        position: static;
    }
}


@media (max-width: 650px) {

    .topbar-inner,
    .intro,
    .forum-layout,
    .footer-inner {
        width: calc(100% - 32px);
    }

    .topbar {
        height: 64px;
    }

    .online {
        display: none;
    }

    .topbar-right {
        gap: 0;
    }

    .intro {
        padding: 65px 0 60px;
    }

    .intro h1 {
        font-size: clamp(48px, 15vw, 72px);

        letter-spacing: -4px;
    }

    .intro p {
        font-size: 14px;
    }

    .intro-meta {
        gap: 30px;
    }

    .forum-layout {
        padding-bottom: 80px;
    }

    .list-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }

    .comment {
        padding: 17px;

        gap: 12px;
    }

    .comment-avatar {
        flex-basis: 32px;

        width: 32px;
        height: 32px;

        font-size: 10px;
    }

    .comment-top {
        flex-direction: column;

        gap: 6px;
    }

    .comment-user strong {
        font-size: 10px;
    }

    .comment-user span {
        font-size: 9px;
    }

    .comment time {
        font-size: 9px;
    }

    .comment p {
        font-size: 12px;
    }

    .composer {
        padding: 20px;
    }

    .footer-inner {
        min-height: 65px;

        font-size: 8px;
    }
}