/* blog.css — для incbtc.ru/blog */

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #e6f2ff;
    color: #000;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px 25px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 87, 183, 0.15);
    border: 2px solid #0073e6;
    box-sizing: border-box;
    overflow: visible !important;
}

h1 {
    font-size: 2.4em;
    color: #0057b7;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.meta {
    text-align: center;
    color: #0057b7;
    font-size: 1em;
    margin-bottom: 25px;
}

.post-content {
    font-size: 1.1em;
    color: #222;
    text-align: left;
    line-height: 1.7;
}

.post-content a {
    color: #0073e6;
    text-decoration: underline;
}

.post-content a:hover {
    color: #0057b7;
}

.post-content ul, .post-content ol {
    padding-left: 25px;
    margin: 20px 0;
}

.post-content ul li {
    margin-bottom: 8px;
}

.hashtags {
    margin: 25px 0;
    text-align: center;
}

.tag {
    color: #0057b7;
    background-color: #e6f2ff;
    padding: 6px 14px;
    border-radius: 30px;
    text-decoration: none;
    margin: 0 6px 8px 0;
    display: inline-block;
    font-size: 0.95em;
}

.tag:hover {
    background-color: #0073e6;
    color: white;
}

.attachments {
    margin: 30px 0;
}

.attachment {
    margin: 15px 0;
}

.attachment img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.attachment a {
    color: #0073e6;
    font-weight: bold;
}

.back-link {
    display: inline-block;
    margin: 30px 0 10px;
    color: #0073e6;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #aad8ff;
    text-align: center;
    color: #0057b7;
    font-size: 0.95em;
}

.useful-links a {
    color: #0073e6;
    margin: 0 12px;
    text-decoration: none;
}

.useful-links a:hover {
    text-decoration: underline;
}

/* ===================== VK Comments ===================== */
#vk_comments {
    width: 100% !important;
    max-width: 100% !important;
    margin: 30px 0 20px 0;
    padding: 15px 0;
    background: rgba(240, 247, 255, 0.8);   /* светлый полупрозрачный фон */
    border-radius: 8px;
}

#vk_comments iframe {
    width: 100% !important;
    max-width: 100% !important;
}

/* Дополнительно для надёжности */
#vk_comments > div,
#vk_comments > div > div {
    width: 100% !important;
}

/* ===================== Адаптив ===================== */
@media (max-width: 768px) {
    .container {
        margin: 15px auto;
        padding: 20px 15px;
        border-radius: 10px;
    }
    
    h1 {
        font-size: 1.9em;
    }
    
    .post-content {
        font-size: 1.05em;
    }
    
    #vk_comments {
        padding: 15px;
        margin: 25px 0 20px 0;
    }
}

/* ===================== Для главной страницы блога ===================== */
.posts {
    margin: 30px 0;
}

.post {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 87, 183, 0.1);
    border: 1px solid #aad8ff;
}

.post h2 {
    margin: 0 0 12px 0;
    font-size: 1.5em;
}

.post h2 a {
    color: #0057b7;
    text-decoration: none;
}

.post h2 a:hover {
    color: #0073e6;
    text-decoration: underline;
}

.pagination {
    text-align: center;
    margin: 30px 0;
}

.pagination a {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 5px;
    background: #0073e6;
    color: white;
    border-radius: 8px;
    text-decoration: none;
}

.pagination a:hover,
.pagination a.active {
    background: #0057b7;
}

/* Форма админки */
.form-container {
    background: #ffffff;
    border: 2px solid #0073e6;
}

/* Кнопка помощи по HTML */
.help-btn {
    background: #0073e6;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95em;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.help-btn:hover {
    background: #0057b7;
}