/* ---------------- Шрифты ---------------- */
@font-face {
    font-family: 'Minecraftia';
    src: url('../fonts/Minecraftia.ttf') format('truetype');
}
@font-face {
    font-family: 'RussoOne';
    src: url('../fonts/RussoOne-Regular.ttf') format('truetype');
}

/* ---------------- Базовые стили ---------------- */
body {
    margin: 0;
    padding: 0;
    font-family: 'RussoOne', Arial, sans-serif;
    background: url("../images/background_pc.png") no-repeat center center fixed;
    background-size: cover;
    -webkit-user-select: none;
    user-select: none;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrapper {
    flex: 1;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ---------------- Кнопки ---------------- */
.left-btn, .right-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'RussoOne', Arial, sans-serif;
    color: white;
    background: transparent !important;
    transition: transform 0.2s;
    will-change: transform;
}

.left-btn:hover, .right-btn:hover {
    color: #ff69b4;
    transform: scale(1.05);
}

.left-btn .btn-icon, .right-btn .btn-icon {
    width: 64px;
    height: 64px;
    display: block;
}

.left-btn .btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}

.right-btn {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.right-btn .btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: right;
}

.left-btn .main-text,
.right-btn .main-text {
    font-size: 32px;
    font-weight: bold;
}

.left-btn .sub-text,
.right-btn .sub-text {
    font-size: 16px;
    color: #ccc;
}

/* ---------------- Блоки кнопок ---------------- */
.buttons_left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.buttons_right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

/* ---------------- Модалки ---------------- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #1a1a1a;
    color: white;
    padding: 30px 40px;
    border-radius: 4px;
    max-width: 800px;
    width: 90%;
    max-width: 90vw;
    max-height: 90vh;
    font-size: 18px;
    position: relative;
    border: 4px solid #ff69b4;
    outline: 2px solid #000;
    box-shadow: 0 0 0 4px #000, 0 0 20px rgba(0,0,0,0.8);
    transform: scale(0.8);
    box-sizing: border-box;
    overflow-y: auto;
}

.modal.show .modal-content.animate {
    animation: scaleIn 0.3s forwards ease-out;
}

@keyframes scaleIn {
    to { transform: scale(1); }
}

.close {
    color: white;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 1px 1px #000;
}

.close:hover {
    color: #f00;
}

/* ---------------- Заголовки ---------------- */
.modal-title {
    font-family: 'Minecraftia', monospace;
    font-size: 32px;
    text-align: center;
    color: #ff69b4;
    margin-bottom: 25px;
    text-shadow: 2px 2px #000;
}

/* ---------------- Текстовые блоки ---------------- */
.server-description p,
.mods-list p,
.mods-list ul li {
    font-size: 16px;
    line-height: 1.6;
    text-align: justify;
}

.mods-list ul {
    padding-left: 20px;
}

.mods-list ul li {
    margin-bottom: 10px;
}

/* ---------------- Поля ввода ---------------- */
#skinModal input[type="text"],
#skinModal input[type="password"],
#report-modal input[type="text"],
#report-modal textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
    background-color: #222;
    color: white;
}

/* ---------------- Flex для кнопок внутри модалок ---------------- */
.form-row {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}

/* ---------------- Кнопки модалок ---------------- */
.modal-btn,
.custom-file-label.modal-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'RussoOne', Arial, sans-serif;
    color: #fff;
    background-color: #444;
    transition: all 0.2s;
}

.modal-btn:hover,
.custom-file-label.modal-btn:hover {
    background-color: #666;
    color: #ff69b4;
}

.modal-btn .btn-text,
.custom-file-label.modal-btn .btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: center;
}

.modal-btn .main-text {
    font-size: 24px;
    font-weight: bold;
}

.modal-btn .sub-text {
    font-size: 14px;
    color: #ccc;
}

.custom-file-label.modal-btn .main-text {
    font-size: 18px;
}

/* ---------------- Скрытые input файлов ---------------- */
#skinFile,
#issue-files {
    display: none;
}

/* ---------------- Список выбранных файлов ---------------- */
.file-list {
    margin-top: 6px;
    font-size: 0.9em;
    color: #eee;
}

.file-list div {
    padding: 4px 6px;
    background: #333;
    margin-bottom: 2px;
    border-radius: 4px;
}

/* ---------------- Кнопка отправки прижата вправо ---------------- */
.form-row #submit-issue,
#skinModal button.modal-btn {
    margin-left: auto;
}

/* ---------------- Онлайн ---------------- */
#online-counter .main-text {
    font-size: 28px;
}

#online-counter .sub-text {
    font-size: 16px;
    color: #ccc;
}

/* ---------------- Уведомление о копировании ---------------- */
.copy-notification {
    position: fixed;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: 'RussoOne', Arial, sans-serif;
    font-size: 18px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s ease;
}

.copy-notification.show {
    top: 20px;
    opacity: 1;
}

.copy-notification.hide {
    top: -50px;
    opacity: 0;
}

/* ---------------- Новости / известные проблемы ---------------- */
.news-item {
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid #333;
}

.news-item:last-child {
    border-bottom: none;
}

.news-text {
    font-size: 16px;
    color: #ccc;
    line-height: 1.6;
    text-align: left;
}

.news-text p {
    margin: 8px 0 10px;
}

.news-text ul,
.news-text ol {
    margin: 8px 0;
    padding-left: 1.2em;
}

.news-text li {
    margin-bottom: 6px;
}

.news-text a {
    color: #ff69b4;
    text-decoration: underline;
    transition: color 0.2s;
}

.news-text a:hover {
    color: #ffa6d8;
}

.news-text code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 5px;
    border-radius: 4px;
    font-family: monospace;
    color: #fff;
}

.news-text pre {
    background: #222;
    padding: 10px;
    border-radius: 6px;
    overflow-x: auto;
    font-family: monospace;
    color: #fff;
}

.news-text blockquote {
    border-left: 4px solid #ff69b4;
    margin: 10px 0;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ddd;
    font-style: italic;
}

.news-text h1,
.news-text h2,
.news-text h3 {
    color: #ff69b4;
    text-shadow: 1px 1px #000;
    margin-top: 18px;
    margin-bottom: 10px;
    font-family: 'Minecraftia', monospace;
}

.news-text h1 { font-size: 28px; }
.news-text h2 { font-size: 24px; }
.news-text h3 { font-size: 20px; }

/* ----------------- Меньшее модальное окно для выбора типа репорта ---------------- */
#report-choice-modal .modal-content {
    max-width: 700px;
    width: 800;    
    max-height: 400px;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#report-choice-modal .modal-content h2 {
    text-align: center;
    margin-bottom: 20px;
}

#report-choice-modal .button-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: auto;
}

#report-choice-modal .modal-btn {
    min-width: 230px;
    padding: 12px 16px;
    flex: none; 
    font-size: 16px;
}

#report-choice-modal .modal-btn .main-text {
    font-size: 20px;
}

#report-choice-modal .modal-btn .sub-text {
    font-size: 13px;
}

#report-choice-modal .close {
    display: none;
}


/* ---------------- Мобильное оформление ---------------- */
@media (max-width: 1024px) {
    /* ---------------- Фон ---------------- */
    body {
        background: url("../images/background_mobile.png") no-repeat top center;
        background-size: cover;
        background-attachment: scroll;
    }

    /* ---------------- Пустое пространство сверху ---------------- */
    .hero-space {
        height: 70vh;
        width: 100%;
    }

    /* ---------------- Скрываем лишнее ---------------- */
    .desktop-only {
        display: none !important;
    }

    /* ---------------- Контейнеры кнопок ---------------- */
    .buttons_left,
    .buttons_right {
        display: contents;
    }

    /* ---------------- Кнопки ---------------- */
    .left-btn,
    .right-btn {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 14px;
        border-radius: 12px;
    }

    .left-btn .btn-icon,
    .right-btn .btn-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 6px;
    }

    .left-btn .btn-text,
    .right-btn .btn-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .left-btn .main-text,
    .right-btn .main-text {
        font-size: 22px;
    }

    .left-btn .sub-text,
    .right-btn .sub-text {
        font-size: 13px;
    }

    /* ---------------- Модалки ---------------- */
    .modal-content {
        width: 90%;
        max-width: 95vw;
        max-height: 75vh;
        border-radius: 12px;
        padding: 20px;
        font-size: 15px;
        overflow-y: auto;
    }

    .modal-title {
        font-size: 22px;
        margin-bottom: 18px;
        text-align: center;
    }

    input,
    textarea {
        font-size: 15px;
        padding: 8px;
    }
}
