
    /* * {
    box-sizing: border-box;

    margin: 0;
    padding: 0; 
    
}*/

body {
    background-color: #ffffff;
    color: #111111;
    font-family: 'Times New Roman', Times, serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}





/* Контент статьи */
.article-container {
    max-width: 780px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

.publish-date {
    font-style: italic;
    font-size: 0.85rem;
    color: #555555;
    margin-bottom: 25px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.article-subtitle {
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 30px;
    color: #222222;
}

.article-body{
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.article-body p:empty {
    min-height: 1em; /* Задает высоту равную размеру шрифта */
}









/* Футер статьи (Лайк и Автор) */
.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 40px;
    padding-bottom: 20px;
}

.like-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.heart-icon {
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: transform 0.2s ease, fill 0.2s ease, stroke 0.2s ease;
    
    /* По умолчанию: пустое сердечко (только контур) */
    fill: none;
    stroke: #b91c1c;       /* Цвет контура */
    stroke-width: 2;       /* Толщина контура */
    stroke-linecap: round;
    stroke-linejoin: round;
}

.heart-icon:hover {
    transform: scale(1.1);
}

/* Состояние "Закрашено" (когда поставлен лайк) */
.heart-icon.active {
    fill: #b91c1c;         /* Сплошная красная заливка */
    stroke: #b91c1c;
}

.like-count {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.85rem;
    color: #b91c1c;
}

.views-count {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.85rem;
    color: #000000;
}

.author-info {
    font-size: 0.95rem;
    color: #222222;
}

/* Подвал сайта */
.site-footer {
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    padding: 15px;
    font-size: 0.85rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.article-img-container {
    display: flex;
    justify-content: center; /* Центрирование по горизонтали */
}

.article-img-container img {
    max-width: 100%;        /* Чтобы картинка не вылезала за пределы */
    height: auto;
    border: 6px ridge gray;
    padding: 3px;
    margin-bottom: 15px;
    max-height: 500px;
}


/* Блок статистики прижимает лайки и просмотры друг к другу */
.article-stats {
    display: flex;
    align-items: center;
    gap: 20px; /* Расстояние между лайками и просмотрами */
}

/* Оформление каждого элемента (иконка + цифра) */
.stat-item {
    display: flex;
    flex-direction: column; /* или row, в зависимости от того, где цифра */
    align-items: center;
    gap: 6px;
}

.icon-views {
    width: 18px; 
    height: 18px;
    padding: 7px;
}