/* =============================================
   NEW DESIGN — переопределяем стили темы Reboot
   ============================================= */

:root {
    --primary: #2563eb;      /* синий вместо красного */
    --primary-dark: #1e40af;
    --bg: #f5f7fb;
    --card-bg: #ffffff;
    --text: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --radius: 14px;
    --shadow: 0 4px 16px rgba(0,0,0,.06);
}

/* Фон страницы */
body {
    background: var(--bg) !important;
    color: var(--text);
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
}

/* Шапка */
.site-header {
    background: var(--primary) !important;
    box-shadow: 0 2px 12px rgba(37,99,235,.25);
}

/* Кнопки, акценты */
.btn, .btn-primary,
.comment-respond .form-submit input,
.page-links__item:hover,
.single_char,
.post-card__category,
.entry-tag {
    background-color: var(--primary) !important;
    border-radius: 10px !important;
}

/* Ссылки и акценты */
a, .breadcrumb a, .breadcrumb span,
.entry-meta .single_char span:first-child {
    color: var(--primary);
}

/* Карточки игр */
.post-card {
    background: var(--card-bg) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    border: 1px solid var(--border);
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,.12) !important;
}
.post-card__thumbnail img {
    border-radius: 0 !important;
}

/* Блок скачивания */
.pere_versions_item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 12px;
}
.pere_versions_link.custom_button a,
.pere_versions_link a {
    display: block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: #fff !important;
    padding: 14px 18px !important;
    border-radius: 10px !important;
    font-weight: 700;
    text-decoration: none !important;
    transition: filter .2s;
}
.pere_versions_link a:hover {
    filter: brightness(1.1);
}

/* Кнопка "Запрос обновления" */
#openModalBtn {
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 22px !important;
    font-weight: 700;
    cursor: pointer;
}

/* Боковая панель */
.widget {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.widget-header {
    color: var(--primary) !important;
    font-weight: 700;
}

/* Поле поиска */
.search-field {
    border-radius: 10px !important;
    border: 1px solid var(--border) !important;
    padding: 10px 14px !important;
}

/* Таблица содержания */
.table-of-contents {
    background: #eef2ff !important;
    border-left: 4px solid var(--primary) !important;
    border-radius: 10px !important;
}

/* Подвал */
.site-footer {
    background: #111827 !important;
}

/* Заголовки */
h1, h2, h3 {
    color: var(--text);
    letter-spacing: -.02em;
}
h1.entry-title {
    font-size: 1.7em;
    line-height: 1.25;
}

/* Теги */
.entry-tag {
    background: #e0e7ff !important;
    color: var(--primary-dark) !important;
    border-radius: 20px !important;
    padding: 4px 12px !important;
}

/* Комментарии */
#wpdcom .wpd-prim-button {
    background-color: var(--primary) !important;
}
/* =============================================
   Форма обратной связи
   ============================================= */
.simple-contact-form {
    max-width: 640px;
    margin: 24px 0;
    padding: 24px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    border: 1px solid #e5e7eb;
}
.simple-contact-form label {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    font-weight: 600;
    color: #1f2937;
    font-size: 15px;
}
.simple-contact-form input[type="text"],
.simple-contact-form input[type="email"],
.simple-contact-form textarea {
    margin-top: 6px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #f9fafb;
    transition: border-color .2s, box-shadow .2s;
}
.simple-contact-form input:focus,
.simple-contact-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
    background: #ffffff;
}
.simple-contact-form textarea {
    resize: vertical;
    min-height: 120px;
}
.simple-contact-form button[type="submit"] {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    border: none;
    padding: 12px 26px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: filter .2s;
}
.simple-contact-form button[type="submit"]:hover {
    filter: brightness(1.1);
}

/* Сообщения о статусе отправки */
.form-status {
    max-width: 640px;
    margin: 16px 0;
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 600;
    display: none;
}
.form-status.ok {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border-left: 4px solid #10b981;
}
.form-status.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}
