/* Строгий стиль для плагина Simple Blog */

.post [contenteditable] {
    border: 2px dashed #ccc;
    outline: 0;
}

/* Карточка поста в списке */
.post.card {
    width: calc(47% - 2em);
    display: inline-block;
    text-align: left;
    margin: 1em;
    vertical-align: top;
    background-color: #fff;
    border: 1px solid #ddd;
}

/* Заголовок в карточке - ровно 2 строки */
.post.card h3 {
    margin: 0;
    padding: 1rem 1.25rem 0 1.25rem;
    font-size: 1.4em;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.4;
    min-height: 56px;
    max-height: 56px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Meta информация */
.post.card .meta {
    padding: 0.75rem 1.25rem;
    margin: 0;
    border-bottom: 1px solid #ddd;
    font-size: 0.85em;
    color: #666;
}

/* Описание поста - ровно 4 строки */
.post.card .description {
    padding: 1rem 1.25rem;
    margin: 0;
    color: #444;
    font-size: 0.95em;
    line-height: 1.5;
    min-height: 76px;
    max-height: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

/* Ссылка "Читать далее" */
.post.card a {
    padding: 0 1.25rem 1.25rem 1.25rem;
    display: block;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.post.card a:hover {
    color: #004499;
    text-decoration: underline;
}

.card {
    background-color: #fff;
}

/* Заголовок поста на полной странице - ровно 2 строки */
.post h1.title {
    font-size: 1.8em;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
    min-height: 50px;
    max-height: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.post .meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.post .body {
    color: #333;
    line-height: 1.6;
}

/* Адаптивность */
@media (max-width: 576px) {
    .post.card {
        width: 97%;
        display: inline-block;
        text-align: left;
        margin: 1em;
        border: 1px solid #ddd;
    }
    
    .post.card h3 {
        min-height: 56px;
        max-height: 56px;
    }
    
    .post.card .description {
        min-height: 76px;
        max-height: 76px;
    }
}
