
/* =========================================================
   PUSSYMQ — MAIN THEME
========================================================= */

:root {
    --bg: #070a0d;
    --bg-soft: #090e13;

    --panel: #0c1116;
    --panel-2: #10171e;
    --panel-3: #131c24;

    --border: #1d2a33;
    --border-hover: #2c414d;

    --green: #00ff88;
    --green-dim: #00c96b;
    --green-soft: rgba(0, 255, 136, 0.08);

    --text: #e6edf3;
    --muted: #7f8b94;
    --muted-dark: #4d5962;

    --danger: #ff5577;
    --warning: #ffcc66;

    --radius: 8px;
    --transition: 0.22s ease;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% -20%,
            rgba(0, 255, 136, 0.07),
            transparent 42%
        ),
        radial-gradient(
            circle at 100% 50%,
            rgba(0, 255, 136, 0.025),
            transparent 35%
        ),
        var(--bg);

    color: var(--text);

    font-family: "Vazirmatn", sans-serif;

    overflow-x: hidden;
}

body::before {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;

    opacity: 0.025;

    background-image:
        linear-gradient(
            rgba(255,255,255,.5) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.5) 1px,
            transparent 1px
        );

    background-size: 50px 50px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 80%
    );

    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}


/* =========================================================
   SITE SHELL
========================================================= */

.site-shell {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   TOPBAR
========================================================= */

.topbar {
    height: 68px;

    position: sticky;
    top: 0;

    z-index: 100;

    border-bottom: 1px solid var(--border);

    background: rgba(7, 10, 13, 0.86);

    backdrop-filter: blur(16px);

    animation: topbar-in .5s ease both;
}

.topbar-inner {
    width: min(1200px, 92%);

    height: 100%;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    display: flex;

    align-items: center;

    gap: 9px;

    font-family: "JetBrains Mono", monospace;

    font-size: 18px;

    font-weight: 700;

    letter-spacing: -.5px;
}

.brand-symbol {
    color: var(--green);

    text-shadow:
        0 0 8px rgba(0,255,136,.5),
        0 0 22px rgba(0,255,136,.15);
}

.brand-name {
    color: var(--text);

    transition: var(--transition);
}

.brand:hover .brand-name {
    color: var(--green);
}

.brand-cursor {
    width: 7px;
    height: 16px;

    display: inline-block;

    background: var(--green);

    opacity: .8;

    animation: cursor-blink 1s steps(1) infinite;
}


/* =========================================================
   NAVIGATION
========================================================= */

.main-nav {
    display: flex;

    align-items: center;

    gap: 22px;

    font-family: "JetBrains Mono", monospace;

    font-size: 11px;

    color: var(--muted);
}

.nav-link {
    position: relative;

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 25px 0;

    transition: var(--transition);
}

.nav-prefix {
    color: var(--muted-dark);

    font-size: 9px;

    transition: var(--transition);
}

.nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -1px;

    height: 1px;

    background: var(--green);

    transform: scaleX(0);

    transform-origin: center;

    transition: transform .25s ease;

    box-shadow: 0 0 8px var(--green);
}

.nav-link:hover {
    color: var(--green);
}

.nav-link:hover .nav-prefix {
    color: var(--green-dim);
}

.nav-link:hover::after {
    transform: scaleX(1);
}


/* =========================================================
   LOGIN / SIGNUP
========================================================= */

.nav-login,
.nav-signup {
    padding: 8px 12px;

    border: 1px solid var(--border);

    border-radius: 5px;

    transition: var(--transition);
}

.nav-login:hover {
    color: var(--green);

    border-color: rgba(0,255,136,.4);

    background: var(--green-soft);
}

.nav-signup {
    color: var(--green);

    border-color: rgba(0,255,136,.3);

    background: rgba(0,255,136,.05);
}

.nav-signup:hover {
    border-color: rgba(0,255,136,.7);

    background: rgba(0,255,136,.1);

    box-shadow:
        0 0 18px rgba(0,255,136,.08);
}


/* =========================================================
   MAIN
========================================================= */

.main-content {
    width: min(1200px, 92%);

    margin: 0 auto;

    flex: 1;

    padding: 55px 0 80px;

    animation: content-in .55s ease both;
}


/* =========================================================
   MESSAGES
========================================================= */

.messages {
    margin-bottom: 25px;
}

.message {
    padding: 13px 16px;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: var(--panel);

    color: var(--muted);

    font-family: "JetBrains Mono", monospace;

    font-size: 11px;

    animation: message-in .35s ease both;
}

.message-prefix {
    margin-right: 8px;

    color: var(--green);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    min-height: 65px;

    padding: 0 4%;

    border-top: 1px solid var(--border);

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: var(--muted);

    font-family: "JetBrains Mono", monospace;

    font-size: 9px;
}

.footer-left,
.footer-right {
    display: flex;

    align-items: center;

    gap: 12px;
}

.footer-status {
    display: flex;

    align-items: center;

    gap: 7px;

    color: var(--green-dim);
}

.status-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 7px var(--green);

    animation: status-pulse 2s infinite;
}

.footer-divider {
    color: var(--border-hover);
}

.footer-version {
    opacity: .45;
}


/* =========================================================
   AUTHENTICATION
========================================================= */

.auth-page {
    min-height: calc(100vh - 150px);

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 50px 20px;
}

.auth-container {
    width: 100%;
    max-width: 460px;
}


/* =========================================================
   AUTH TERMINAL
========================================================= */

.auth-terminal {
    border: 1px solid var(--border);

    border-bottom: none;

    border-radius: var(--radius) var(--radius) 0 0;

    background: #080c10;

    overflow: hidden;
}

.terminal-top {
    height: 38px;

    display: flex;

    align-items: center;

    gap: 6px;

    padding: 0 13px;

    border-bottom: 1px solid var(--border);

    background: #0a0f14;
}

.terminal-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--border-hover);
}

.terminal-title {
    margin-left: 8px;

    color: var(--muted);

    font-family: "JetBrains Mono", monospace;

    font-size: 10px;
}

.terminal-body {
    padding: 12px 15px;

    color: var(--muted);

    font-family: "JetBrains Mono", monospace;

    font-size: 11px;
}

.terminal-green {
    color: var(--green);
}


/* =========================================================
   AUTH CARD
========================================================= */

.auth-card {
    padding: 30px;

    border: 1px solid var(--border);

    border-radius: 0 0 var(--radius) var(--radius);

    background: var(--panel);
}


/* =========================================================
   AUTH HEADER
========================================================= */

.auth-header {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 28px;
}

.auth-icon {
    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border: 1px solid rgba(0,255,136,.25);

    border-radius: 7px;

    background: rgba(0,255,136,.05);

    color: var(--green);

    font-family: "JetBrains Mono", monospace;

    font-size: 15px;
}

.auth-header h1 {
    margin: 0;

    color: var(--text);

    font-size: 22px;
}

.auth-header p {
    margin: 5px 0 0;

    color: var(--muted);

    font-size: 11px;
}


/* =========================================================
   AUTH FORM
========================================================= */

.auth-field {
    margin-bottom: 20px;
}

.auth-field label {
    display: block;

    margin-bottom: 8px;

    color: var(--text);

    font-size: 11px;

    font-family: "JetBrains Mono", monospace;
}

.field-label-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 8px;
}

.field-label-row label {
    margin-bottom: 0;
}

.field-label-row a {
    color: var(--muted);

    font-size: 10px;
}

.field-label-row a:hover {
    color: var(--green);
}


/* =========================================================
   INPUT
========================================================= */

.auth-input-wrapper {
    display: flex;

    align-items: center;

    min-height: 44px;

    border: 1px solid var(--border);

    border-radius: 5px;

    background: #080d12;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.auth-input-wrapper:focus-within {
    border-color: rgba(0,255,136,.5);

    box-shadow:
        0 0 0 3px rgba(0,255,136,.05),
        0 0 20px rgba(0,255,136,.04);

    transform: translateY(-1px);
}

.input-prefix {
    padding-left: 13px;

    color: var(--green);

    font-family: "JetBrains Mono", monospace;

    font-size: 12px;
}

.auth-input-wrapper input {
    width: 100%;
    min-width: 0;

    padding: 12px 13px;

    border: none;
    outline: none;

    background: transparent;

    color: var(--text);

    font-family: "JetBrains Mono", monospace;

    font-size: 12px;
}

.auth-input-wrapper input::placeholder {
    color: var(--muted-dark);
}


/* =========================================================
   ERRORS
========================================================= */

.auth-error {
    margin-bottom: 20px;

    padding: 12px 14px;

    border: 1px solid rgba(255,85,119,.25);

    border-radius: 5px;

    background: rgba(255,85,119,.05);

    color: var(--danger);

    font-size: 11px;

    line-height: 1.7;
}

.field-error {
    display: block;

    margin-top: 6px;

    color: var(--danger);

    font-size: 10px;
}


/* =========================================================
   CHECKBOX
========================================================= */

.auth-checkbox {
    display: flex;

    align-items: center;

    gap: 8px;

    margin: 5px 0 20px;
}

.auth-checkbox input {
    accent-color: var(--green);
}

.auth-checkbox label {
    margin: 0;

    color: var(--muted);

    font-size: 11px;
}


/* =========================================================
   SUBMIT
========================================================= */

.auth-submit {
    width: 100%;

    min-height: 45px;

    border: 1px solid rgba(0,255,136,.35);

    border-radius: 5px;

    background: rgba(0,255,136,.08);

    color: var(--green);

    font-family: "JetBrains Mono", monospace;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .15s ease;
}

.auth-submit:hover {
    background: rgba(0,255,136,.14);

    border-color: rgba(0,255,136,.6);

    box-shadow:
        0 0 20px rgba(0,255,136,.07);
}

.auth-submit:active {
    transform: translateY(1px);
}


/* =========================================================
   AUTH FOOTER
========================================================= */

.auth-footer {
    display: flex;

    justify-content: center;

    gap: 6px;

    margin-top: 22px;

    padding-top: 20px;

    border-top: 1px solid var(--border);

    color: var(--muted);

    font-size: 11px;
}

.auth-footer a {
    color: var(--green);
}

.auth-footer a:hover {
    text-decoration: underline;
}


/* =========================================================
   AUTH STATUS
========================================================= */

.auth-status {
    display: flex;

    align-items: center;

    gap: 7px;

    padding: 12px 4px;

    color: var(--muted);

    font-family: "JetBrains Mono", monospace;

    font-size: 9px;
}

.auth-status .status-dot {
    width: 6px;
    height: 6px;

    border: none;
}

.status-version {
    margin-left: auto;

    opacity: .5;
}


/* =========================================================
   SIGNUP
========================================================= */

.signup-note {
    display: flex;

    align-items: flex-start;

    gap: 8px;

    margin: 4px 0 20px;

    padding: 11px 12px;

    border-left: 2px solid rgba(0,255,136,.3);

    background: rgba(0,255,136,.025);

    color: var(--muted);

    font-size: 10px;

    line-height: 1.7;
}

.signup-note .terminal-green {
    flex-shrink: 0;

    font-family: "JetBrains Mono", monospace;
}

.auth-field ul {
    margin: 7px 0 0;

    padding-left: 17px;

    color: var(--muted);

    font-size: 9px;

    line-height: 1.7;
}

.auth-field ul li::marker {
    color: var(--green);
}

.auth-field .helptext {
    display: block;

    margin-top: 6px;

    color: var(--muted);

    font-size: 9px;

    line-height: 1.6;
}


/* =========================================================
   EMAIL VERIFICATION
========================================================= */

.verification-card {
    text-align: center;
}

.verification-icon {
    width: 62px;
    height: 62px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 18px;

    border: 1px solid rgba(0,255,136,.3);

    border-radius: 8px;

    background: rgba(0,255,136,.05);

    color: var(--green);

    font-family: "JetBrains Mono", monospace;

    font-size: 22px;

    box-shadow:
        0 0 25px rgba(0,255,136,.05);

    animation: verification-glow 2.5s ease-in-out infinite;
}

.verification-card h1 {
    margin: 0;

    color: var(--text);

    font-size: 22px;
}

.verification-text {
    max-width: 330px;

    margin: 10px auto 22px;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.8;
}

.verification-terminal {
    padding: 14px;

    border: 1px solid var(--border);

    border-radius: 5px;

    background: #080d12;

    color: var(--muted);

    font-family: "JetBrains Mono", monospace;

    font-size: 10px;

    text-align: left;
}

.verification-terminal strong {
    display: block;

    margin-top: 7px;

    color: var(--green);

    font-size: 10px;

    letter-spacing: .4px;
}

.verification-steps {
    margin-top: 20px;

    text-align: left;
}

.verification-step {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 10px 0;

    border-bottom: 1px solid rgba(255,255,255,.04);
}

.verification-step:last-child {
    border-bottom: none;
}

.verification-step > span {
    width: 28px;
    height: 24px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border: 1px solid var(--border);

    border-radius: 4px;

    color: var(--green);

    font-family: "JetBrains Mono", monospace;

    font-size: 9px;
}

.verification-step p {
    margin: 0;

    color: var(--muted);

    font-size: 10px;
}


/* =========================================================
   PASSWORD RESET
========================================================= */

.reset-description {
    margin: -8px 0 24px;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.8;
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes topbar-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes content-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes message-in {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cursor-blink {
    0%,
    45% {
        opacity: .8;
    }

    46%,
    100% {
        opacity: 0;
    }
}

@keyframes status-pulse {
    0%,
    100% {
        opacity: .5;
        transform: scale(.85);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
        box-shadow:
            0 0 10px var(--green);
    }
}

@keyframes verification-glow {
    0%,
    100% {
        box-shadow:
            0 0 15px rgba(0,255,136,.03);
    }

    50% {
        box-shadow:
            0 0 28px rgba(0,255,136,.09);
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .topbar {
        height: auto;
    }

    .topbar-inner {
        min-height: 68px;

        flex-wrap: wrap;

        padding: 12px 0;
    }

    .main-nav {
        width: 100%;

        justify-content: center;

        gap: 14px;

        padding-top: 5px;

        flex-wrap: wrap;
    }

    .nav-link {
        padding: 7px 0;
    }

    .nav-link::after {
        bottom: 0;
    }

    .main-content {
        width: 94%;

        padding-top: 35px;
    }

    .site-footer {
        padding: 15px 4%;

        gap: 12px;

        flex-direction: column;

        justify-content: center;
    }

    .footer-left,
    .footer-right {
        flex-wrap: wrap;

        justify-content: center;
    }
}


@media (max-width: 500px) {

    .brand {
        font-size: 16px;
    }

    .main-nav {
        font-size: 10px;
    }

    .nav-prefix {
        display: none;
    }

    .auth-page {
        padding: 30px 12px;
    }

    .auth-card {
        padding: 22px 18px;
    }

    .auth-header h1 {
        font-size: 19px;
    }

    .auth-footer {
        flex-direction: column;

        align-items: center;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}


/* =========================================
HOME PAGE
========================================= */

.home-hero {
position: relative;
overflow: hidden;
min-height: 430px;
display: flex;
align-items: center;
border: 1px solid var(--border);
border-radius: 12px;
background:
radial-gradient(circle at 50% 0%, rgba(0, 255, 136, 0.08), transparent 45%),
var(--panel);
margin-bottom: 32px;
}

.hero-grid {
position: absolute;
inset: 0;
opacity: 0.18;
background-image:
linear-gradient(rgba(0, 255, 136, 0.08) 1px, transparent 1px),
linear-gradient(90deg, rgba(0, 255, 136, 0.08) 1px, transparent 1px);
background-size: 45px 45px;
mask-image: linear-gradient(to bottom, black, transparent);
}

.hero-content {
position: relative;
z-index: 2;
width: 100%;
padding: 70px 50px;
animation: homeHeroIn 0.8s ease both;
}

.hero-terminal {
display: flex;
align-items: center;
gap: 8px;
color: var(--muted);
font-family: "JetBrains Mono", monospace;
font-size: 13px;
margin-bottom: 25px;
}

.hero-prompt {
color: var(--green);
}

.hero-cursor {
width: 7px;
height: 17px;
background: var(--green);
display: inline-block;
animation: cursorBlink 1s infinite;
}

.home-hero h1 {
margin: 0;
max-width: 800px;
font-family: "JetBrains Mono", monospace;
font-size: clamp(32px, 5vw, 62px);
line-height: 1.05;
letter-spacing: -2px;
color: var(--text);
}

.home-hero h1 span {
display: block;
color: var(--green);
text-shadow: 0 0 25px rgba(0, 255, 136, 0.18);
}

.hero-subtitle {
margin: 24px 0 8px;
color: var(--text);
font-family: "JetBrains Mono", monospace;
font-size: 19px;
}

.hero-description {
max-width: 620px;
margin: 0;
color: var(--muted);
line-height: 1.8;
}

.hero-actions {
display: flex;
gap: 12px;
margin-top: 32px;
flex-wrap: wrap;
}

.home-btn {
display: inline-flex;
align-items: center;
gap: 10px;
min-height: 46px;
padding: 0 20px;
border-radius: 7px;
font-family: "JetBrains Mono", monospace;
font-size: 13px;
text-decoration: none;
transition: 0.2s ease;
}

.home-btn-primary {
background: var(--green);
color: #06100b;
font-weight: 700;
}

.home-btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 10px 30px rgba(0, 255, 136, 0.18);
}

.home-btn-secondary {
border: 1px solid var(--border);
background: var(--panel-2);
color: var(--text);
}

.home-btn-secondary:hover {
border-color: var(--green);
color: var(--green);
transform: translateY(-2px);
}

/* =========================================
COMMUNITY GRID
========================================= */

.community-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) 320px;
gap: 24px;
margin-bottom: 40px;
}

.section-heading {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 20px;
margin-bottom: 18px;
}

.section-command {
display: block;
color: var(--green);
font-family: "JetBrains Mono", monospace;
font-size: 11px;
margin-bottom: 7px;
opacity: 0.8;
}

.section-heading h2 {
margin: 0;
color: var(--text);
font-size: 22px;
}

.section-link {
color: var(--muted);
font-size: 12px;
text-decoration: none;
transition: 0.2s ease;
}

.section-link:hover {
color: var(--green);
}

/* =========================================
QUESTION CARDS
========================================= */

.question-list {
display: flex;
flex-direction: column;
gap: 10px;
}

.question-card {
display: grid;
grid-template-columns: 70px minmax(0, 1fr) 70px;
gap: 18px;
align-items: center;
padding: 19px;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--panel);
transition: 0.2s ease;
animation: questionIn 0.5s ease both;
}

.question-card:hover {
border-color: rgba(0, 255, 136, 0.4);
transform: translateX(3px);
background: var(--panel-2);
}

.question-votes,
.question-answers {
text-align: center;
color: var(--muted);
font-size: 11px;
}

.question-votes strong,
.question-answers strong {
display: block;
color: var(--text);
font-family: "JetBrains Mono", monospace;
font-size: 17px;
}

.question-info {
min-width: 0;
}

.question-info h3 {
margin: 0 0 7px;
color: var(--text);
font-size: 15px;
font-weight: 600;
}

.question-info p {
margin: 0 0 12px;
color: var(--muted);
font-size: 12px;
line-height: 1.7;
}

.question-meta {
display: flex;
align-items: center;
gap: 7px;
flex-wrap: wrap;
}

.tag {
padding: 4px 8px;
border-radius: 4px;
background: rgba(0, 255, 136, 0.07);
color: var(--green);
font-family: "JetBrains Mono", monospace;
font-size: 10px;
}

.question-author {
margin-left: auto;
color: var(--muted);
font-size: 10px;
}

.question-author strong {
color: var(--text);
}

/* =========================================
SIDEBAR
========================================= */

.community-sidebar {
display: flex;
flex-direction: column;
gap: 16px;
}

.sidebar-panel {
border: 1px solid var(--border);
border-radius: 8px;
background: var(--panel);
overflow: hidden;
}

.sidebar-title {
padding: 15px 17px;
border-bottom: 1px solid var(--border);
color: var(--text);
font-family: "JetBrains Mono", monospace;
font-size: 12px;
}

.sidebar-title span {
color: var(--green);
margin-right: 7px;
}

.stats-list {
padding: 8px 17px;
}

.stat-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 13px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
color: var(--muted);
font-size: 12px;
}

.stat-item:last-child {
border-bottom: 0;
}

.stat-item strong {
color: var(--green);
font-family: "JetBrains Mono", monospace;
font-size: 15px;
}

.popular-tags {
display: flex;
flex-direction: column;
padding: 8px 17px 12px;
}

.popular-tag {
display: flex;
justify-content: space-between;
padding: 11px 0;
color: var(--text);
text-decoration: none;
font-size: 12px;
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
transition: 0.2s ease;
}

.popular-tag:last-child {
border-bottom: 0;
}

.popular-tag:hover {
color: var(--green);
padding-left: 4px;
}

.popular-tag span {
color: var(--muted);
font-family: "JetBrains Mono", monospace;
font-size: 10px;
}

/* =========================================
CHAT ROOMS
========================================= */

.chat-section {
margin-bottom: 40px;
}

.chat-rooms {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
}

.chat-room {
position: relative;
display: flex;
flex-direction: column;
min-height: 150px;
padding: 18px;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--panel);
color: var(--text);
text-decoration: none;
transition: 0.25s ease;
}

.chat-room:hover {
transform: translateY(-4px);
border-color: rgba(0, 255, 136, 0.45);
box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.chat-room-icon {
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 16px;
border: 1px solid rgba(0, 255, 136, 0.3);
border-radius: 5px;
color: var(--green);
font-family: "JetBrains Mono", monospace;
}

.chat-room-info strong {
display: block;
margin-bottom: 7px;
font-size: 14px;
}

.chat-room-info span {
color: var(--muted);
font-size: 10px;
line-height: 1.6;
}

.chat-room-users {
margin-top: auto;
padding-top: 15px;
color: var(--muted);
font-family: "JetBrains Mono", monospace;
font-size: 10px;
}

.online-dot {
display: inline-block;
width: 6px;
height: 6px;
margin-right: 5px;
border-radius: 50%;
background: var(--green);
box-shadow: 0 0 8px var(--green);
animation: statusPulse 2s infinite;
}

/* =========================================
ANIMATIONS
========================================= */

@keyframes homeHeroIn {
from {
opacity: 0;
transform: translateY(18px);
}


to {
    opacity: 1;
    transform: translateY(0);
}


}

@keyframes questionIn {
from {
opacity: 0;
transform: translateX(-12px);
}


to {
    opacity: 1;
    transform: translateX(0);
}


}

@keyframes cursorBlink {
0%,
45% {
opacity: 1;
}


46%,
100% {
    opacity: 0;
}


}

@keyframes statusPulse {
0%,
100% {
opacity: 1;
}


50% {
    opacity: 0.35;
}


}

/* =========================================
RESPONSIVE
========================================= */

@media (max-width: 900px) {


.community-grid {
    grid-template-columns: 1fr;
}

.chat-rooms {
    grid-template-columns: repeat(2, 1fr);
}


}

@media (max-width: 650px) {


.home-hero {
    min-height: 390px;
}

.hero-content {
    padding: 45px 25px;
}

.home-hero h1 {
    font-size: 34px;
}

.question-card {
    grid-template-columns: 55px minmax(0, 1fr);
}

.question-answers {
    display: none;
}

.question-author {
    width: 100%;
    margin-left: 0;
}

.chat-rooms {
    grid-template-columns: 1fr;
}

.section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
}


}
