/* Eroce (eroce.com) — public frontend design system */
:root {
    --bg: #070708;
    --bg-elevated: #0f0f12;
    --bg-card: #141418;
    --bg-card-hover: #1a1a20;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #f5f5f7;
    --text-muted: #9b9ba6;
    --text-dim: #6b6b76;
    --accent: #ff4d6d;
    --accent-soft: #ff8fa3;
    --gold: #e8c4a0;
    --gradient-accent: linear-gradient(135deg, #ff4d6d 0%, #ff7a9a 45%, #e8c4a0 100%);
    --gradient-glow: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 77, 109, 0.18), transparent 70%);
    --shadow-sm: 0 4px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
    --shadow-glow: 0 0 40px rgba(255, 77, 109, 0.15);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', system-ui, sans-serif;
    --header-h: 64px;
    --container: 1320px;
    --pin-gap: 18px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.site-body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

body.site-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--gradient-glow);
    pointer-events: none;
    z-index: 0;
}

.site-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    min-height: var(--header-h);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(7, 7, 8, 0.72);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0.65rem 1rem;
    width: 100%;
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
}

@media (min-width: 992px) {
    .site-header__inner {
        flex-wrap: nowrap;
        padding: 0 1.25rem;
        gap: 1rem 1.25rem;
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand__logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: min(160px, 42vw);
    object-fit: contain;
    object-position: left center;
    transition: opacity 0.2s ease;
}

.brand:hover .brand__logo {
    opacity: 0.9;
}

.brand__text {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand:hover .brand__text {
    opacity: 0.92;
}

@media (min-width: 768px) {
    .brand__logo {
        height: 44px;
        max-width: 120px;
    }
}

/* Header nav */
.site-nav {
    display: none;
    align-items: center;
    gap: 0.15rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .site-nav { display: flex; }
}

.site-nav__link {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.site-nav__link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
}

.site-nav__link.is-active {
    color: var(--accent-soft);
    border-color: rgba(255, 77, 109, 0.3);
    background: rgba(255, 77, 109, 0.08);
}

.site-header__drawer .site-nav__link {
    display: flex;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
}

/* Header actions */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .site-header__actions { margin-left: 0; }
}

.header-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid transparent;
    background: none;
    cursor: pointer;
}

.header-action i { font-size: 1.1rem; }

.header-action__label {
    display: none;
}

@media (min-width: 1200px) {
    .header-action__label { display: inline; }
}

.header-action--favorites {
    position: relative;
    text-decoration: none;
    color: var(--text-muted);
}

.header-action--favorites:hover {
    color: var(--accent-soft);
}

.header-action__badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1rem;
    text-align: center;
    border-radius: var(--radius-full);
    background: var(--accent);
    color: #fff;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border);
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
    white-space: nowrap;
}

.header-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-strong);
}

.header-btn--primary {
    border: none;
    color: #fff;
    background: var(--gradient-accent);
    box-shadow: 0 4px 20px rgba(255, 77, 109, 0.3);
}

.header-btn--primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(255, 77, 109, 0.4);
}

.site-header__signin {
    display: none;
}

@media (min-width: 576px) {
    .site-header__signin { display: inline-flex; }
}

.header-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.header-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-strong);
}

@media (min-width: 992px) {
    .header-menu-toggle { display: none; }
}

.site-header__drawer {
    width: 100%;
    border-top: 1px solid var(--border);
    background: rgba(7, 7, 8, 0.95);
    padding: 0.75rem 1rem 1rem;
}

.site-header__drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-width: var(--container);
    margin: 0 auto;
}

.site-header__drawer .site-nav__link {
    display: flex;
    width: 100%;
    padding: 0.65rem 0.85rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.search-form {
    flex: 1 1 100%;
    max-width: none;
    position: relative;
    order: 10;
}

@media (min-width: 576px) {
    .search-form {
        flex: 1 1 auto;
        order: unset;
        max-width: 280px;
    }
}

@media (min-width: 768px) {
    .search-form {
        max-width: 320px;
        margin-left: auto;
    }
}

@media (min-width: 1200px) {
    .search-form { max-width: 380px; }
}

.search-form__icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    pointer-events: none;
    font-size: 0.95rem;
}

.search-form__input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.65rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.search-form__input::placeholder { color: var(--text-dim); }

.search-form__input:focus {
    outline: none;
    border-color: rgba(255, 77, 109, 0.45);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.12);
}

/* Main */
.site-main {
    flex: 1;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem 4rem;
    width: 100%;
}

/* Hero (home) */
.page-hero {
    padding: 2.5rem 0 2rem;
    text-align: center;
}

.page-hero--compact {
    padding: 1.75rem 0 1rem;
}

.feed-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.feed-tabs__link {
    padding: 0.45rem 1.15rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.feed-tabs__link:hover {
    color: var(--text);
    border-color: var(--border-strong);
}

.feed-tabs__link.is-active {
    color: #fff;
    border-color: transparent;
    background: var(--gradient-accent);
}

.post-hero__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.post-hero__row h1 {
    margin-bottom: 0;
}

.post-favorite-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.post-favorite-btn.is-active {
    border-color: rgba(255, 77, 109, 0.5);
    color: var(--accent-soft);
    background: rgba(255, 77, 109, 0.12);
}

.post-favorite-btn.is-active i {
    color: var(--accent);
}

.sponsor-page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.sponsor-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.sponsor-follow-btn.is-followed {
    border-color: rgba(255, 77, 109, 0.45);
    background: rgba(255, 77, 109, 0.12);
    color: var(--accent-soft);
}

.sponsor-feed-link {
    font-size: 0.875rem;
    color: var(--accent-soft);
    text-decoration: none;
}

.sponsor-feed-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Sponsors index */
.sponsor-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 576px) {
    .sponsor-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .sponsor-grid { grid-template-columns: repeat(3, 1fr); }
}

.sponsor-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s var(--ease);
}

.sponsor-card.is-followed {
    border-color: rgba(255, 77, 109, 0.4);
    box-shadow: var(--shadow-glow);
}

.sponsor-card__main {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0.75rem;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.sponsor-card__main:hover .sponsor-card__name {
    color: var(--accent-soft);
}

.sponsor-card__logo-wrap {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: 1px solid var(--border);
}

.sponsor-card__logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sponsor-card__logo-placeholder {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-dim);
}

.sponsor-card__body {
    min-width: 0;
}

.sponsor-card__name {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 500;
    margin: 0 0 0.35rem;
    line-height: 1.2;
    transition: color 0.2s;
}

.sponsor-card__desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
    line-height: 1.45;
}

.sponsor-card__meta {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin: 0;
    font-weight: 500;
}

.sponsor-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
    padding-top: 1rem;
}

.sponsor-follow-btn--compact {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
}

.sponsor-card__view {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
}

.sponsor-card__view:hover {
    color: var(--accent-soft);
}

.page-hero__eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-soft);
    margin-bottom: 0.75rem;
}

.page-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
    color: var(--text);
}

.page-hero__title em {
    font-style: italic;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-hero__lead {
    max-width: 520px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.page-hero__lead a {
    color: var(--accent-soft);
    text-decoration: none;
}

.page-hero__lead a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Pin grid */
.pin-grid {
    column-count: 2;
    column-gap: var(--pin-gap);
    padding-bottom: 2rem;
}

@media (min-width: 576px) { .pin-grid { column-count: 3; } }
@media (min-width: 992px) { .pin-grid { column-count: 4; } }
@media (min-width: 1400px) { .pin-grid { column-count: 5; } }

.pin-card {
    position: relative;
    break-inside: avoid;
    margin-bottom: var(--pin-gap);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.pin-favorite {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 3;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 7, 8, 0.55);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.25s, transform 0.25s var(--ease), background 0.2s, color 0.2s;
}

.pin-card:hover .pin-favorite,
.pin-favorite.is-active,
.pin-favorite:focus-visible {
    opacity: 1;
    transform: scale(1);
}

.pin-favorite.is-active {
    opacity: 1;
    color: var(--accent);
    background: rgba(7, 7, 8, 0.75);
}

.pin-favorite:hover {
    background: rgba(255, 77, 109, 0.35);
    color: #fff;
}

.pin-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(255, 77, 109, 0.35);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.pin-link {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.pin-link img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s var(--ease);
}

.pin-card:hover .pin-link img { transform: scale(1.03); }

.pin-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(7, 7, 8, 0.92) 0%,
        rgba(7, 7, 8, 0.35) 40%,
        transparent 65%
    );
    opacity: 0;
    transition: opacity 0.35s var(--ease);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.15rem;
}

.pin-card:hover .pin-overlay { opacity: 1; }

.pin-sponsor {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.35rem;
}

.pin-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.25;
    margin: 0;
    color: #fff;
}

.pin-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 0.35rem;
}

.pin-placeholder {
    aspect-ratio: 3/4;
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 5rem 1.5rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.02);
}

.empty-state__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.empty-state p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1.05rem;
}

/* Page header (archive) */
.archive-header {
    padding: 2rem 0 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.archive-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 500;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.archive-header p {
    color: var(--text-muted);
    margin: 0;
    max-width: 640px;
}

.archive-header a {
    color: var(--accent-soft);
    text-decoration: none;
}

.archive-header a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.archive-header__logo {
    height: 56px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(1.05);
}

/* Post page */
.post-show {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
}

.post-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    padding: 0.4rem 0.85rem 0.4rem 0.5rem;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.post-back:hover {
    color: var(--accent-soft);
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.post-hero { margin-bottom: 2rem; }

.post-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 1rem;
}

.post-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.post-chip:hover {
    border-color: rgba(255, 77, 109, 0.4);
    color: var(--text);
}

.post-chip i { color: var(--accent); font-size: 0.8rem; }

.post-gallery-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    container-type: inline-size;
    container-name: post-gallery;
}

@media (min-width: 768px) { .post-gallery-wrap { padding: 1.25rem; } }

.gallery-masonry--post {
    column-count: 2;
    column-gap: 12px;
}

@container post-gallery (min-width: 640px) {
    .gallery-masonry--post { column-count: 4; column-gap: 14px; }
}

@supports not (container-type: inline-size) {
    @media (min-width: 768px) {
        .gallery-masonry--post { column-count: 4; column-gap: 14px; }
    }
}

.gallery-masonry--post .gallery-item {
    display: block;
    text-decoration: none;
    cursor: zoom-in;
    break-inside: avoid;
    margin-bottom: 12px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.gallery-masonry--post .gallery-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 77, 109, 0.4);
    box-shadow: var(--shadow-glow);
}

.gallery-masonry--post .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-masonry--post .gallery-item .zoom-hint {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.25s, transform 0.25s var(--ease);
}

.gallery-masonry--post .gallery-item:hover .zoom-hint {
    opacity: 1;
    transform: scale(1);
}

.post-panel,
.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .post-panel,
    .post-card { padding: 2rem 2.25rem; }
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 500;
    margin: 0 0 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.section-title::before {
    content: '';
    width: 3px;
    height: 1.4rem;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.5rem; }

.tag-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    text-decoration: none;
}

.tag-pill:hover {
    background: rgba(255, 77, 109, 0.12);
    color: var(--accent-soft);
    border-color: rgba(255, 77, 109, 0.35);
}

.meta-grid {
    display: grid;
    gap: 0.85rem;
}

@media (min-width: 576px) { .meta-grid { grid-template-columns: repeat(2, 1fr); } }

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.meta-item__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 77, 109, 0.12);
    color: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.meta-item__label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.meta-item__value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    margin: 0;
}

.meta-item__value a {
    color: var(--accent-soft);
    text-decoration: none;
}

.meta-item__value a:hover { color: var(--accent); }

.post-read-more { margin-bottom: 1.5rem; }

.post-read-more__content {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-muted);
    position: relative;
}

.post-read-more__content.is-collapsed {
    max-height: calc(1.75em * 3);
    overflow: hidden;
}

.post-read-more__content.is-collapsed::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.5em;
    background: linear-gradient(to bottom, transparent, var(--bg-card));
    pointer-events: none;
}

.post-read-more__toggle {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    border: none;
    background: none;
    color: var(--accent-soft);
    cursor: pointer;
    transition: color 0.2s;
}

.post-read-more__toggle:hover { color: var(--accent); }

.post-lead {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--text);
    margin: 0 0 1rem;
}

.related-section { margin-top: 0.5rem; }

.related-section .pin-grid { padding-top: 0; }

/* Sponsor banner */
.sponsor-banner {
    display: flex;
    align-items: stretch;
    background: linear-gradient(105deg, #0c0c0f 0%, #16161c 50%, #1a1218 100%);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 1.5rem 0 0;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sponsor-logo {
    width: min(280px, 40%);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    flex-shrink: 0;
    padding: 1rem;
}

.sponsor-logo__img {
    max-width: 90%;
    max-height: 72px;
    object-fit: contain;
}

.sponsor-logo--svg .sponsor-logo__img--svg {
    width: min(240px, 90%);
    height: 52px;
    max-width: none;
    max-height: none;
}

.sponsor-separator {
    width: 1px;
    background: var(--border);
    flex-shrink: 0;
}

.sponsor-right {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.75rem;
    gap: 1rem;
}

.sponsor-text .small-text {
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.sponsor-text .big-text {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 500;
    color: var(--text);
    line-height: 1.2;
}

.join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: #fff;
    background: var(--gradient-accent);
    box-shadow: 0 8px 28px rgba(255, 77, 109, 0.35);
    transition: transform 0.25s var(--ease), box-shadow 0.25s;
    white-space: nowrap;
}

.join-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(255, 77, 109, 0.45);
}

@media (max-width: 768px) {
    .sponsor-banner { flex-direction: column; }
    .sponsor-logo { width: 100%; min-height: 80px; }
    .sponsor-separator { display: none; }
    .sponsor-right {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 1.25rem;
    margin-top: auto;
    background: rgba(0, 0, 0, 0.35);
}

.site-footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-footer__brand {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--text);
}

.site-footer__copy {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin: 0;
}

/* Pagination */
.pagination {
    --bs-pagination-bg: transparent;
    --bs-pagination-border-color: var(--border);
    --bs-pagination-color: var(--text-muted);
    --bs-pagination-hover-color: var(--text);
    --bs-pagination-hover-bg: rgba(255, 255, 255, 0.06);
    --bs-pagination-hover-border-color: var(--border-strong);
    --bs-pagination-focus-color: var(--accent-soft);
    --bs-pagination-active-bg: var(--accent);
    --bs-pagination-active-border-color: var(--accent);
    --bs-pagination-disabled-color: var(--text-dim);
    --bs-pagination-disabled-bg: transparent;
    margin-top: 2rem;
}

.page-link { border-radius: var(--radius-sm) !important; margin: 0 2px; }

/* Simple post fallback */
.post-simple {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.post-simple .btn-accent {
    display: inline-flex;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-accent);
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
}
