* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: #030713;
}

body.user-blog-body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    color: #f7f9ff;
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 11, 87, 0.2), transparent 28rem),
        radial-gradient(circle at 82% 18%, rgba(35, 132, 255, 0.24), transparent 30rem),
        linear-gradient(180deg, #050816 0%, #030713 58%, #02040c 100%);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body.user-blog-body::before {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(31, 111, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 111, 255, 0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 76%, transparent 100%);
    content: "";
}

body.user-blog-body::after {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("/assets/landing/adsource-bg.png");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.16;
    content: "";
}

.user-blog-shell {
    position: relative;
    z-index: 1;
    width: min(100% - 3rem, 1220px);
    margin: 0 auto;
    padding: 1.2rem 0 2rem;
}

.user-blog-header,
.user-blog-hero,
.user-blog-post-card,
.user-blog-empty,
.user-blog-article {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(5, 9, 31, 0.72);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(12px);
}

.user-blog-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 4.4rem;
    padding: 0.8rem 1rem;
}

.user-blog-logo {
    flex: 0 0 auto;
    color: #f6f8ff;
    font-size: 1.65rem;
    font-weight: 900;
    font-style: italic;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
}

.user-blog-logo span {
    color: #ff0b57;
    text-shadow: 0 0 18px rgba(255, 0, 88, 0.62);
}

.user-blog-nav {
    display: flex;
    justify-content: center;
    gap: clamp(0.8rem, 2vw, 2rem);
    flex: 1 1 auto;
    min-width: 0;
}

.user-blog-nav a,
.user-blog-login,
.user-blog-footer a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.user-blog-nav a:hover,
.user-blog-login:hover,
.user-blog-footer a:hover {
    color: #ffffff;
}

.user-blog-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.7rem;
    padding: 0.65rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(6, 10, 30, 0.66);
}

.user-blog-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 25rem);
    gap: 2rem;
    margin-top: 1rem;
    padding: clamp(1.4rem, 4vw, 3rem);
    background:
        linear-gradient(135deg, rgba(255, 11, 87, 0.11), rgba(35, 132, 255, 0.08)),
        rgba(5, 9, 31, 0.76);
}

.user-blog-kicker {
    display: inline-flex;
    max-width: 100%;
    margin-bottom: 1rem;
    color: #9fcaff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    text-decoration: none;
}

.user-blog-hero h1 {
    max-width: 820px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.25rem, 5.4vw, 5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
}

.user-blog-hero p {
    max-width: 720px;
    margin: 1.1rem 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.65;
}

.user-blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.user-blog-mini-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.user-blog-mini-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.045);
    text-decoration: none;
}

.user-blog-mini-nav a:hover,
.user-blog-mini-nav a.is-active {
    color: #ffffff;
    border-color: rgba(255, 11, 87, 0.5);
    background: rgba(255, 11, 87, 0.14);
}

.user-blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.4rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.045);
}

.user-blog-hero__panel {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 20rem;
    padding: 1.2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background:
        radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.22), transparent 7rem),
        linear-gradient(135deg, rgba(255, 11, 87, 0.28), rgba(0, 117, 255, 0.28));
}

.user-blog-hero__panel--image {
    position: relative;
    justify-content: center;
    padding: 0;
    margin: 0;
    width: min(100%, 25rem);
    aspect-ratio: 9 / 16;
    min-height: 0;
    max-height: 32rem;
    justify-self: end;
    align-self: center;
    background: rgba(5, 9, 31, 0.76);
}

.user-blog-hero__panel--image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: contain;
    background: rgba(3, 7, 19, 0.54);
}

.user-blog-hero__panel--image::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(3, 7, 19, 0.08), rgba(3, 7, 19, 0.18)),
        linear-gradient(135deg, rgba(255, 11, 87, 0.08), rgba(35, 132, 255, 0.08));
    content: "";
}

.user-blog-panel-line {
    width: 72%;
    height: 0.5rem;
    margin-bottom: auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.18);
}

.user-blog-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    width: 74%;
    margin: 1rem 0 auto auto;
}

.user-blog-panel-grid span {
    display: block;
    aspect-ratio: 1.2;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
}

.user-blog-hero__panel strong {
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1.2;
}

.user-blog-hero__panel small {
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.72);
}

.user-blog-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 26rem);
    gap: 1.4rem;
    margin-top: 1.6rem;
}

.user-blog-posts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.35rem;
    min-width: 0;
}

.user-blog-sidebar {
    align-self: start;
    position: sticky;
    top: 1rem;
    min-width: 0;
}

.user-blog-ad {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 4.5rem;
    margin: 1rem 0;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.user-blog-ad--header {
    min-height: 5rem;
}

.user-blog-ad--feed {
    grid-column: 1 / -1;
    margin: 0;
}

.user-blog-ad--sidebar {
    min-height: 18rem;
    margin: 0;
}

.user-blog-ad--post-top,
.user-blog-ad--post-middle,
.user-blog-ad--post-bottom {
    max-width: 780px;
    margin-right: auto;
    margin-left: auto;
}

.user-blog-ad .lum-direct-host,
.user-blog-ad .adsource-ad-host,
.user-blog-ad .lum-slot {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

.user-blog-post-card {
    display: grid;
    grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr);
    gap: 1.45rem;
    align-items: center;
    padding: 1.55rem 1.7rem;
    border-color: rgba(255, 92, 46, 0.24);
    background:
        linear-gradient(135deg, rgba(255, 92, 46, 0.08), transparent 42%),
        rgba(5, 9, 20, 0.78);
}

.user-blog-post-card--no-image {
    grid-template-columns: 1fr;
}

.user-blog-post-card--pinned {
    border-color: rgba(255, 195, 72, 0.45);
    background:
        linear-gradient(135deg, rgba(255, 195, 72, 0.12), transparent 42%),
        rgba(5, 9, 20, 0.82);
}

.user-blog-empty {
    padding: 1.15rem;
}

.user-blog-post-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.user-blog-post-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.24s ease;
}

.user-blog-post-card:hover .user-blog-post-card__image img {
    transform: scale(1.035);
}

.user-blog-post-card__body {
    min-width: 0;
}

.user-blog-post-card__tag {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    color: #23d7bd;
    background: rgba(35, 215, 189, 0.13);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.user-blog-post-card__date,
.user-blog-post-card__meta {
    color: #a8bee0;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.user-blog-post-card h2 {
    margin: 0.65rem 0 0;
    font-size: 1.28rem;
    line-height: 1.25;
}

.user-blog-post-card h2 a {
    color: #ffffff;
    text-decoration: none;
}

.user-blog-post-card p,
.user-blog-empty p {
    margin: 0.75rem 0 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.55;
}

.user-blog-post-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.85rem;
}

.user-blog-read {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    color: #ff7aa8;
    font-weight: 700;
    text-decoration: none;
}

.user-blog-empty {
    grid-column: 1 / -1;
    text-align: center;
}

.user-blog-empty i {
    color: #9fcaff;
    font-size: 2rem;
}

.user-blog-empty h2 {
    margin: 0.7rem 0 0;
}

.user-blog-article {
    margin-top: 1rem;
    padding: clamp(1.2rem, 3vw, 2.4rem);
}

.user-blog-article__top a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #9fcaff;
    font-weight: 700;
    text-decoration: none;
}

.user-blog-content {
    max-width: 780px;
    margin: 1.5rem auto 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
    line-height: 1.82;
}

.user-blog-content p {
    margin: 0 0 1.2rem;
}

.user-blog-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 0 0;
    color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 980px) {
    .user-blog-shell {
        width: min(100% - 1.5rem, 760px);
    }

    .user-blog-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .user-blog-nav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .user-blog-hero {
        grid-template-columns: 1fr;
    }

    .user-blog-hero__panel {
        min-height: 14rem;
    }

    .user-blog-content-layout {
        grid-template-columns: 1fr;
    }

    .user-blog-posts {
        grid-template-columns: 1fr;
    }

    .user-blog-post-card {
        grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr);
        padding: 1.1rem;
    }

    .user-blog-sidebar {
        position: static;
    }

    .user-blog-ad--sidebar {
        min-height: 5rem;
    }
}

@media (max-width: 560px) {
    .user-blog-shell {
        width: min(100% - 1rem, 520px);
        padding-top: 0.5rem;
    }

    .user-blog-header,
    .user-blog-hero,
    .user-blog-post-card,
    .user-blog-empty,
    .user-blog-article {
        border-radius: 8px;
    }

    .user-blog-hero {
        padding: 1rem;
    }

    .user-blog-login {
        width: 100%;
    }

    .user-blog-footer {
        flex-direction: column;
    }

    .user-blog-post-card {
        grid-template-columns: 1fr;
    }
}
