/* x0s37h0x branding – Mockup-Fusion mit echten Assets */

:root {
    --x0-bg: #0a0a0f;
    --x0-panel: #12121a;
    --x0-border: #1e2a3a;
    --x0-red: #ff0033;
    --x0-cyan: #00d4ff;
    --x0-text: #e8e8ef;
    --x0-muted: #8b949e;
}

body {
    background-color: var(--x0-bg);
    background-image: linear-gradient(rgba(10, 10, 15, 0.94), rgba(10, 10, 15, 0.98)),
        url('/static/images/matrix.jpg');
    background-attachment: fixed;
    background-size: cover;
    color: var(--x0-text);
}

/* Header */
.header {
    background: rgba(10, 10, 15, 0.92);
    border-bottom: 1px solid var(--x0-border);
    backdrop-filter: blur(8px);
}

.header .topbar {
    border-bottom: 1px solid rgba(255, 0, 51, 0.15);
    background: rgba(0, 0, 0, 0.35);
}

.header .topbar a,
.header .topbar i {
    color: var(--x0-muted);
}

.header .topbar a:hover {
    color: var(--x0-cyan);
}

.header .nav_warp nav .logo img {
    max-height: 48px;
    width: auto;
}

.header .main-menu > .menu-item > a {
    color: var(--x0-text);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.08em;
    font-weight: 600;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.header .main-menu > .menu-item > a:hover,
.header .main-menu > .menu-item.nav-active > a {
    color: var(--x0-red);
    border-bottom-color: var(--x0-red);
}

.topsocial a {
    color: var(--x0-red) !important;
    font-size: 18px;
}

.topsocial a:hover {
    color: var(--x0-cyan) !important;
}

/* Hero */
.banner {
    background-color: var(--x0-bg) !important;
    background-image: linear-gradient(90deg, rgba(10, 10, 15, 0.97) 0%, rgba(10, 10, 15, 0.75) 45%, rgba(10, 10, 15, 0.35) 100%),
        url('/static/images/banner.jpg') !important;
    background-position: center right;
    background-size: cover;
    min-height: 720px;
    height: auto;
    padding-bottom: 40px;
}

.banner .text_box {
    padding: 160px 0 40px;
}

.hero-welcome {
    color: var(--x0-cyan);
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 600;
}

.banner .title {
    color: #fff !important;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.15 !important;
    letter-spacing: 0.02em;
}

.banner .title .accent-red {
    color: var(--x0-red) !important;
    display: inline;
}

.banner .hero-lead {
    color: var(--x0-muted) !important;
    font-size: 17px;
    max-width: 520px;
    line-height: 1.6;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btnhero-outline {
    background: transparent !important;
    border: 2px solid var(--x0-red);
    color: var(--x0-red) !important;
    box-shadow: none !important;
    padding: 14px 22px;
}

.btnhero-outline:hover {
    background: var(--x0-red) !important;
    color: #fff !important;
}

.btnhero-cyan {
    background: transparent !important;
    border: 2px solid var(--x0-cyan);
    color: var(--x0-cyan) !important;
    box-shadow: none !important;
    padding: 14px 22px;
}

.btnhero-cyan:hover {
    background: rgba(0, 212, 255, 0.12) !important;
}

.hero-terminal {
    margin-top: 28px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 14px;
    color: var(--x0-muted);
}

.hero-terminal .prompt {
    color: var(--x0-cyan);
}

.hero-terminal .whoami {
    color: var(--x0-red);
    margin-left: 4px;
}

.banner .heroimg {
    position: relative;
    bottom: auto;
    right: auto;
    max-width: 100%;
    filter: drop-shadow(0 0 40px rgba(255, 0, 51, 0.25));
}

/* Welcome strip */
.herobtm {
    background-color: #0d1117 !important;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
        url('/static/images/herobottom.jpg') !important;
    background-size: cover;
    border-top: 1px solid var(--x0-border);
    border-bottom: 1px solid var(--x0-border);
}

/* Home hub (mockup 3-column) */
.x0-home-hub {
    padding: 48px 0 24px;
}

.x0-section-label {
    color: var(--x0-red);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 18px;
    font-weight: 700;
}

.x0-panel {
    background: rgba(18, 18, 26, 0.88);
    border: 1px solid var(--x0-border);
    border-radius: 8px;
    padding: 20px;
    height: 100%;
    margin-bottom: 24px;
}

.x0-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.x0-cat-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.x0-cat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    color: var(--x0-text);
    text-decoration: none;
    font-size: 14px;
}

.x0-cat-list a:hover {
    color: var(--x0-cyan);
}

.x0-cat-list a i {
    color: var(--x0-red);
    font-size: 12px;
}

.x0-status-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    font-family: ui-monospace, monospace;
    font-size: 12px;
}

.x0-status-list li {
    padding: 6px 0;
    color: var(--x0-muted);
}

.x0-status-ok {
    color: #3ddc84;
}

.x0-status-warn {
    color: var(--x0-red);
}

.x0-post-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.x0-post-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--x0-border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.x0-post-card:hover {
    border-color: rgba(255, 0, 51, 0.45);
}

.x0-post-card-thumb img {
    width: 100%;
    height: 100%;
    min-height: 110px;
    object-fit: cover;
    display: block;
}

.x0-post-card-body {
    padding: 14px 14px 14px 0;
}

.x0-post-card-type {
    color: var(--x0-cyan);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 6px;
}

.x0-post-card-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}

.x0-post-card-title a {
    color: inherit;
    text-decoration: none;
}

.x0-post-card-title a:hover {
    color: var(--x0-red);
}

.x0-post-card-excerpt {
    color: var(--x0-muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 10px;
}

.x0-post-card-meta {
    font-size: 12px;
    color: var(--x0-muted);
}

.x0-post-card-meta i {
    color: var(--x0-red);
    margin-right: 4px;
}

.x0-about-blurb {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.x0-about-blurb img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: contain;
    background: #000;
}

.x0-about-blurb p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--x0-muted);
    margin: 0;
}

.x0-terminal-widget {
    background: #0d0d12;
    border: 1px solid var(--x0-border);
    border-radius: 8px;
    overflow: hidden;
    font-family: ui-monospace, monospace;
    font-size: 12px;
}

.x0-terminal-bar {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    background: #1a1a24;
    border-bottom: 1px solid var(--x0-border);
}

.x0-terminal-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.x0-terminal-bar .dot-red { background: #ff5f57; }
.x0-terminal-bar .dot-yellow { background: #febc2e; }
.x0-terminal-bar .dot-green { background: #28c840; }

.x0-terminal-body {
    padding: 14px;
    color: var(--x0-muted);
    line-height: 1.7;
}

.x0-terminal-body .cmd {
    color: var(--x0-cyan);
}

.x0-terminal-body .skill {
    color: var(--x0-red);
}

.x0-hub-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.x0-hub-head .x0-section-label {
    margin-bottom: 0;
}

.x0-view-all {
    color: var(--x0-cyan);
    font-size: 13px;
    text-decoration: none;
}

.x0-view-all:hover {
    color: var(--x0-red);
}

/* Hot news + sections */
.nnews {
    background-image: linear-gradient(rgba(10, 10, 15, 0.9), rgba(10, 10, 15, 0.95)),
        url('/static/images/matrix.jpg') !important;
}

.home-preview,
.lpost {
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.6) 0%, rgba(0, 0, 0, 0.9) 100%) !important;
}

.mytitle {
    font-family: ui-monospace, monospace;
    font-size: 15px !important;
    letter-spacing: 0.08em;
}

.mytitle::before {
    content: '// ';
    color: var(--x0-red);
}

/* Footer */
.ftrtop {
    background-image: linear-gradient(rgba(10, 10, 15, 0.88), rgba(10, 10, 15, 0.95)),
        url('/static/images/footer.jpg') !important;
    background-size: cover;
}

.skills-sec .section-bgg {
    background: linear-gradient(135deg, var(--x0-red), #8b0019) !important;
}

.ftrbtm {
    background: #07070c;
    border-top: 1px solid var(--x0-border);
}

.ftr-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ftr-brand-row img {
    height: 36px;
    width: auto;
}

.ftr-built {
    color: var(--x0-muted);
    font-size: 13px;
}

.ftr-built .rust {
    color: var(--x0-red);
    font-weight: 700;
}

/* Post list cards */
.lpoststhumb img,
.eachhnewsthumb img,
.post-thumbnail img,
.sidebar_widget .image-fit {
    object-fit: cover;
    background: #000 url('/static/images/lpost1.jpg') center/cover;
}

/* Newsletter uses real asset */
.newslrimg {
    object-fit: cover;
}

@media (max-width: 991px) {
    .banner .text_box {
        padding: 120px 0 24px;
    }

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

    .x0-post-card-thumb img {
        min-height: 160px;
    }
}

@media (max-width: 767px) {
    .hero-cta-row {
        flex-direction: column;
    }

    .hero-cta-row .btnhero {
        width: 100%;
        text-align: center;
    }
}
