/* ═══════════════════════════════════════
   ТАБ: ДНЕВНИК — список снов, детали сна
   ═══════════════════════════════════════ */

/* ─── Шапка дневника ─── */
.diary-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
}
.diary-count {
    color: var(--text-dim);
    font-size: 13px;
}

/* ─── Карточка сна в списке ─── */
.diary-item {
    background: rgba(40,30,52,0.3);
    border: 1px solid rgba(232,130,14,0.06);
    border-radius: var(--radius-lg);
    padding: 16px 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
    font-family: var(--font-body);
    width: 100%;
}
.diary-item:active { transform: scale(0.99); }

.diary-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    flex-shrink: 0;
    background: rgba(232,130,14,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.diary-item-body { flex: 1; min-width: 0; }
.diary-item-date {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}
.diary-item-preview {
    color: #6b6057;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ─── Детали сна (раскрытый) ─── */
.dream-detail {
    background: rgba(40,30,52,0.35);
    border-radius: var(--radius-xl);
    padding: 22px 18px;
    border: 1px solid rgba(232,130,14,0.08);
}
.dream-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.dream-detail-date {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}
.dream-detail-type {
    color: var(--text-dim);
    font-size: 11px;
    background: var(--accent-subtle);
    padding: 3px 10px;
    border-radius: 8px;
}
.dream-detail-text {
    color: #b0a090;
    font-size: 14px;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 14px 16px;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-md);
    border-left: 3px solid rgba(232,130,14,0.25);
}
.dream-detail-divider {
    width: 100%;
    height: 1px;
    background: rgba(232,130,14,0.1);
    margin: 0 0 20px;
}
.dream-detail-analysis {
    color: #e8ddd0;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
}
