/* ==========================================================================
   NETHERGATE — Redesign 2026
   Новый фундамент: переменные, шрифты, базовая типографика.
   Файл: css/redesign.css
   ========================================================================== */

/* ---------- 1. Шрифты ---------- */
@font-face {
    font-family: 'Minecraft_Rus_Regular';
    src: url('../fonts/Minecraft_Rus_Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Minecraft_Ten_Regular';
    src: url('../fonts/Minecraft_Ten_Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* VT323 */
  
@font-face {
    font-family: 'VT323_Regular';
    src: url('../fonts/VT323_Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ---------- 2. Переменные ---------- */
:root {
    --bg:          #141414;
    --panel:       #1e1e1e;
    --surface:     #2c2c2c;
    --surface-hi:  #252525;
    --text:        #d1d1d1;
    --text-dim:    #9e9e9e;
    --muted:       #888;
    --accent:      #f87c7c;
    --ink:         #0f0f0f;
    --btn-shadow:  #1a1a1a;

    --font-body:    'Minecraft_Rus_Regular', 'VT323_Regular', ui-monospace, monospace;
    --font-display: 'Minecraft_Ten_Regular', 'VT323_Regular', ui-monospace, monospace;
}

.redesign {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.4;
}

/* ---------- Сброс старых стилей для заголовков ---------- */
.redesign h1,
.redesign h2,
.redesign h3,
.redesign h4,
.redesign h5,
.redesign h6 {
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0 0 0.5em;
    color: inherit;
    font-weight: normal;
}
    /* ================= ЛОГОТИП ================= */
    

    .redesign .letter {
        display: inline-block;
        line-height: 1;
    }

    .redesign .letter-a {
        cursor: pointer;
        display: inline-block;
        line-height: 1;
        transform-origin: center center;
        transition: transform .15s ease;
    }
    .redesign .letter-a:hover  { transform: scale(1.08); }
    .redesign .letter-a:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 4px;
        border-radius: 2px;
    }

    .redesign .letter-a.priming { animation: tntPrime .12s infinite alternate; }

    @keyframes tntPrime {
        from {
            color: var(--accent);
            text-shadow: 4px 4px 0 var(--ink);
            transform: scale(1);
        }
        to {
            color: #fff;
            text-shadow:
                0 0 20px #fff,
                0 0 40px #ffaa00,
                0 0 60px #ff5500,
                4px 4px 0 var(--ink);
            transform: scale(1.15);
        }
    }

    .redesign .letter-a.exploded {
        opacity: 0;
        transform: scale(2.5) rotate(15deg);
        transition: opacity .08s ease, transform .08s ease;
    }
    .redesign .letter-a.respawning {
        opacity: 0;
        transform: scale(.2);
        transition: none;
    }
    .redesign .letter-a.visible {
        opacity: 1;
        transform: scale(1);
        transition: opacity .3s ease,
                    transform .5s cubic-bezier(.34, 1.8, .64, 1);
    }

    .redesign .logo.shaking {
        animation: screenShake .6s cubic-bezier(.36, .07, .19, .97);
        will-change: transform;
    }
    .redesign .screen-flash {
    position: fixed;
    inset: 0;
    background: #fff;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
}

.redesign .screen-flash.active {
    animation: screenFlash .4s ease-out forwards;
}

@keyframes screenFlash {
    0%   { opacity: .95; }
    20%  { opacity: .7; }
    100% { opacity: 0; }
}
.redesign .particle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(-50%, -50%, 0);
    image-rendering: pixelated;
}

.redesign .shockwave {
    position: fixed;
    width: 380px;
    height: 380px;
    border: 3px solid #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%) scale(.05);
    box-shadow: 0 0 40px #ffaa00, inset 0 0 40px #ff5500;
    will-change: transform, opacity;
}

.redesign .pixel-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    pointer-events: none;
    z-index: 999;
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
}
/* ==========================================================================
   Layout: контейнер, сайдбар, лента
   ========================================================================== */

.redesign .layout-container {
    background: var(--panel);
    padding: 30px;
    border-radius: 16px;
    display: flex;
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}

/* ---------- Сайдбар ---------- */
.redesign .sidebar {
    width: 240px;
    flex-shrink: 0;
}

.redesign .profile-wrap {
    position: relative;
    margin-bottom: 24px;
}

.redesign .profile {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    background: var(--surface);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    transition: transform .1s ease, box-shadow .1s ease, background-color .1s ease;
    box-shadow: 0 4px 0 var(--btn-shadow);
}

.redesign .profile:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 var(--btn-shadow), inset 0 4px 8px rgba(0, 0, 0, .6);
    background: var(--surface-hi);
}

.redesign .profile:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.redesign .profile .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.redesign .profile .avatar img,
.redesign .profile .avatar svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.redesign .profile .username {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    color: #e0e0e0;
}

.redesign .profile .username::after {
    content: 'v';
    font-size: 14px;
    color: var(--muted);
    transition: transform .2s ease;
}

.redesign .profile[aria-expanded="true"] .username::after {
    transform: rotate(180deg);
}

/* ---------- Dropdown ---------- */
.redesign .profile-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: var(--surface-hi);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
    padding: 8px 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.redesign .profile-dropdown[hidden] {
    display: none;
}

.redesign .profile-dropdown a {
    padding: 10px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
    transition: background-color .15s ease;
}

.redesign .profile-dropdown a:hover {
    background: var(--surface);
    color: #fff;
}

.redesign .profile-dropdown .dropdown-logout {
    color: var(--accent);
    border-top: 1px solid var(--bg);
    margin-top: 4px;
    padding-top: 12px;
}

/* ---------- Меню ---------- */
.redesign .nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.redesign .nav li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.redesign .nav li::before {
    content: '>';
    color: var(--muted);
    font-size: 18px;
    line-height: 1.2;
}

.redesign .nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 18px;
    transition: color .2s ease;
    padding: 0;
    background: none;
}

.redesign .nav a:hover,
.redesign .nav a:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
    background: none;
}

/* ---------- Лента ---------- */
.redesign .feed {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.redesign .card {
    background: var(--surface);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.redesign .card-content {
    flex: 1;
    min-width: 0;
}

.redesign .card-title {
    font-size: 20px;
    font-weight: normal;
    color: #f0f0f0;
    margin: 0 0 8px;
    text-align: left;
}

.redesign .card-title a {
    color: inherit;
    text-decoration: none;
    background: none;
}

.redesign .card-title a:hover {
    color: var(--accent);
    background: none;
}

.redesign .card-text {
    margin: 0;
    font-size: 16px;
    color: var(--text-dim);
    line-height: 1.4;
}

.redesign .thumb {
    width: 80px;
    height: 80px;
    background: #6b6b6b;
    border-radius: 8px;
    flex-shrink: 0;
}

/* ---------- Футер ---------- */
.redesign .site-footer {
    max-width: 1000px;
    margin: 30px auto 0;
    text-align: center;
    padding: 20px;
    color: var(--muted);
    font-size: 14px;
}

.redesign .site-footer .footer-banner {
    display: inline-block;
    margin-bottom: 16px;
    background: none;
}

.redesign .site-footer .footer-banner img {
    display: block;
    max-width: 100%;
}

.redesign .site-footer .copyright p {
    margin: 4px 0;
}

.redesign .site-footer .footer-links a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent);
    background: none;
}

.redesign .site-footer .footer-links a:hover {
    color: #fff;
    border-bottom-color: #fff;
    background: none;
}

/* ---------- Адаптив ---------- */
@media (max-width: 768px) {
    .redesign .layout-container {
        flex-direction: column;
        padding: 20px;
    }
    .redesign .sidebar {
        width: 100%;
    }
}
/* ---------- Логотип ---------- */
.redesign > .logo,
.redesign .logo {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: var(--font-display);
    font-weight: normal;
    color: var(--accent);
    font-size: clamp(2.5rem, 8vw, 4rem);
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 4px 4px 0 #444; 
    text-align: center;
    user-select: none;
    max-width: 1000px;
    width: 100%;
    box-sizing: border-box;
}

.redesign .logo .letter {
    display: inline-block;
    line-height: 1;
}
/* ---------- Тряска логотипа при взрыве ---------- */
.redesign .logo.shaking {
    animation: screenShake .6s cubic-bezier(.36, .07, .19, .97);
    will-change: transform;
}

@keyframes screenShake {
    0%   { transform: translate(0, 0) rotate(0deg); }
    10%  { transform: translate(-12px, 8px) rotate(-1deg); }
    20%  { transform: translate(10px, -10px) rotate(1deg); }
    30%  { transform: translate(-9px, -6px) rotate(-.8deg); }
    40%  { transform: translate(9px, 11px) rotate(.8deg); }
    50%  { transform: translate(-8px, 4px) rotate(-.5deg); }
    60%  { transform: translate(7px, -7px) rotate(.5deg); }
    70%  { transform: translate(-5px, 3px) rotate(-.3deg); }
    80%  { transform: translate(4px, -4px) rotate(.3deg); }
    90%  { transform: translate(-2px, 2px) rotate(-.1deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* ---------- Одиночная запись (single.php) ---------- */
.redesign .single-content {
    display: block;
}

.redesign .single-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--surface);
}

.redesign .single-header .page-title {
    margin: 0 0 8px;
}

.redesign .single-meta {
    font-size: 14px;
    color: var(--muted);
}

.redesign .single-thumb {
    margin: 0 0 24px;
    text-align: center;
}

.redesign .single-thumb img,
.redesign .single-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.redesign .single-body {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 32px;
}

.redesign .single-body p {
    margin: 0 0 1em;
}

.redesign .single-body h2,
.redesign .single-body h3 {
    font-family: var(--font-display);
    color: var(--accent);
    margin: 1.5em 0 0.5em;
    text-align: left;
    letter-spacing: 1px;
}

.redesign .single-body h2 { font-size: 1.6rem; }
.redesign .single-body h3 { font-size: 1.3rem; }

.redesign .single-body ul,
.redesign .single-body ol {
    padding-left: 1.5em;
    margin: 0 0 1em;
}

.redesign .single-body li {
    margin-bottom: 0.4em;
}

.redesign .single-body a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent);
    background: none;
    padding: 0;
}

.redesign .single-body a:hover {
    color: #fff;
    border-bottom-color: #fff;
    background: none;
}

.redesign .single-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em auto;
    border-radius: 8px;
}

.redesign .single-body iframe,
.redesign .single-body video {
    max-width: 100%;
}

.redesign .single-body blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 16px;
    margin: 1em 0;
    color: var(--text-dim);
    font-style: italic;
}

/* ---------- Ссылка «назад» ---------- */
.redesign .single-footer {
    margin-bottom: 32px;
}

.redesign .single-back {
    display: inline-block;
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px dotted transparent;
    background: none;
    transition: color .2s ease, border-color .2s ease;
}

.redesign .single-back:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: none;
}

/* ---------- Комментарии ---------- */
.redesign #comments,
.redesign .comments-area {
    margin: 0;
    max-width: 100%;
    padding-top: 24px;
    border-top: 1px solid var(--surface);
}

.redesign #comments .comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.redesign #comments .comment-list ol.children {
    list-style: none;
    padding-left: 24px;
}
/* ---------- Страница модпака (single-mods.php) ---------- */

/* Кнопка скачивания — выравниваем и даём отступы */
.redesign .modpack-download {
    margin: 0 0 24px;
    text-align: left;
}

.redesign .modpack-download .modpack-btn {
    display: inline-block;
    background: var(--accent);
    color: #141414;
    border: 0;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: transform .1s ease, box-shadow .1s ease, background-color .1s ease;
    box-shadow: 0 4px 0 #a14d4d;
}

.redesign .modpack-download .modpack-btn:hover {
    background: #ff9a9a;
    box-shadow: 0 4px 0 #a14d4d;
}

.redesign .modpack-download .modpack-btn:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #a14d4d, inset 0 4px 8px rgba(0, 0, 0, .4);
}

/* Старые классы — нейтрализуем для .redesign */
.redesign .modpack-meta {
    font-size: 14px;
    color: var(--muted);
    margin: 12px 0 20px;
    padding: 12px 0;
    border-top: 1px solid var(--surface);
    border-bottom: 1px solid var(--surface);
}

/* ---------- Личный кабинет ---------- */

/* Карточка-секция */
.redesign .lk-card {
    background: var(--surface);
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 16px;
}

.redesign .lk-card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent);
    margin: 0 0 20px;
    text-align: left;
    letter-spacing: 1px;
}

.redesign .lk-card-subtitle {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--accent);
    margin: 24px 0 12px;
    text-align: left;
    letter-spacing: 1px;
}

/* Форма */
.redesign .lk-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.redesign .lk-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.redesign .lk-field label {
    font-size: 14px;
    color: var(--text-dim);
}

.redesign .lk-field input[type="text"],
.redesign .lk-field input[type="email"],
.redesign .lk-field input[type="password"],
.redesign .lk-field input[type="tel"],
.redesign .lk-field textarea {
    padding: 10px 14px;
    background: var(--surface-hi);
    border: 1px solid var(--bg);
    border-radius: 6px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    transition: border-color .2s ease, background-color .2s ease;
}

.redesign .lk-field input:focus,
.redesign .lk-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--panel);
}

.redesign .lk-checkbox-field {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.redesign .lk-checkbox-field label {
    font-size: 15px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Кнопки */
.redesign .lk-btn {
    display: inline-block;
    background: var(--accent);
    color: #141414;
    border: 0;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: transform .1s ease, box-shadow .1s ease, background-color .1s ease;
    box-shadow: 0 4px 0 #a14d4d;
    align-self: flex-start;
}

.redesign .lk-btn:hover {
    background: #ff9a9a;
}

.redesign .lk-btn:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #a14d4d, inset 0 4px 8px rgba(0, 0, 0, .4);
}

.redesign .lk-btn-small {
    padding: 8px 18px;
    font-size: 14px;
    box-shadow: 0 3px 0 #a14d4d;
}

.redesign .lk-btn-danger {
    background: #d94a4a;
    box-shadow: 0 4px 0 #8a2a2a;
}

.redesign .lk-btn-danger:hover {
    background: #e66e6e;
}

.redesign .lk-btn-danger:active {
    box-shadow: 0 0 0 #8a2a2a, inset 0 4px 8px rgba(0, 0, 0, .4);
}

/* Уведомления */
.redesign .lk-notice {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
}

.redesign .lk-notice-success {
    background: rgba(107, 219, 107, 0.1);
    border: 1px solid rgba(107, 219, 107, 0.4);
    color: #6bdb6b;
}

.redesign .lk-notice-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.4);
    color: #ff6b6b;
}

/* Ссылки и подсказки */
.redesign .lk-hint {
    font-size: 14px;
    color: var(--muted);
    margin: 16px 0 0;
    line-height: 1.6;
}

.redesign .lk-hint a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent);
    background: none;
}

.redesign .lk-hint a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* Персонажи */
.redesign .lk-characters-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.redesign .lk-character-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--surface-hi);
    border-radius: 8px;
    border-left: 4px solid var(--muted);
}

.redesign .lk-character-pending  { border-left-color: #f0ad4e; }
.redesign .lk-character-approved { border-left-color: #6bff9e; }
.redesign .lk-character-rejected { border-left-color: #d94a4a; }

.redesign .lk-character-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.redesign .lk-character-nick {
    font-size: 16px;
    color: #e0e0e0;
}

.redesign .lk-character-status {
    font-size: 13px;
    color: var(--muted);
}

.redesign .lk-empty {
    padding: 16px;
    background: var(--surface-hi);
    border-radius: 8px;
    text-align: center;
    color: var(--muted);
    margin: 0 0 16px;
}
/* ---------- Аватар в форме профиля ---------- */
.redesign .lk-avatar-field {
    align-items: flex-start;
}

.redesign .lk-avatar-current {
    margin-bottom: 12px;
}

.redesign .lk-avatar-current img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    background: var(--surface-hi);
}

.redesign .lk-avatar-field input[type="file"] {
    font-size: 14px;
    color: var(--text-dim);
    padding: 8px 0;
}

/* ---------- Страница профиля ---------- */
.redesign .profile-view-card {
    max-width: 720px;
}

.redesign .profile-view-header {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--surface-hi);
}

.redesign .profile-view-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    background: var(--surface-hi);
}

.redesign .profile-view-info {
    flex: 1;
    min-width: 0;
}

.redesign .profile-view-info .lk-card-title {
    margin: 0 0 8px;
}

.redesign .profile-view-email {
    color: var(--text-dim);
    font-size: 14px;
    margin: 0 0 6px;
}

.redesign .profile-view-joined {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

.redesign .profile-view-section {
    margin-bottom: 24px;
}

.redesign .profile-view-description {
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 600px) {
    .redesign .profile-view-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}