:root {
    color-scheme: dark;
    --bg: #070910;
    --surface: #111827;
    --surface-soft: #0b1220;
    --gold: #d4af37;
    --gold-light: #f3d66e;
    --text: #f8fafc;
    --muted: #9ba7ba;
    --border: rgba(212, 175, 55, .25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% -10%, rgba(26, 52, 92, .5), transparent 34rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

a { color: inherit; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: rgba(7, 9, 16, .88);
    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(1100px, calc(100% - 28px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -.02em;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand span { font-size: clamp(16px, 4.2vw, 21px); }
.brand strong { color: var(--gold-light); }

.home-link {
    flex: 0 0 auto;
    padding: 9px 15px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--gold-light);
    text-decoration: none;
    font-weight: 750;
    font-size: 14px;
}

.feed-shell {
    width: min(680px, calc(100% - 24px));
    margin: 0 auto;
    padding: 36px 0 64px;
}

.feed-intro {
    padding: 24px 8px 30px;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.feed-intro h1 {
    margin: 10px 0 8px;
    font-size: clamp(34px, 9vw, 54px);
    line-height: 1.05;
    letter-spacing: -.045em;
}

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

.feed-intro p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 16px;
}

.language-switcher {
    display: grid;
    gap: 14px;
    margin: 0 0 24px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(17, 24, 39, .9);
}

.language-switcher > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.language-switcher strong { color: var(--gold-light); font-size: 15px; }
.language-switcher span,
.language-switcher p { color: var(--muted); font-size: 12px; }
.language-switcher p { margin: -3px 0 0; }

.language-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.language-buttons button {
    min-height: 42px;
    padding: 9px 8px;
    border: 1px solid #34435e;
    border-radius: 10px;
    background: #0b1220;
    color: #d7deea;
    font: 800 14px system-ui, -apple-system, "Segoe UI", sans-serif;
    cursor: pointer;
}

.language-buttons button[aria-pressed="true"] {
    border-color: var(--gold);
    background: linear-gradient(135deg, #f3d66e, #d7a91d);
    color: #10131a;
    box-shadow: 0 6px 20px rgba(212, 175, 55, .2);
}

.language-buttons button:focus-visible {
    outline: 3px solid rgba(243, 214, 110, .35);
    outline-offset: 2px;
}

.feed-list { display: grid; gap: 24px; }

.feed-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(165deg, rgba(18, 29, 49, .98), rgba(9, 16, 29, .98));
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 17px 18px 8px;
}

.avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, .5);
    object-fit: cover;
}

.post-identity { min-width: 0; }
.post-identity strong { display: block; font-size: 15px; }
.post-identity span { color: var(--muted); font-size: 12px; }

.post-title {
    margin: 8px 18px 0;
    font-size: clamp(20px, 5vw, 25px);
    line-height: 1.25;
    letter-spacing: -.02em;
}

.post-caption {
    margin: 10px 18px 17px;
    color: #d7deea;
    font-size: 15px;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.post-image-link { display: block; background: #030712; }

.post-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 760px;
    object-fit: contain;
}

.learn-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 14px 18px 0;
    padding: 12px 14px;
    border: 1px solid rgba(212, 175, 55, .35);
    border-radius: 12px;
    background: rgba(212, 175, 55, .08);
    color: var(--gold-light);
    text-decoration: none;
    font-weight: 800;
}

.share-row {
    display: grid;
    grid-template-columns: auto repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 8px;
    padding: 16px 18px 18px;
}

.share-label {
    padding-right: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.share-button {
    min-width: 0;
    padding: 9px 8px;
    border-radius: 10px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 850;
}

.share-button.whatsapp { background: #168c4d; }
.share-button.facebook { background: #1d63c4; }
.share-button.linkedin { background: #0a6fa9; }

.empty-state {
    padding: 50px 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    text-align: center;
}

.empty-state h2 { margin: 0 0 8px; }
.empty-state p { margin: 0 0 22px; color: var(--muted); }

.empty-state a,
.feed-navigation a {
    color: var(--gold-light);
    font-weight: 800;
    text-decoration: none;
}

.feed-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding: 14px 4px;
    color: var(--muted);
    font-size: 13px;
}

.feed-navigation a:last-child { text-align: right; }
.single-navigation { display: block; text-align: center; }

.site-footer {
    padding: 30px 18px 42px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}

.site-footer p { margin: 5px 0; }
.site-footer strong { color: var(--gold-light); font-size: 14px; }

@media (max-width: 540px) {
    .header-inner { width: min(100% - 20px, 1100px); min-height: 66px; }
    .brand img { width: 42px; height: 42px; }
    .brand span { max-width: 190px; }
    .feed-shell { width: min(100% - 16px, 680px); padding-top: 22px; }
    .feed-intro { padding: 20px 10px 25px; }
    .language-switcher > div:first-child { align-items: flex-start; flex-direction: column; gap: 2px; }
    .feed-card { border-radius: 16px; }
    .share-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .share-label { grid-column: 1 / -1; }
    .share-button { font-size: 11px; padding-inline: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
