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

:root {
    --bg: #071124;
    --panel: rgba(10, 22, 48, 0.79);
    --border: rgba(180, 202, 255, 0.18);
    --text: #f4f7ff;
    --muted: #a9b8d7;
    --blue: #398cff;
    --purple: #8a43ff;
    --radius: 22px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        linear-gradient(
            110deg,
            rgba(4, 12, 31, 0.89),
            rgba(8, 15, 43, 0.57) 53%,
            rgba(5, 12, 32, 0.82)
        ),
        url("/static/images/gather_background.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    line-height: 1.6;
}

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

button,
input,
textarea {
    font: inherit;
}

button,
a,
input,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button,
.btn {
    transition: transform .2s ease, filter .2s ease,
                background .2s ease, border-color .2s ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #6ab5ff;
    outline-offset: 3px;
}

.navbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 5%;
    background: rgba(5, 13, 34, 0.83);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -1.2px;
}

.brand-icon {
    color: #5ba4ff;
    font-size: 35px;
}

.brand-dot,
.section-heading h2 span,
.about-section h2 span {
    color: #9b79ff;
}

.nav-links,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 23px;
}

.nav-links a {
    color: #c4cfe6;
    font-size: 14px;
    font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
    color: #72aaff;
}

.nav-actions {
    gap: 10px;
}

.nav-user {
    color: var(--muted);
    font-size: 13px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 19px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
}

.btn-primary {
    color: white;
    background: linear-gradient(120deg, #278fff, #8544ff);
    box-shadow: 0 7px 25px rgba(69, 85, 255, .24);
}

.btn-outline {
    color: #edf2ff;
    border-color: rgba(173, 199, 255, .35);
    background: rgba(255, 255, 255, .035);
}

.btn-glass {
    color: white;
    background: rgba(255, 255, 255, .075);
    border-color: var(--border);
    backdrop-filter: blur(10px);
}

.btn-large {
    min-height: 52px;
    padding: 14px 23px;
}

.inline-form {
    display: inline-flex;
    background: transparent;
    border: 0;
    padding: 0;
}

.hero {
    width: min(1320px, 90%);
    min-height: 620px;
    margin: auto;
    padding: 85px 0 75px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 65px;
}

.hero-content {
    max-width: 650px;
}

.eyebrow {
    display: inline-block;
    color: #a6c6ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    margin-bottom: 18px;
}

.status-dot,
.online-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #49e4b1;
    margin-right: 7px;
    box-shadow: 0 0 12px rgba(73, 228, 177, .7);
}

.hero h1 {
    font-size: clamp(42px, 5.5vw, 75px);
    line-height: 1.08;
    letter-spacing: -3.5px;
    font-weight: 800;
}

.hero h1 span {
    background: linear-gradient(95deg, #43adff, #a66aff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-description {
    max-width: 530px;
    color: #c2cde4;
    font-size: 16px;
    line-height: 1.9;
    margin: 24px 0 29px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 42px;
}

.feature-card {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-radius: 16px;
    background: rgba(8, 18, 44, .65);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.feature-card:hover {
    background: rgba(35, 48, 87, .78);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 24px;
    margin-bottom: 3px;
}

.feature-icon.blue {
    color: #51b9ff;
}

.feature-icon.purple {
    color: #a782ff;
}

.feature-icon.gold {
    color: #ffd06c;
}

.feature-title {
    font-size: 12px;
    font-weight: 700;
}

.feature-text {
    color: var(--muted);
    font-size: 11px;
}

.hero-side {
    position: relative;
    padding: 15px 0;
}

.glass-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .23);
}

.welcome-card {
    padding: 38px;
}

.welcome-symbol {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    margin-bottom: 25px;
    border-radius: 17px;
    font-size: 28px;
    background: linear-gradient(135deg, #258dff, #914aff);
    box-shadow: 0 10px 35px rgba(102, 77, 255, .28);
}

.mini-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #a6bfff;
}

.welcome-card h2 {
    margin-top: 12px;
    font-size: 33px;
    line-height: 1.25;
    letter-spacing: -1px;
}

.welcome-card > p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 16px;
}

.welcome-footer {
    border-top: 1px solid var(--border);
    margin-top: 28px;
    padding-top: 18px;
    color: #cad7f0;
    font-size: 12px;
}

.floating-note {
    position: absolute;
    right: -22px;
    bottom: -18px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px 20px;
    border-radius: 17px;
    background: rgba(12, 24, 52, .94);
    border: 1px solid var(--border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .25);
}

.note-icon {
    color: #b58aff;
    font-size: 27px;
}

.floating-note strong {
    font-size: 12px;
}

.floating-note p {
    color: var(--muted);
    font-size: 11px;
}

.community-section,
.about-section {
    width: min(1120px, 90%);
    margin: auto;
    padding: 65px 0;
}

.community-section {
    border-top: 1px solid rgba(180, 202, 255, .13);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-heading .eyebrow {
    margin-bottom: 7px;
}

.section-heading h2,
.about-section h2 {
    font-size: clamp(27px, 4vw, 42px);
    letter-spacing: -1.5px;
    line-height: 1.25;
}

.section-heading p,
.about-section > p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 9px;
}

.composer {
    display: flex;
    gap: 16px;
    padding: 24px;
    margin-bottom: 35px;
}

.composer-avatar,
.post-avatar {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, #278fff, #914aff);
}

.composer-avatar {
    width: 45px;
    height: 45px;
    border-radius: 15px;
}

.composer-form {
    flex: 1;
    min-width: 0;
}

.composer-form label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.composer-form textarea,
input[type="search"] {
    width: 100%;
    color: var(--text);
    background: rgba(3, 12, 30, .58);
    border: 1px solid rgba(161, 187, 240, .23);
    border-radius: 12px;
    padding: 13px 15px;
    outline: none;
}

.composer-form textarea {
    min-height: 110px;
    resize: vertical;
}

.composer-form textarea:focus,
input[type="search"]:focus {
    border-color: #7a87ff;
    box-shadow: 0 0 0 3px rgba(100, 105, 255, .13);
}

textarea::placeholder,
input::placeholder {
    color: #8395b7;
}

.composer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 15px;
}

.composer-footer > span {
    color: var(--muted);
    font-size: 11px;
}

.join-banner {
    padding: 24px;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}

.join-banner h3 {
    font-size: 18px;
}

.join-banner p {
    color: var(--muted);
    font-size: 13px;
    margin-top: 5px;
}

.feed-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

.feed-toolbar h3 {
    font-size: 18px;
}

.feed-toolbar input {
    max-width: 300px;
}

.post-list {
    display: grid;
    gap: 18px;
}

.post-card {
    padding: 25px;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.post-author {
    display: flex;
    flex-direction: column;
}

.post-author strong {
    font-size: 14px;
}

.post-author span {
    color: var(--muted);
    font-size: 11px;
}

.post-badge {
    margin-left: auto;
    padding: 5px 9px;
    border-radius: 8px;
    color: #b4c4ff;
    background: rgba(113, 94, 255, .13);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.post-content {
    color: #e1e9fb;
    font-size: 14px;
    line-height: 1.9;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin: 23px 0;
}

.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(180, 202, 255, .12);
    color: var(--muted);
    font-size: 11px;
}

.post-app-label {
    color: #a9a3ff;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 9px;
}

.empty-state {
    text-align: center;
    padding: 45px 25px;
}

.empty-icon {
    font-size: 38px;
    color: #a786ff;
}

.empty-state h3 {
    font-size: 22px;
    margin: 12px 0 7px;
}

.empty-state p {
    max-width: 430px;
    margin: 0 auto 22px;
    color: var(--muted);
    font-size: 13px;
}

.about-section {
    text-align: center;
    padding-top: 55px;
    padding-bottom: 85px;
}

.about-section .eyebrow {
    margin-bottom: 12px;
}

.about-section > p {
    max-width: 560px;
    margin: 15px auto 25px;
    line-height: 1.9;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 25px 5%;
    background: rgba(4, 11, 29, .88);
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
}

.footer-brand {
    color: white;
    font-weight: 800;
    font-size: 17px;
}

[hidden] {
    display: none !important;
}

/* Shared styling for existing login and registration forms */
body:has(.auth-container) {
    display: block;
}

.auth-container {
    width: min(440px, 92%);
    margin: 65px auto;
    padding: 32px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
}

.auth-container h1,
.auth-container h2 {
    margin-bottom: 10px;
}

.auth-container label {
    display: block;
    margin: 16px 0 7px;
    font-size: 13px;
    font-weight: 600;
}

.auth-container input {
    width: 100%;
    padding: 13px 14px;
    color: white;
    background: rgba(3, 12, 30, .65);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.auth-container button {
    width: 100%;
    margin-top: 20px;
}

.auth-container p {
    color: var(--muted);
    margin-top: 15px;
    font-size: 13px;
}

.error {
    color: #ff9eae;
    margin-top: 12px;
}

@media (max-width: 900px) {
    .navbar {
        flex-wrap: wrap;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 20px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 60px;
    }

    .hero-content {
        max-width: 700px;
    }

    .hero-side {
        width: min(520px, 100%);
        margin: auto;
    }

    .floating-note {
        right: 10px;
    }
}

@media (max-width: 560px) {
    .navbar {
        padding: 14px 5%;
        gap: 12px;
    }

    .brand {
        font-size: 24px;
    }

    .nav-actions {
        gap: 7px;
    }

    .nav-actions .btn {
        padding: 9px 11px;
        font-size: 12px;
    }

    .nav-user {
        display: none;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .hero {
        padding-top: 48px;
        padding-bottom: 50px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 14px;
    }

    .feature-row {
        gap: 7px;
    }

    .feature-card {
        padding: 12px 8px;
    }

    .feature-title {
        font-size: 10px;
    }

    .feature-text {
        font-size: 10px;
    }

    .welcome-card {
        padding: 25px;
    }

    .welcome-card h2 {
        font-size: 28px;
    }

    .floating-note {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 12px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .composer {
        padding: 16px;
        gap: 11px;
    }

    .composer-avatar {
        width: 36px;
        height: 36px;
    }

    .composer-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .feed-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .feed-toolbar input {
        max-width: none;
    }

    .post-card {
        padding: 18px;
    }

    .post-badge {
        display: none;
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
    
/* Modern registration and login forms */
.auth-container {
    min-height: calc(100vh - 90px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 36px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    background: rgba(9, 17, 40, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    color: #ffffff;
}

.auth-card h1 {
    margin: 0 0 10px;
    font-size: 30px;
    text-align: center;
}

.auth-card p {
    color: #c4cce0;
    text-align: center;
    margin-bottom: 28px;
}

.auth-card label {
    display: block;
    margin: 18px 0 8px;
    color: #e5eaf7;
    font-size: 14px;
    font-weight: 600;
}

.auth-card input {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 14px 15px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-card input::placeholder {
    color: #aab6d0;
}

.auth-card input:focus {
    border-color: #8b7cff;
    box-shadow: 0 0 0 3px rgba(139, 124, 255, 0.2);
}

.auth-card button,
.auth-card input[type="submit"] {
    width: 100%;
    margin-top: 24px;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #7965ff, #b45cff);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.auth-card button:hover,
.auth-card input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

.auth-card .auth-footer {
    margin-top: 22px;
    margin-bottom: 0;
    text-align: center;
    font-size: 14px;
}

.auth-card a {
    color: #b9aaff;
    text-decoration: none;
    font-weight: 600;
}

.auth-card a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.auth-error {
    padding: 12px;
    border: 1px solid rgba(255, 100, 120, 0.4);
    border-radius: 10px;
    background: rgba(255, 70, 100, 0.12);
    color: #ffb6c1;
    font-size: 14px;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 25px 20px;
    }

    .auth-card h1 {
        font-size: 25px;
    }
}
}