/* === PALETTE / THEME ===================================================== */

:root {
    /* базовый фон */
    --bg-page: #000000;

    /* панели поверх VHS-фона */
    --bg-card: rgba(6, 8, 20, 0.78);
    --bg-card-alt: rgba(10, 12, 28, 0.82);

    /* границы */
    --border-strong: rgba(180, 190, 255, 0.9);
    --border-soft: rgba(110, 130, 200, 0.45);

    /* текст */
    --text-main: #e8ebff;
    --text-muted: #9699c3;

    /* акценты */
    --accent: #9fd6ff;
    --accent-soft: #ff7bb5;

    --radius: 10px;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.95);
}




/* === RESET ============================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

/* === BODY / BACKGROUND =================================================== */

body {
    color: var(--text-main);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    font-size: 14px;

    /* VHS-фон + лёгкий градиент */
    background-image:
        url("https://strawpunch.neocities.org/оформление/bg3.gif"),
        radial-gradient(circle at top, rgba(50, 60, 120, 0.7), rgba(0, 0, 0, 0.98) 62%, #000000 100%);
    background-size: cover, 100% 100%;
    background-repeat: no-repeat;
    background-attachment: fixed, fixed;
    background-blend-mode: normal, soft-light;
}

/* ссылки */

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === ROOT SHELL ========================================================= */

.shell {
    max-width: 1300px;
    margin: 14px auto 24px auto;
    padding: 8px 18px 18px 18px;
}




/* === HEADER ============================================================= */

.hf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: linear-gradient(
        90deg,
        rgba(9, 11, 30, 0.9),
        rgba(18, 23, 60, 0.9)
    );
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    padding: 10px 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(4px) saturate(115%);
}

.hf-title-block {
    display: flex;
    flex-direction: column;
}

.hf-title-main {
    font-family: "VT323", monospace;
    font-size: 30px;
    letter-spacing: 0.10em;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.9),
                 0 0 4px rgba(140, 180, 255, 0.45);
}

.hf-title-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.hf-status-block {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

.hf-led {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2bff88;
    box-shadow: 0 0 10px rgba(80, 255, 170, 0.95);
}

/* === TOP ICON NAV ======================================================= */

.hf-top-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
    margin-bottom: 12px;

    background: rgba(3, 4, 14, 0.88);
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.9);
}

.hf-top-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;

    padding: 4px 7px;
    text-decoration: none;
    font-size: 11px;
    color: var(--text-muted);
    border-radius: 6px;
    border: 1px solid transparent;
    transition:
        background 0.12s ease,
        border-color 0.12s ease,
        transform 0.08s ease,
        color 0.08s ease;
}

.hf-top-nav-item img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    image-rendering: pixelated;
}

.hf-top-nav-item:hover {
    background: rgba(159, 214, 255, 0.18);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

/* === MAIN GRID LAYOUT =================================================== */

.hf-layout {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 280px;
    gap: 12px;
}

/* === LEFT SIDEBAR ======================================================= */

.hf-sidebar-left {
    display: flex;
    flex-direction: column;
}

.hf-avatar-block {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    padding: 10px 6px 8px 6px;
    text-align: center;
    margin-bottom: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(4px) saturate(120%);
}

.hf-avatar-block::before {
    /* лёгкие сканлайны поверх блока */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.04),
        rgba(255, 255, 255, 0.04) 1px,
        transparent 1px,
        transparent 3px
    );
    mix-blend-mode: soft-light;
    opacity: 0.4;
}

.hf-avatar {
    width: 84px;
    height: 84px;
    border-radius: 9px;
    border: 2px solid var(--border-strong);
    object-fit: cover;
    margin-bottom: 6px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.hf-avatar-text {
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.hf-icon-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hf-icon-badge {
    position: relative;
    display: block;
    padding: 4px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    text-align: center;
    transition:
        background 0.12s ease,
        border-color 0.12s ease,
        transform 0.08s ease,
        box-shadow 0.12s ease;
    backdrop-filter: blur(3px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.9);
}

.hf-icon-badge img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    image-rendering: pixelated;
}

.hf-icon-badge:hover {
    background: rgba(159, 214, 255, 0.18);
    border-color: var(--accent);
    transform: translateX(1px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.98);
}

.hf-icon-column-spacer {
    flex: 1;
}

/* === CENTER COLUMN (PANELS) ============================================ */

.hf-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hf-panel {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(4px) saturate(115%);
    overflow: hidden;
}

.hf-panel::before {
    /* очень лёгкий шум/scanlines внутри карточек */
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.03),
        rgba(255, 255, 255, 0.03) 1px,
        transparent 1px,
        transparent 3px
    );
    mix-blend-mode: soft-light;
    opacity: 0.4;
}

.hf-panel-header {
    position: relative;
    padding: 7px 11px;
    border-bottom: 1px solid var(--border-strong);
    font-family: "VT323", monospace;
    font-size: 14px;
    letter-spacing: 0.15em;
    text-transform: lowercase;
    background: linear-gradient(
        90deg,
        rgba(21, 24, 70, 0.98),
        rgba(35, 40, 98, 0.98)
    );
    color: var(--accent);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.9),
                 0 0 4px rgba(120, 180, 255, 0.5);
}

.hf-panel-body {
    position: relative;
    padding: 10px;
    font-size: 13px;
    z-index: 1;
}

/* === MEDIA SNAPSHOT ===================================================== */

.hf-media-snapshot {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 9px;
}

.hf-media-card {
    background: var(--bg-card-alt);
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    padding: 8px 9px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.9);
}

.hf-media-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--accent-soft);
    margin-bottom: 3px;
}

.hf-media-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.hf-media-meta {
    font-size: 11px;
    color: var(--text-muted);
}

/* === RIGHT SIDEBAR (TABS) ============================================== */

.hf-sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hf-tab {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(4px) saturate(115%);
    overflow: hidden;
}

.hf-tab::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.03),
        rgba(255, 255, 255, 0.03) 1px,
        transparent 1px,
        transparent 3px
    );
    mix-blend-mode: soft-light;
    opacity: 0.4;
}

.hf-tab-header {
    position: relative;
    padding: 6px 10px;
    font-family: "VT323", monospace;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: linear-gradient(
        90deg,
        rgba(26, 30, 80, 0.98),
        rgba(40, 46, 106, 0.98)
    );
    color: var(--accent);
    border-bottom: 1px solid var(--border-strong);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.9),
                 0 0 4px rgba(120, 180, 255, 0.5);
}

.hf-tab-body {
    position: relative;
    padding: 9px 10px;
    font-size: 12px;
    z-index: 1;
}

.hf-tab-footer {
    position: relative;
    padding: 6px 10px;
    border-top: 1px solid var(--border-soft);
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.hf-tab-footer a {
    color: var(--accent);
}

.hf-tab-label {
    font-weight: 500;
    margin-bottom: 4px;
}

/* === FOOTER ============================================================= */

.hf-footer {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.hf-footer-text {
    max-width: 70%;
}

.hf-footer-icons {
    display: flex;
    gap: 4px;
}

.stamp-box {
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 10px;
    text-align: center;
    background: var(--bg-card-alt);
    color: var(--text-muted);
}

/* === TEXT HELPERS ======================================================= */

.small-text {
    font-size: 11px;
}

.muted {
    color: var(--text-muted);
}

.accent {
    color: var(--accent);
}

.inner-list {
    margin: 4px 0 0 0;
    padding-left: 16px;
}

.inner-list li {
    margin-bottom: 3px;
}

.log-date {
    font-family: "VT323", monospace;
    color: var(--accent-soft);
}




/* === RESPONSIVE ========================================================= */

@media (max-width: 980px) {
    .hf-layout {
        grid-template-columns: 90px minmax(0, 1fr);
        grid-template-areas:
            "left main"
            "left right";
        gap: 10px;
    }

    .hf-sidebar-left {
        grid-area: left;
    }

    .hf-main {
        grid-area: main;
    }

    .hf-sidebar-right {
        grid-area: right;
    }

    .hf-footer-text {
        max-width: 100%;
    }
}



@media (max-width: 720px) {
    .shell {
        max-width: 100%;
        padding: 6px;
    }

    .hf-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "left"
            "main"
            "right";
    }

    .hf-top-nav {
        justify-content: center;
    }
}



