/* =========================================================================
   Mevercraft — кастомный CSS для темы quark2
   Палитра вдохновлена Minecraft (тёмный UI, зелёный accent, diamond-cyan).
   ========================================================================= */

:root {
    --mc-bg-deep:    #1c1c1f;
    --mc-bg-card:    #2a2a2e;
    --mc-bg-soft:    #34343a;
    --mc-grass:      #5b8731;
    --mc-grass-dk:   #3a5a20;
    --mc-emerald:    #4ec9b0;
    --mc-diamond:    #5fb6c7;
    --mc-gold:       #fcb13b;
    --mc-redstone:   #b54545;
    --mc-text:       #e8e8ea;
    --mc-text-dim:   #a8a8b0;
    --mc-border:     #45454c;
}

/* --- Глобальный фон и типографика --- */
body {
    background:
        radial-gradient(ellipse at top, rgba(91,135,49,0.10) 0%, transparent 60%),
        linear-gradient(180deg, var(--mc-bg-deep) 0%, #141417 100%) !important;
    color: var(--mc-text);
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.01em;
}

/* Пиксельный шрифт для заголовков — как в Minecraft */
h1, h2, h3, .mc-pixel {
    font-family: "Courier New", "Lucida Console", monospace !important;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-shadow:
        2px 2px 0 rgba(0,0,0,0.45),
        -1px -1px 0 rgba(255,255,255,0.04);
    color: var(--mc-text);
}
h1 { color: #fff; }

/* --- HERO (главный баннер) --- */
.mc-hero {
    position: relative;
    min-height: 520px;
    margin: -2rem 0 3rem 0;
    padding: 6rem 2rem;
    text-align: center;
    overflow: hidden;
    border-radius: 8px;
    background-color: #2a2a2e;
    background-image:
        linear-gradient(180deg,
            rgba(20,20,23,0.40) 0%,
            rgba(20,20,23,0.65) 50%,
            rgba(20,20,23,0.92) 100%),
        repeating-linear-gradient(0deg,
            rgba(0,0,0,0.18) 0 1px, transparent 1px 80px),
        url("/user/themes/quark2/images/site/icons/grass_block.png");
    background-repeat: no-repeat, repeat, repeat;
    background-size: cover, auto, 80px 80px;
    background-position: center, top, top left;
    image-rendering: pixelated;
    border: 1px solid var(--mc-border);
    box-shadow:
        inset 0 -60px 80px -40px rgba(0,0,0,0.6),
        0 8px 24px rgba(0,0,0,0.4);
}
.mc-hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    margin: 0 0 0.5rem;
    color: #fff;
}
.mc-hero .mc-subtitle {
    font-size: clamp(1.0rem, 1.8vw, 1.4rem);
    color: var(--mc-emerald);
    margin-bottom: 1.2rem;
    font-family: "Courier New", monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.mc-hero .mc-tagline {
    font-size: 1.1rem;
    color: var(--mc-text-dim);
    max-width: 640px;
    margin: 0 auto 2.2rem;
    line-height: 1.6;
}
.mc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 80%, rgba(91,135,49,0.35) 0%, transparent 35%),
        radial-gradient(circle at 82% 20%, rgba(95,182,199,0.25) 0%, transparent 35%);
    pointer-events: none;
}

/* --- Кнопка CTA (зелёная, как Grass-блок) --- */
.mc-cta {
    display: inline-block;
    padding: 0.95rem 2.4rem;
    font-family: "Courier New", monospace;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(180deg, #6ca83a 0%, #3a5a20 100%);
    border: 2px solid #2d4419;
    border-radius: 4px;
    text-decoration: none;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.25),
        inset 0 -3px 0 rgba(0,0,0,0.35),
        0 4px 0 #1f3010,
        0 6px 12px rgba(0,0,0,0.4);
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.mc-cta:hover {
    transform: translateY(2px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.25),
        inset 0 -3px 0 rgba(0,0,0,0.35),
        0 2px 0 #1f3010,
        0 3px 8px rgba(0,0,0,0.45);
    color: #fff;
    text-decoration: none;
}
.mc-cta-secondary {
    background: linear-gradient(180deg, #555 0%, #2c2c2c 100%);
    border-color: #1a1a1a;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.18),
        inset 0 -3px 0 rgba(0,0,0,0.35),
        0 4px 0 #111,
        0 6px 12px rgba(0,0,0,0.4);
}
.mc-cta-secondary:hover {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.18),
        inset 0 -3px 0 rgba(0,0,0,0.35),
        0 2px 0 #111,
        0 3px 8px rgba(0,0,0,0.45);
}

/* --- Сетка фич с иконками-блоками --- */
.mc-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}
.mc-feature {
    background: var(--mc-bg-card);
    border: 1px solid var(--mc-border);
    border-radius: 6px;
    padding: 1.6rem 1.2rem;
    text-align: center;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 0 rgba(0,0,0,0.25);
}
.mc-feature:hover {
    transform: translateY(-3px);
    border-color: var(--mc-emerald);
    box-shadow: 0 6px 18px rgba(78,201,176,0.18);
}
.mc-feature img {
    width: 96px;
    height: 96px;
    image-rendering: pixelated;
    margin: 0 auto 1rem;
    display: block;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.55));
}
.mc-feature h3 {
    font-size: 1.15rem;
    margin: 0.4rem 0 0.6rem;
    color: var(--mc-emerald);
}
.mc-feature p {
    color: var(--mc-text-dim);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* --- Карточки секций (About, Connect) --- */
.mc-card {
    background: var(--mc-bg-card);
    border: 1px solid var(--mc-border);
    border-left: 4px solid var(--mc-emerald);
    border-radius: 6px;
    padding: 1.6rem 1.8rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.mc-card h2, .mc-card h3 { margin-top: 0; }
.mc-card-diamond { border-left-color: var(--mc-diamond); }
.mc-card-gold    { border-left-color: var(--mc-gold); }

/* --- Список со значками --- */
.mc-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}
.mc-list li {
    padding: 0.5rem 0 0.5rem 1.8rem;
    position: relative;
    color: var(--mc-text);
}
.mc-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--mc-emerald);
    font-weight: 700;
}

/* --- IP-баннер для подключения --- */
.mc-ip-box {
    background: linear-gradient(135deg, #1a1a1d 0%, #2a2a2e 100%);
    border: 2px solid var(--mc-emerald);
    border-radius: 8px;
    padding: 1.4rem 2rem;
    margin: 2rem 0;
    text-align: center;
    font-family: "Courier New", monospace;
    box-shadow:
        inset 0 0 30px rgba(78,201,176,0.08),
        0 0 0 6px rgba(78,201,176,0.06);
}
.mc-ip-box .label {
    color: var(--mc-text-dim);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.4rem;
}
.mc-ip-box .ip {
    color: var(--mc-emerald);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    user-select: all;
    text-shadow: 0 0 12px rgba(78,201,176,0.35);
}

/* --- Шаги подключения --- */
.mc-steps {
    counter-reset: step;
    padding: 0;
    list-style: none;
    margin: 1.5rem 0;
}
.mc-steps li {
    counter-increment: step;
    padding: 1rem 1rem 1rem 4rem;
    position: relative;
    background: var(--mc-bg-soft);
    border: 1px solid var(--mc-border);
    border-radius: 4px;
    margin-bottom: 0.7rem;
    line-height: 1.5;
}
.mc-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.4rem;
    height: 2.4rem;
    background: var(--mc-emerald);
    color: #14201a;
    font-family: "Courier New", monospace;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.25);
}
.mc-steps li code {
    background: rgba(0,0,0,0.4);
    color: var(--mc-emerald);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.92em;
}

/* --- Код/параметры --- */
code, pre {
    background: #141417;
    color: var(--mc-emerald);
    border: 1px solid var(--mc-border);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-family: "Courier New", monospace;
}
pre {
    padding: 1rem;
    overflow-x: auto;
    line-height: 1.4;
}

/* --- Хедер/футер quark2 — подтюнинг под тёмную тему --- */
#header {
    background: rgba(28,28,31,0.92) !important;
    border-bottom: 1px solid var(--mc-border);
}
#header a { color: var(--mc-text) !important; }
#header a:hover { color: var(--mc-emerald) !important; }

#footer {
    background: rgba(20,20,23,0.7) !important;
    border-top: 1px solid var(--mc-border);
    color: var(--mc-text-dim);
}

/* Адаптив для мобилок */
@media (max-width: 600px) {
    .mc-hero { padding: 3.5rem 1rem; min-height: 380px; }
    .mc-ip-box .ip { font-size: 1.3rem; }
    .mc-features { grid-template-columns: 1fr 1fr; }
}
