/* Journal Panel Styles - Phase 4 Story Integration */

.journal-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #1a1a1a;
}

/* Header */
.journal-header {
    padding: 20px;
    background: #2a2a2a;
    border-bottom: 2px solid #3a3a3a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.journal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #e0e0e0;
}

.journal-controls {
    display: flex;
    gap: 10px;
}

.journal-filter,
.journal-sort {
    padding: 8px 12px;
    background: #1a1a1a;
    border: 1px solid #4a4a4a;
    border-radius: 4px;
    color: #d0d0d0;
    font-size: 14px;
    cursor: pointer;
}

.journal-filter:hover,
.journal-sort:hover {
    border-color: #6a6a6a;
}

/* Content Area */
.journal-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Entries List */
.journal-entries-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.journal-entry {
    background: #2a2a2a;
    border: 2px solid #3a3a3a;
    border-radius: 6px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.journal-entry:hover {
    background: #333;
    border-color: #4a4a4a;
    transform: translateY(-2px);
}

.journal-entry.unread {
    border-left: 4px solid #4a8bba;
    background: #2a2a3a;
}

.journal-entry.unread:hover {
    background: #333344;
}

/* Entry Header */
.journal-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    color: #999;
}

.journal-entry-category {
    font-weight: bold;
    color: #bbb;
}

.journal-entry-date {
    color: #777;
}

/* Entry Title */
.journal-entry-title {
    font-size: 16px;
    font-weight: bold;
    color: #e0e0e0;
    margin-bottom: 8px;
}

/* Entry Tags */
.journal-entry-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.journal-tag {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(74, 139, 186, 0.2);
    border: 1px solid rgba(74, 139, 186, 0.4);
    border-radius: 3px;
    font-size: 11px;
    color: #8bb4d0;
}

/* Empty State */
.journal-empty {
    text-align: center;
    padding: 60px 20px;
    color: #777;
}

.journal-empty p {
    font-size: 16px;
    margin: 0;
}

/* Detail Modal */
.journal-detail-modal .modal-content {
    max-width: 700px;
}

.journal-detail-meta {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #3a3a3a;
    margin-bottom: 15px;
    font-size: 13px;
    color: #999;
}

.journal-detail-category {
    font-weight: bold;
    color: #bbb;
}

.journal-detail-date {
    color: #777;
}

.journal-detail-tags {
    margin-bottom: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.journal-detail-content {
    color: #d0d0d0;
    line-height: 1.8;
    font-size: 15px;
}

.journal-detail-content p {
    margin: 0 0 15px 0;
}

.journal-detail-content strong {
    color: #e0e0e0;
}

/* Metadata Section */
.journal-detail-metadata {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid #4a8bba;
    border-radius: 4px;
}

.journal-meta-item {
    padding: 5px 0;
    color: #ccc;
    font-size: 14px;
}

.journal-meta-item strong {
    color: #e0e0e0;
}

/* Scrollbar Styling */
.journal-content::-webkit-scrollbar {
    width: 8px;
}

.journal-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.journal-content::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 4px;
}

.journal-content::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
}

