/* --- КАРТОЧКИ ДНЕВНИКА (diary.css) --- */

.diary-list {
    display: flex;
    flex-direction: column;
    /* УНИФИКАЦИЯ: 12px как в Инструментах и Ярмарке */
    gap: 12px; 
    margin: 12px 0 0 0 !important;
}

.item-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, border-color 0.2s;
}

.item-card:hover {
    border-color: var(--card-tech);
    transform: translateX(5px);
}

/* Круглая картинка для дневника */
.item-image-round {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover;
    border-radius: 50% !important;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-info h3 {
    margin: 0 0 4px 0 !important;
    color: var(--card-tech);
    font-size: 1.15rem;
    line-height: 1.2;
}

.item-subtext {
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
    color: #444;
    font-size: 0.9rem;
}

.item-info p {
    margin: 0;
    font-size: 0.88rem;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* МОБИЛЬНАЯ АДАПТАЦИЯ */
@media (max-width: 600px) {
    .item-card {
        gap: 12px;
        padding: 10px;
    }
    .item-image-round {
        width: 60px !important;
        height: 60px !important;
    }
    .item-info h3 {
        font-size: 1rem;
    }
    .item-info p {
        font-size: 0.8rem;
        -webkit-line-clamp: 2; 
    }
}
