/* ==================================== */
/* 日記詳細閲覧画面 (diary_view.php) 専用スタイル */
/* シンプル・無機質・ダークトーン版 */
/* ==================================== */

/* 日記本文エリア */
.entry-content p {
/* ★修正: 上下マージンを増やし、空行の高さを確保 */
    margin-top: 0.8em; /* 0.3em から 0.8em へ増加 */
    margin-bottom: 0.8em; /* 0.3em から 0.8em へ増加 */
    padding: 0;
    
    line-height: 1.6; 
    color: #ecf0f1;
    font-size: 16px; 
    
    /* ★追加: 段落の最小高さを line-height の値に合わせて設定 */
    /* これにより、テキストがない <p></p> でも、高さが確保されます */
    min-height: 1.6em;
}

/* 最初の段落のマージンを調整 */
.entry-content p:first-child {
    margin-top: 0;
}

/* メインコンテナ */
.diary-view-main {
    max-width: 850px; /* 閲覧用なので少し広め */
    margin: 40px auto;
    padding: 30px;
    background-color: transparent; /* ベースコンテナ色 */

    border-radius: 4px;
    color: #ecf0f1;
}

/* 記事全体 */
.diary-entry {
    line-height: 1.7;
    font-size: 1em;
}

/* ヘッダー部分 */
.entry-header {
    border-bottom: 2px solid #5599ff; /* アクセントカラーの線 */
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.entry-title {
    font-size: 2em;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 10px;
}

.entry-meta {
    font-size: 0.85em;
    color: #bdc3c7;
}

.entry-author a {
    color: #5599ff; /* 著者名リンク */
    text-decoration: none;
    transition: color 0.2s;
}

.entry-author a:hover {
    color: #ffffff;
}

.entry-date {
    margin-left: 15px;
    border-left: 1px solid #44566c;
    padding-left: 15px;
}

/* 本文エリア */
.entry-content {
    background-color: #1a242f; /* 入力フォームと同じ暗さ */
    padding: 20px;
    border: 1px solid #44566c;
    border-radius: 4px;
    white-space: pre-wrap; /* 改行と空白を保持して表示 */
    font-family: 'Yu Gothic', Meiryo, sans-serif;
}

/* エラーメッセージ */
.error-box {
    padding: 20px;
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid #e74c3c;
    color: #e74c3c;
    border-radius: 4px;
    text-align: center;
}

.error-box h1 {
    font-size: 1.5em;
}