/* 1. СИСТЕМНЫЕ НАСТРОЙКИ И КУРСОР */
* {
    /* SVG-курсор: Белая стрелка с черной обводкой */
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><path d='M2,2 L2,24 L8,18 L13,29 L17,27 L12,16 L20,16 L2,2 Z' fill='white' stroke='black' stroke-width='2' stroke-linejoin='round'/></svg>"), auto !important;
}

body {
    background-image: url('pub/img/def.png');
    background-repeat: repeat;
    background-attachment: scroll; /* Для параллакса */
    background-position: 0 0;
    color: #FFFFFF;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* 2. ШАПКА (БУЛЫЖНИК) */
.cobble-header {
    background-image: url('pub/img/head.png');
    background-repeat: repeat;
    border-bottom: 5px solid #222;
    padding: 50px 20px;
    text-align: center;
    text-shadow: 3px 3px 0px #000;
    position: relative;
}

.pixel-text {
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.splash-text {
    color: #FFFF00;
    font-size: 1.3em;
    font-weight: bold;
    text-shadow: 2px 2px 0px #3F3F00;
    display: inline-block;
    position: absolute;
    transform: rotate(-15deg);
    animation: splash-pulse 0.5s infinite alternate;
}

@keyframes splash-pulse {
    from { transform: rotate(-15deg) scale(1); }
    to { transform: rotate(-15deg) scale(1.15); }
}

/* 3. БЕГУЩАЯ СТРОКА */
.marquee-container {
    background: #FF5500;
    color: #FFF;
    padding: 8px 0;
    border-bottom: 3px solid #000;
    font-weight: bold;
    text-shadow: 1px 1px 0px #000;
}

/* 4. КОНТЕНТ И СЕТКА */
.main-wrapper {
    display: flex;
    max-width: 1000px;
    margin: 30px auto;
    gap: 20px;
    padding: 0 10px;
}

.sidebar { width: 260px; }
.content { flex: 1; }

.content-box, .content-box-mini {
    background-color: #C6C6C6;
    border: 4px solid;
    border-color: #FFF #555 #555 #FFF; /* 3D эффект */
    color: #333;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.4);
}

.content-box h2, h3 { margin-top: 0; border-bottom: 2px solid #888; padding-bottom: 5px; }

/* КНОПКИ */
.retro-btn {
    background: #666;
    color: #FFF;
    border: 4px solid #000;
    padding: 15px;
    width: 100%;
    font-weight: bold;
    font-size: 1.1em;
    text-shadow: 1px 1px 0px #000;
}

.retro-btn:hover {
    background: #888;
    border-color: #FFF #000 #000 #FFF;
}

/* ССЫЛКИ САЙДБАРА */
.sidebar ul { list-style: none; padding: 0; }
.sidebar ul li { margin-bottom: 10px; }
.sidebar ul li a { color: #0000AA; text-decoration: none; font-weight: bold; }
.sidebar ul li a:hover { color: #AA0000; text-decoration: underline; }

/* 5. ФУТЕР И СЧЕТЧИК */
.cobble-footer {
    background-image: url('pub/img/head.png');
    padding: 40px;
    text-align: center;
    border-top: 5px solid #222;
    margin-top: 50px;
}

.visitor-counter {
    display: inline-block;
    background: #000;
    color: #00FF00;
    padding: 5px 15px;
    border: 2px solid #555;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 2px;
    margin-top: 15px;
}

#online-indicator { font-weight: bold; }

/* Подсветка активной ссылки в меню */
.active-link {
    color: #AA0000 !important;
    text-shadow: 1px 1px 0px #000;
}

/* Карточка загрузки лаунчера */
.download-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #A0A0A0;
    padding: 15px;
    border: 2px inset #FFF;
    margin-top: 10px;
}

.card-info p { margin: 5px 0 0 0; font-size: 0.85em; color: #444; }

/* Таблица версий */
.version-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #B0B0B0;
}

.version-table th {
    background: #444;
    color: #FFF;
    text-align: left;
    padding: 8px;
    font-size: 0.9em;
}

.version-table td {
    padding: 8px;
    border-bottom: 1px solid #888;
    color: #222;
}

/* Цвета типов версий */
.type-beta { color: #0000AA; font-weight: bold; }
.type-alpha { color: #AA0000; font-weight: bold; }
.type-inf { color: #007700; font-weight: bold; }

.dl-icon { text-decoration: none; font-size: 1.2em; }

/* Маленькая ретро-кнопка */
.retro-btn-small {
    background: #666;
    color: #fff;
    border: 3px solid #000;
    padding: 8px 15px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}
.retro-btn-small:hover { background: #888; border-color: #fff #000 #000 #fff; }

/* Выделение основной карточки загрузки */
.main-release {
    border: 4px solid #FF5500 !important; /* Твой оранжевый неон */
    background: #D0D0D0;
    box-shadow: 0 0 10px rgba(255, 85, 0, 0.4);
}

.dl-link-text {
    color: #0000AA;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
}

.dl-link-text:hover {
    text-decoration: underline;
    color: #AA0000;
}

/* Статусы в таблице */
.version-table td {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Улучшение читаемости длинных текстов на About */
.content-box p {
    line-height: 1.5;
    margin-bottom: 15px;
    text-align: justify;
}

.content-box ul li {
    margin-bottom: 8px;
    list-style-type: square;
    margin-left: 20px;
}

/* Сетка галереи */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

/* Стиль фото (как старое фото с белой рамкой) */
.gallery-item {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border: 4px solid #FFF;
    outline: 2px solid #555;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.gallery-item:hover {
    transform: scale(1.05) rotate(2deg);
    outline: 2px solid #FF5500; /* Твой оранжевый неон при наведении */
}

/* Лайтбокс (Окно просмотра) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    text-align: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 70%;
    margin-top: 5%;
    border: 8px solid #C6C6C6; /* Цвет GUI Minecraft */
    outline: 4px solid #000;
}

#caption {
    color: #FFFF00;
    padding: 20px;
    font-size: 1.5em;
    text-shadow: 2px 2px 0px #000;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
}