/* 
 * Journal Accordion (Atlas Sidebar) Layer
 * --------------------------------------
 * Purpose: Styles for the hierarchical navigation (Continent > Country > Log)
 *          used in the "Immersive Archive / Atlas" section.
 * Dependencies: Rendered dynamically in js/modules/lightwinner.js.
 * 
 * Contents:
 * 1. Continent Groups & Headers
 * 2. Country Headers & Transition Arrows
 * 3. Log Item (Playlist-style) interaction states
 */

/* Continent Group (like Region) */
.j-continent-group {
    margin-bottom: 8px;
}

.j-continent-header {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-left-color: rgba(0, 255, 255, 0.5);
}

.j-country-header .arrow {
    font-size: 0.9rem;
    /* USER FIX: Slightly larger */
    opacity: 0.7;
    /* USER FIX: More visible */
    transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease;
    color: #D4AF37;
    /* Gold arrow */
    display: inline-block;
}

.j-country-header.active .arrow {
    transform: rotate(90deg);
    opacity: 1;
    color: #FFD700;
}

.j-country-logs {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.j-country-logs.active {
    max-height: 500px;
}

/* Log Item (like Playlist Item) */
.j-log-item {
    margin: 4px 0 4px 25px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.01);
    border-left: 2px solid transparent;
    border-radius: 3px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.j-log-item:hover {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(0, 255, 255, 0.05);
    border-left-color: var(--lw-accent);
    transform: translateX(3px);
}

.j-log-item.active,
.j-log-item.selected {
    background: rgba(0, 255, 255, 0.08);
    border-left-color: var(--lw-accent);
    color: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(0, 255, 255, 0.2);
}

/* Log Card Highlighted State (when clicked from sidebar) */
.log-card-item.highlighted,
.log-card-item.selected {
    background: rgba(0, 255, 255, 0.1);
    border-left: 3px solid var(--lw-accent);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateX(3px);
}