/* =====================================
   LLC — LOWLIFECULTURE
   Clean street / deep violet
   Polished responsive homepage
===================================== */

:root {
    --ink: #1d1b22;
    --ink-soft: #4a4753;
    --muted: #7b7885;
    --border: #e8e6ee;
    --border-soft: #f0eef5;

    --background: #f5f4f8;
    --panel: #ffffff;
    --surface-soft: #faf9fd;

    --violet: #7446a8;
    --violet-dark: #5f3590;
    --violet-light: #f0e9f8;
    --violet-border: #ded0ed;
    --violet-gradient: linear-gradient(135deg, #8553be 0%, #6a3d9f 100%);

    --green: #3f9a68;

    --radius: 16px;
    --radius-sm: 10px;

    --shadow-sm: 0 1px 2px rgba(30, 20, 45, 0.04), 0 2px 8px rgba(30, 20, 45, 0.04);
    --shadow-md: 0 2px 4px rgba(30, 20, 45, 0.04), 0 10px 28px rgba(30, 20, 45, 0.08);
    --shadow-brand: 0 4px 14px rgba(116, 70, 168, 0.28);

    --sidebar-width: 260px;
    --topbar-height: 96px;
    --page-pad: clamp(24px, 3vw, 48px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--violet-light);
    color: var(--violet-dark);
}

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

button {
    font: inherit;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: 3px;
}

img {
    display: block;
    max-width: 100%;
}

.icon {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.app-layout {
    min-height: 100vh;
}

/* =====================================
   BRAND
===================================== */

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: var(--violet-gradient);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -1.5px;
    border-radius: 12px;
    box-shadow: var(--shadow-brand);
}

.brand-name {
    color: var(--ink);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

/* =====================================
   DESKTOP SIDEBAR
===================================== */

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    padding: 26px 16px 20px;
    background: #fff;
    border-right: 1px solid var(--border);
}

.sidebar>.brand {
    padding: 0 8px 30px;
}

.side-navigation {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    padding: 0 14px;
    color: var(--ink-soft);
    font-size: 15.5px;
    font-weight: 550;
    border-radius: var(--radius-sm);
    transition: background 160ms ease, color 160ms ease;
}

.nav-link:hover {
    background: var(--surface-soft);
    color: var(--ink);
}

.nav-link.active {
    background: var(--violet-light);
    color: var(--violet);
    font-weight: 700;
}

.nav-icon {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.create-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    margin-top: 22px;
    padding: 10px 14px;
    background: var(--violet-gradient);
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-brand);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.create-button:hover,
.panel-button:hover {
    transform: translateY(-1px);
}

.create-button:hover {
    filter: brightness(1.06);
    box-shadow: 0 8px 20px rgba(116, 70, 168, 0.32);
}

.create-button:active,
.composer-button:active,
.panel-button:active {
    transform: translateY(0) scale(0.98);
}

.create-button .icon {
    width: 20px;
    height: 20px;
}

.sidebar-footer {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    padding: 18px 8px 0;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(63, 154, 104, 0.18);
}

/* =====================================
   MAIN CONTENT / TOP BAR
===================================== */

.main-content {
    min-width: 0;
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    padding: 0 var(--page-pad) 64px;
}

.desktop-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: var(--topbar-height);
    margin: 0 calc(var(--page-pad) * -1);
    padding: 0 var(--page-pad);
    background: rgba(245, 244, 248, 0.86);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--violet);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.desktop-topbar h1,
.mobile-intro h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(26px, 2.4vw, 34px);
    font-weight: 800;
    letter-spacing: -0.9px;
    line-height: 1.15;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 320px;
    height: 46px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--muted);
    font-size: 13.5px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-box:hover {
    border-color: var(--violet-border);
    box-shadow: 0 0 0 4px var(--violet-light);
}

.search-box .icon {
    width: 18px;
    height: 18px;
}

.topbar-avatar,
.composer-avatar,
.post-avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: linear-gradient(145deg, #f6f0fc, #e6d8f5);
    color: var(--violet);
    font-weight: 800;
    border: 1px solid var(--violet-border);
    border-radius: 50%;
}

.topbar-avatar {
    width: 42px;
    height: 42px;
    font-size: 15px;
    transition: box-shadow 160ms ease;
}

.topbar-avatar:hover {
    box-shadow: 0 0 0 4px var(--violet-light);
}

.login-link {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 18px;
    background: #fff;
    font-size: 14px;
    font-weight: 650;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: color 160ms ease, border-color 160ms ease;
}

.login-link:hover {
    color: var(--violet);
    border-color: var(--violet-border);
}

.header-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--ink);
    border-radius: 12px;
    transition: color 160ms ease, background 160ms ease;
}

.header-icon:hover {
    color: var(--violet);
    background: var(--violet-light);
}

.mobile-header,
.mobile-intro {
    display: none;
}

/* =====================================
   CONTENT GRID
===================================== */

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 720px) minmax(260px, 340px);
    justify-content: center;
    align-items: start;
    gap: 32px;
    padding-top: 32px;
}

.feed-column {
    min-width: 0;
}

.right-column {
    position: sticky;
    top: calc(var(--topbar-height) + 32px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

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

.composer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.composer-avatar {
    width: 50px;
    height: 50px;
    font-size: 18px;
}

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

.composer-content h2 {
    margin: 0 0 2px;
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.composer-content p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.composer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 22px;
    background: var(--violet-gradient);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    cursor: pointer;
    transition: transform 160ms ease, filter 160ms ease;
}

.composer-button:hover {
    filter: brightness(1.07);
}

.composer-button .icon {
    width: 18px;
    height: 18px;
}

/* =====================================
   FEED HEADING
===================================== */

.feed-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 36px 2px 16px;
}

.feed-heading h2 {
    margin: 0 0 2px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.feed-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.feed-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* =====================================
   POST CARD
===================================== */

.post-card {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0 0 24px;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 200ms ease, border-color 200ms ease;
}

.post-card:hover {
    border-color: var(--violet-border);
    box-shadow: var(--shadow-md);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
}

.post-avatar {
    width: 48px;
    height: 48px;
    font-size: 17px;
}

.post-author {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.post-username {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-username:hover {
    color: var(--violet);
}

.post-time {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.more-button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--muted);
    font-size: 20px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.more-button:hover {
    background: var(--violet-light);
    color: var(--violet);
}

.post-image-wrapper {
    display: block;
    width: 100%;
    overflow: hidden;
    background: #16141a;
    line-height: 0;
}

.post-image {
    display: block;
    width: 100%;
    height: auto;
    min-height: 240px;
    max-height: 720px;
    object-fit: cover;
    object-position: center;
}

.post-details {
    display: block;
    padding: 12px 20px 22px;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 -10px;
}

.like-button,
.action-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--ink);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.like-button:hover,
.action-icon:hover {
    color: var(--violet);
    background: var(--violet-light);
}

.like-button:active,
.action-icon:active {
    transform: scale(0.9);
}

.like-button.is-liked {
    color: var(--violet);
}

.like-button.is-liked .like-label {
    animation: like-pop 320ms cubic-bezier(0.3, 1.6, 0.5, 1);
}

@keyframes like-pop {
    0% {
        transform: scale(0.7);
    }

    100% {
        transform: scale(1);
    }
}

.action-icon .icon {
    width: 23px;
    height: 23px;
}

.action-spacer {
    flex: 1;
}

.post-tag {
    margin-right: 8px;
    padding: 6px 12px;
    background: var(--violet-light);
    color: var(--violet);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.2;
    border-radius: 999px;
    white-space: nowrap;
}

.like-count-line {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 6px 0 8px;
    font-size: 15px;
}

.like-count-line strong {
    font-weight: 800;
}

.post-caption {
    margin: 0;
    color: var(--ink-soft);
    font-size: 15.5px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Keep the user's own line breaks, but ignore template indentation */
.caption-text {
    white-space: pre-line;
}

.caption-username {
    margin-right: 6px;
    color: var(--ink);
    font-weight: 800;
}

.caption-username:hover {
    color: var(--violet);
}

/* =====================================
   POST CARD — CULTURE EDITION
   (overrides the base card styles above)
===================================== */

/* Entrance: cards rise in one after another */
.post-card {
    position: relative;
    isolation: isolate;
    animation: card-in 520ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.post-card:nth-of-type(2) {
    animation-delay: 70ms;
}

.post-card:nth-of-type(3) {
    animation-delay: 140ms;
}

.post-card:nth-of-type(4) {
    animation-delay: 210ms;
}

@keyframes card-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
}

/* Violet accent line that sweeps across the top on hover */
.post-card::before {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 3;
    height: 3px;
    background: linear-gradient(90deg, #6a3d9f, #b48be6, #8553be);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
    pointer-events: none;
}

.post-card:hover::before {
    transform: scaleX(1);
}

.post-card:hover {
    box-shadow: 0 2px 6px rgba(30, 20, 45, 0.05), 0 18px 44px rgba(116, 70, 168, 0.16);
}

@media (hover: hover) {
    .post-card:hover {
        transform: translateY(-3px);
    }
}

/* Gradient ring around the avatar */
.post-avatar {
    border: 2px solid transparent;
    background:
        linear-gradient(145deg, #f8f3fd, #e6d8f5) padding-box,
        var(--violet-gradient) border-box;
}

/* Timestamp as a small status line */
.post-time {
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.post-time::before {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 7px;
    background: var(--violet);
    border-radius: 50%;
    content: "";
    opacity: 0.7;
    vertical-align: middle;
}

/* Photo mounted inside the card, with depth + viewfinder corners */
.post-image-wrapper {
    position: relative;
    width: auto;
    margin: 0 16px;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 6px 18px rgba(20, 10, 35, 0.14);
}

.post-image-wrapper::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(12, 6, 22, 0.38), transparent 42%);
    content: "";
    pointer-events: none;
}

.post-image-wrapper::before {
    --c: rgba(255, 255, 255, 0.92);
    --l: 24px;
    --t: 2px;
    position: absolute;
    inset: 14px;
    z-index: 2;
    background:
        linear-gradient(var(--c), var(--c)) left top / var(--l) var(--t) no-repeat,
        linear-gradient(var(--c), var(--c)) left top / var(--t) var(--l) no-repeat,
        linear-gradient(var(--c), var(--c)) right top / var(--l) var(--t) no-repeat,
        linear-gradient(var(--c), var(--c)) right top / var(--t) var(--l) no-repeat,
        linear-gradient(var(--c), var(--c)) left bottom / var(--l) var(--t) no-repeat,
        linear-gradient(var(--c), var(--c)) left bottom / var(--t) var(--l) no-repeat,
        linear-gradient(var(--c), var(--c)) right bottom / var(--l) var(--t) no-repeat,
        linear-gradient(var(--c), var(--c)) right bottom / var(--t) var(--l) no-repeat;
    content: "";
    opacity: 0;
    transition: opacity 280ms ease, inset 280ms ease;
    pointer-events: none;
}

.post-card:hover .post-image-wrapper::before {
    inset: 20px;
    opacity: 1;
}

.post-image {
    transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.post-card:hover .post-image {
    transform: scale(1.035);
}

/* Liked state gets a soft violet chip */
.like-button.is-liked {
    background: var(--violet-light);
}

/* "LLC COMMUNITY" tag styled like a license plate */
.post-tag {
    position: relative;
    padding: 5px 11px 5px 24px;
    background: #fff;
    color: var(--ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    border: 1.5px solid var(--ink);
    border-radius: 6px;
}

.post-tag::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 13px;
    background: var(--violet-gradient);
    border-radius: 4px 0 0 4px;
    content: "";
}

.like-count-line strong {
    color: var(--violet);
    font-variant-numeric: tabular-nums;
}

/* Caption gets a quote-style rail that lights up on hover */
.post-caption {
    padding-left: 14px;
    border-left: 2px solid var(--violet-border);
    transition: border-color 250ms ease;
}

.post-card:hover .post-caption {
    border-left-color: var(--violet);
}

@media (max-width: 650px) {
    .post-card:hover {
        transform: none;
    }

    .post-image-wrapper {
        margin: 0 12px;
        border-radius: 12px;
    }
}

/* =====================================
   EMPTY FEED
===================================== */

.empty-feed {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 26px;
    background: var(--panel);
    border: 1.5px dashed var(--violet-border);
    border-radius: var(--radius);
    text-align: center;
}

.empty-feed-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    background: var(--violet-light);
    color: var(--violet);
    border-radius: 18px;
}

.empty-feed-icon .icon {
    width: 28px;
    height: 28px;
}

.empty-feed h2 {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.empty-feed p {
    max-width: 360px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.empty-create {
    margin-top: 22px;
    padding-right: 24px;
    padding-left: 24px;
}

/* =====================================
   RIGHT WELCOME PANEL
===================================== */

.welcome-panel {
    position: relative;
    overflow: hidden;
    padding: 28px 26px;
    background: linear-gradient(150deg, #5a2f8d 0%, #7447a8 55%, #9468cc 100%);
    border-radius: var(--radius);
    box-shadow: 0 10px 28px rgba(90, 47, 141, 0.28);
    color: #fff;
}

.welcome-panel::before,
.welcome-panel::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.welcome-panel::before {
    top: -48px;
    right: -44px;
    width: 160px;
    height: 160px;
}

.welcome-panel::after {
    top: -12px;
    right: -10px;
    width: 90px;
    height: 90px;
}

.welcome-panel .eyebrow {
    position: relative;
    color: rgba(255, 255, 255, 0.78);
}

.welcome-panel h2 {
    position: relative;
    margin: 8px 0 12px;
    font-size: 31px;
    font-weight: 850;
    letter-spacing: -0.9px;
    line-height: 1.1;
}

.welcome-panel>p:not(.eyebrow) {
    position: relative;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14.5px;
    line-height: 1.6;
}

.panel-button {
    position: relative;
    z-index: 1;
    display: block;
    padding: 14px 16px;
    background: #fff;
    color: var(--violet-dark);
    font-size: 14.5px;
    font-weight: 750;
    text-align: center;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(20, 8, 40, 0.18);
    transition: transform 160ms ease;
}

/* =====================================
   DISCOVERY / SIDE PANELS
===================================== */

.side-panel {
    padding: 20px 14px 14px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.side-panel-heading {
    margin: 0 0 8px;
    padding: 0 8px;
}

.side-panel-heading h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.discovery-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 12px;
    transition: background 160ms ease;
}

.discovery-item:hover {
    background: var(--surface-soft);
}

.discovery-item>span:nth-child(2) {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.discovery-item strong {
    color: var(--ink);
    font-size: 14.5px;
    font-weight: 700;
    transition: color 160ms ease;
}

.discovery-item small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.discovery-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: #f3f2f6;
    color: var(--ink-soft);
    border-radius: 11px;
}

.discovery-icon .icon {
    width: 20px;
    height: 20px;
}

.orange-icon {
    background: var(--violet-light);
    color: var(--violet);
}

.discovery-arrow {
    display: grid;
    color: #aaa8b3;
    transition: color 160ms ease, transform 160ms ease;
}

.discovery-arrow .icon {
    width: 16px;
    height: 16px;
}

.discovery-item:hover strong,
.discovery-item:hover .discovery-arrow {
    color: var(--violet);
}

.discovery-item:hover .discovery-arrow {
    transform: translateX(2px);
}

.right-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 8px;
    color: var(--muted);
    font-size: 12px;
}

.right-footer span:first-child {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

/* =====================================
   MOBILE NAVIGATION (hidden by default)
===================================== */

.mobile-bottom-nav {
    display: none;
}

/* =====================================
   TABLET / SMALL DESKTOP
===================================== */

@media (max-width: 1250px) {
    :root {
        --sidebar-width: 232px;
        --page-pad: 28px;
    }

    .content-grid {
        grid-template-columns: minmax(0, 1fr) 290px;
        gap: 20px;
    }

    .search-box {
        width: 220px;
    }
}

/* =====================================
   COMPACT DESKTOP / TABLET
===================================== */

@media (max-width: 1000px) {
    :root {
        --sidebar-width: 80px;
        --page-pad: 22px;
    }

    .sidebar {
        align-items: center;
        padding: 22px 10px;
    }

    .sidebar .brand-name,
    .nav-link>span:last-child,
    .sidebar-footer {
        display: none;
    }

    .sidebar>.brand {
        padding: 0 0 26px;
    }

    .side-navigation {
        width: 100%;
        align-items: center;
    }

    .nav-link {
        justify-content: center;
        width: 48px;
        height: 48px;
        padding: 0;
    }

    .sidebar>.create-button {
        width: 48px;
        min-height: 48px;
        margin-top: 20px;
        padding: 0;
        font-size: 0;
    }

    .sidebar>.create-button .icon {
        width: 22px;
        height: 22px;
    }

    .content-grid {
        grid-template-columns: minmax(0, 760px);
        gap: 16px;
    }

    .right-column {
        display: none;
    }
}

/* =====================================
   MOBILE
===================================== */

@media (max-width: 650px) {
    body {
        padding-bottom: calc(74px + env(safe-area-inset-bottom));
    }

    .sidebar,
    .desktop-topbar {
        display: none;
    }

    .main-content {
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 0 0 16px;
    }

    .mobile-header {
        position: sticky;
        top: 0;
        z-index: 15;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-height: 60px;
        padding: 8px 14px;
        background: rgba(255, 255, 255, 0.9);
        border-bottom: 1px solid var(--border);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .mobile-header .brand {
        gap: 9px;
    }

    .mobile-header .brand-mark {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 10px;
    }

    .mobile-header .brand-name {
        font-size: 10px;
        letter-spacing: 1.6px;
    }

    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .header-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }

    .mobile-intro {
        display: block;
        padding: 22px 16px 16px;
    }

    .mobile-intro h1 {
        font-size: 27px;
    }

    .mobile-intro>p:last-child {
        margin: 6px 0 0;
        color: var(--muted);
        font-size: 14px;
    }

    .content-grid {
        display: block;
        padding: 0;
    }

    .composer {
        gap: 11px;
        margin: 0 12px;
        padding: 14px;
    }

    .composer-avatar {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }

    .composer-content h2 {
        font-size: 14.5px;
    }

    .composer-content p {
        font-size: 12.5px;
        line-height: 1.4;
    }

    .composer-button {
        min-width: 40px;
        min-height: 40px;
        padding: 8px 14px;
    }

    .composer-button-text {
        display: none;
    }

    .feed-heading {
        margin: 26px 16px 12px;
    }

    .feed-heading h2 {
        font-size: 20px;
    }

    .feed-heading p {
        font-size: 13px;
    }

    /* Edge-to-edge posts */

    .post-card {
        margin: 0 0 10px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .post-card:hover {
        border-color: var(--border);
        box-shadow: none;
    }

    .post-header {
        padding: 12px 14px;
    }

    .post-avatar {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }

    .post-image {
        max-height: 70vh;
    }

    .post-details {
        padding: 8px 14px 18px;
    }

    .post-image {
        min-height: 0;
    }

    .empty-feed {
        margin: 0 12px;
        padding: 44px 20px;
    }

    .empty-feed h2 {
        font-size: 19px;
    }

    .mobile-bottom-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 30;
        display: flex;
        align-items: center;
        justify-content: space-around;
        min-height: 64px;
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.92);
        border-top: 1px solid var(--border);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .bottom-nav-item {
        display: flex;
        flex: 1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        padding: 4px 0;
        color: #8a8793;
        transition: color 160ms ease;
    }

    .bottom-nav-item>span {
        display: grid;
        place-items: center;
    }

    .bottom-nav-item .icon {
        width: 24px;
        height: 24px;
    }

    .bottom-nav-item small {
        font-size: 10.5px;
        font-weight: 650;
    }

    .bottom-nav-item.active {
        color: var(--violet);
    }

    .bottom-create {
        display: grid;
        place-items: center;
        width: 48px;
        height: 48px;
        flex-shrink: 0;
        margin: 0 6px;
        background: var(--violet-gradient);
        color: #fff;
        border-radius: 15px;
        box-shadow: var(--shadow-brand);
        transition: transform 160ms ease;
    }

    .bottom-create .icon {
        width: 24px;
        height: 24px;
    }

    .bottom-create:active {
        transform: scale(0.92);
    }
}

/* =====================================
   VERY SMALL PHONES
===================================== */

@media (max-width: 360px) {
    .mobile-header {
        padding-right: 10px;
        padding-left: 10px;
    }

    .mobile-header .brand-name {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .mobile-intro h1 {
        font-size: 24px;
    }

    .composer {
        margin-right: 8px;
        margin-left: 8px;
    }

    .composer-content p {
        display: none;
    }

    .post-tag {
        display: none;
    }
}

/* =====================================
   REDUCED MOTION
===================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}