:root {
    --black: #050505;
    --carbon: #0f0f0f;
    --dark-gray: #1a1a1a;
    --border: #2a2a2a;
    --text-main: #f5f5f5;
    --text-dim: #777777;
    --accent: #ffffff;
    --badge-release: #f2c94c;
    --badge-news: #56ccf2;
    --badge-spotlight: #bb6bd9;
    --badge-info: #6fcf97;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', 'Helvetica', sans-serif; }

body {
    background-color: var(--black);
    color: var(--text-main);
    line-height: 1.6;
}

header {
    border-bottom: 2px solid var(--border);
    text-align: center;
    padding: 56px 20px 36px;
    background: linear-gradient(180deg, #0c0c0c 0%, #050505 100%);
}

.logo-image {
    width: min(820px, 100%);
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.3));
}

.hero-title {
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-subtitle {
    color: var(--text-dim);
    max-width: 900px;
    margin: 0 auto;
}

.quick-nav {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 24px 0 12px;
    flex-wrap: wrap;
}

.nav-link,
.btn,
.tag-pill,
.share-btn,
.post-link-card {
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-link,
.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--black);
    border: none;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.72rem;
    padding: 11px 18px;
    cursor: pointer;
    border-radius: 3px;
}

.nav-link:hover,
.btn:hover {
    background: #cccccc;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(255, 255, 255, 0.18);
}

.btn.secondary,
.tag-pill,
.share-btn.secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn.secondary:hover,
.tag-pill:hover,
.share-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--accent);
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0 80px;
}

.section-title {
    font-size: clamp(1.3rem, 2.6vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
}

.featured-card,
.post-card,
.signup-block,
.callout,
.post-body-wrap,
.related-wrap {
    background: var(--carbon);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 4px;
}

.featured-card,
.post-card,
.signup-block,
.post-body-wrap,
.related-wrap {
    padding: 20px;
}

.post-link-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-link-card:hover {
    transform: translateY(-2px);
}

.cover-wrap {
    aspect-ratio: 16 / 9;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 14px;
    background: #0a0a0a;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-ribbon {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #0f0f0f;
    background: var(--accent);
    padding: 5px 8px;
    border-radius: 999px;
}

.cover-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.badge {
    font-size: 0.68rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 900;
    color: #0f0f0f;
    padding: 5px 10px;
    border-radius: 999px;
}

.badge.release { background: var(--badge-release); }
.badge.news { background: var(--badge-news); }
.badge.spotlight { background: var(--badge-spotlight); color: #ffffff; }
.badge.info { background: var(--badge-info); }

.post-date {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.post-title {
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.35;
    margin-bottom: 8px;
}

.post-title.featured {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.post-excerpt {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.tags-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.featured-card .post-meta,
.post-card .post-meta,
.post-body-wrap .post-meta {
    justify-content: center;
}

.featured-card .post-title,
.post-card .post-title,
.featured-card .post-excerpt,
.post-card .post-excerpt,
.post-body-wrap .post-title,
.post-body-wrap .post-byline {
    text-align: center;
}

.featured-card .tags-row,
.post-card .tags-row,
.post-body-wrap .tags-row {
    justify-content: center;
}

.tag-pill {
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 6px 10px;
    cursor: pointer;
}

.tag-pill.active {
    background: var(--accent);
    color: var(--black);
}

.tags-expand-toggle {
    margin-top: 8px;
    display: inline-block;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 0.66rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
}

.tags-expand-toggle:hover {
    color: var(--text-main);
    border-color: #5a5a5a;
}

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

.post-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.post-card.is-filtered-out {
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
}

.post-card .post-title {
    font-size: 1.02rem;
}

.meta-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.signup-block p {
    color: var(--text-dim);
    margin-bottom: 12px;
}

.signup-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.signup-form input {
    flex: 1 1 240px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: #080808;
    color: var(--text-main);
}

.share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 16px;
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.language-switch-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.lang-btn {
    display: inline-block;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.65rem;
    padding: 7px 10px;
    cursor: pointer;
    border-radius: 3px;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: var(--accent);
    color: var(--black);
}

.share-btn {
    display: inline-block;
    background: var(--accent);
    color: var(--black);
    border: none;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.68rem;
    padding: 9px 12px;
    cursor: pointer;
    border-radius: 3px;
}

.share-btn:hover {
    background: #cccccc;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(255, 255, 255, 0.18);
}

.post-byline {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.post-body {
    max-width: 74ch;
    margin: 0 auto;
}

.post-body p {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.82;
    margin-bottom: 14px;
}

.post-body p:first-child {
    color: #f0f0f0;
    font-size: 1.03rem;
}

.post-body h3 {
    font-size: 1rem;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    margin-top: 24px;
    margin-bottom: 10px;
    color: #ffffff;
}

.post-body ul,
.post-body ol {
    margin: 0 0 18px 1.2rem;
    padding-left: 0.25rem;
}

.post-body li {
    color: #e2e2e2;
    line-height: 1.74;
    margin-bottom: 7px;
}

.post-body li::marker {
    color: #bcbcbc;
}

.post-body a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.post-body a:hover {
    border-bottom-color: rgba(255, 255, 255, 0.65);
}

.post-body a.btn {
    color: var(--black);
    border-bottom: none;
}

.post-body a.btn.secondary {
    color: var(--accent);
}

.post-body-wrap {
    padding: clamp(18px, 2.4vw, 30px);
}

.post-inline-block {
    margin-top: 20px;
}

.post-inline-title {
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.post-inline-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

body[data-slug="inside-the-rig-ridibeatz-gear"] .post-inline-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
}

body[data-slug="inside-the-rig-ridibeatz-gear"] .post-inline-gallery .cover-wrap {
    max-width: min(980px, 100%);
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 3 / 2;
    min-height: clamp(280px, 48vw, 560px);
}

.post-inline-embed {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.post-inline-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-inline-cta {
    display: flex;
    justify-content: flex-start;
}

.callout {
    margin: 18px 0;
    padding: 14px;
}

.callout p {
    color: var(--text-dim);
}

.callout a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.35);
}

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

.related-card {
    display: block;
    background: var(--dark-gray);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
}

.related-card:hover {
    border-color: #4d4d4d;
}

.related-card h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 8px;
    margin-bottom: 6px;
}

.related-card p {
    font-size: 0.82rem;
    color: var(--text-dim);
}

.related-card .cover-wrap {
    margin-bottom: 6px;
}

.status-line {
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--text-dim);
    min-height: 18px;
}

@keyframes postFadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes postSoftReveal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body[data-slug] .logo-image,
body[data-slug] .hero-title,
body[data-slug] .hero-subtitle,
body[data-slug] .quick-nav,
body[data-slug] .post-body-wrap,
body[data-slug] .related-wrap {
    opacity: 0;
    animation: postFadeSlideUp 0.62s ease forwards;
}

body[data-slug] .logo-image { animation-delay: 0.04s; }
body[data-slug] .hero-title { animation-delay: 0.1s; }
body[data-slug] .hero-subtitle { animation-delay: 0.16s; }
body[data-slug] .quick-nav { animation-delay: 0.22s; }
body[data-slug] .post-body-wrap { animation-delay: 0.3s; }
body[data-slug] .related-wrap { animation-delay: 0.42s; }

body[data-slug] .post-inline-block,
body[data-slug] .callout,
body[data-slug] .share-row,
body[data-slug] #postTags,
body[data-slug] .related-card {
    opacity: 0;
    animation: postSoftReveal 0.5s ease forwards;
}

body[data-slug] #postTags { animation-delay: 0.4s; }
body[data-slug] .callout { animation-delay: 0.46s; }
body[data-slug] .share-row { animation-delay: 0.52s; }
body[data-slug] .post-inline-block:nth-of-type(1) { animation-delay: 0.42s; }
body[data-slug] .post-inline-block:nth-of-type(2) { animation-delay: 0.48s; }
body[data-slug] .post-inline-block:nth-of-type(3) { animation-delay: 0.54s; }
body[data-slug] .post-inline-block:nth-of-type(4) { animation-delay: 0.6s; }
body[data-slug] .related-card:nth-child(1) { animation-delay: 0.5s; }
body[data-slug] .related-card:nth-child(2) { animation-delay: 0.58s; }
body[data-slug] .related-card:nth-child(3) { animation-delay: 0.66s; }

@media (prefers-reduced-motion: reduce) {
    body[data-slug] .logo-image,
    body[data-slug] .hero-title,
    body[data-slug] .hero-subtitle,
    body[data-slug] .quick-nav,
    body[data-slug] .post-body-wrap,
    body[data-slug] .related-wrap,
    body[data-slug] .post-inline-block,
    body[data-slug] .callout,
    body[data-slug] .share-row,
    body[data-slug] #postTags,
    body[data-slug] .related-card {
        opacity: 1;
        animation: none;
    }
}

footer {
    text-align: center;
    border-top: 1px solid var(--border);
    padding: 30px 20px 50px;
    color: #555555;
    letter-spacing: 1px;
}

@media (max-width: 1024px) {
    .post-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .logo-image {
        width: min(520px, 92%);
        margin-left: auto;
        margin-right: auto;
    }

    .container {
        padding: 28px 0 64px;
    }

    .post-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .nav-link,
    .btn,
    .share-btn,
    .lang-btn {
        width: 100%;
        text-align: center;
    }

    .tags-row {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding-bottom: 4px;
    }

    .tags-row .tag-pill {
        width: auto;
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 0.62rem;
        padding: 5px 9px;
    }

    #filterRow.tags-row {
        flex-wrap: wrap;
        overflow: visible;
    }

    .post-inline-gallery {
        grid-template-columns: 1fr;
    }

    .post-body {
        max-width: 100%;
    }

    .post-body p {
        font-size: 0.97rem;
        line-height: 1.74;
        margin-bottom: 13px;
    }

    .post-body ul,
    .post-body ol {
        margin-left: 1rem;
    }
}
