/* Atlas-specific styles */

/* Breadcrumb styling */
.atlas-breadcrumb {
    font-size: 0.9rem;
    color: var(--text-secondary, #999);
    margin-bottom: 0.5rem;
}

.atlas-breadcrumb a {
    color: var(--brass, #b8860b);
    text-decoration: none;
    transition: color 0.2s ease;
}

.atlas-breadcrumb a:hover {
    color: var(--brass-light, #d4a574);
    text-decoration: underline;
}

.breadcrumb-category {
    color: var(--text-secondary, #999);
    font-style: italic;
}

.breadcrumb-current {
    color: var(--text-primary, #e0e0e0);
    font-weight: 500;
}

.atlas-nav-home {
    border-bottom: 1px solid var(--border-color, #333);
}

.atlas-nav-home a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text-primary, #e0e0e0);
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.atlas-nav-home a:hover,
.atlas-nav-home a.active {
    background: var(--bg-highlight, rgba(184, 134, 11, 0.1));
    color: var(--brass-light, #d4a574);
}

.atlas-nav-section {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color, #333);
    border-radius: 4px;
    overflow: hidden;
}

.atlas-nav-section summary {
    padding: 0.75rem 1rem;
    background: var(--bg-secondary, #1a1a1a);
    color: var(--brass, #b8860b);
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    list-style: none;
}

.atlas-nav-section summary::-webkit-details-marker {
    display: none;
}

.atlas-nav-section summary::before {
    content: "▶";
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.2s ease;
    font-size: 0.8em;
}

.atlas-nav-section[open] summary::before {
    transform: rotate(90deg);
}

.atlas-nav-section summary:hover {
    background: var(--bg-tertiary, #252525);
    color: var(--brass-light, #d4a574);
}

.atlas-nav-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--bg-primary, #0d0d0d);
}

.atlas-nav-section li {
    border-top: 1px solid var(--border-color, #333);
}

.atlas-nav-section a {
    display: block;
    padding: 0.5rem 1rem 0.5rem 2rem;
    text-decoration: none;
    color: var(--text-secondary, #999);
    transition: all 0.2s ease;
}

.atlas-nav-section a:hover {
    background: var(--bg-highlight, rgba(184, 134, 11, 0.1));
    color: var(--text-primary, #e0e0e0);
    padding-left: 2.25rem;
}

.atlas-nav-section a.active {
    background: var(--bg-highlight, rgba(184, 134, 11, 0.15));
    color: var(--brass-light, #d4a574);
    font-weight: 500;
    border-left: 3px solid var(--brass, #b8860b);
    padding-left: calc(2rem - 3px);
}

/* Game System Selector */
.game-system-selector {
    background: var(--bg-tertiary, #2a1f1a);
    border: 1px solid var(--brass-dark, #8b6508);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.game-system-selector label {
    color: var(--text-secondary, #c0a878);
    font-size: 0.95rem;
}

.game-system-selector select {
    background: var(--bg-secondary, #1a1210);
    border: 1px solid var(--brass-dark, #8b6508);
    color: var(--text-primary, #e8dcc0);
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-system-selector select:hover,
.game-system-selector select:focus {
    border-color: var(--brass, #b8860b);
    outline: none;
    box-shadow: 0 0 5px rgba(184, 134, 11, 0.3);
}

.gm-toggle {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gm-toggle input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

.gm-toggle label {
    cursor: pointer;
    user-select: none;
}

/* Game System Content */
.game-system {
    margin: 1rem 0;
    padding: 1rem;
    border-left: 3px solid;
    background: var(--bg-secondary, #1a1210);
    transition: all 0.3s ease;
}

.game-system.hidden {
    display: none;
}

.game-system.dnd5e {
    border-color: #8b0000;
}

.game-system.dnd35 {
    border-color: #4b0082;
}

.game-system.daggerheart {
    border-color: #ff6347;
}

.game-system.tsl {
    border-color: #ff1493;
}

.game-system.agate {
    border-color: #2e8b57;
}

/* GM Notes */
.gm-note {
    background: rgba(255, 255, 0, 0.1);
    border: 1px dashed var(--brass-dark, #8b6508);
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-radius: 4px;
    font-style: italic;
    color: var(--text-secondary, #c0a878);
}

.gm-note.hidden {
    display: none;
}

.gm-note::before {
    content: "🎲 ";
    font-style: normal;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .atlas-nav-section summary {
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
    }
    
    .atlas-nav-section a {
        padding: 0.4rem 0.75rem 0.4rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .atlas-nav-section a:hover {
        padding-left: 1.75rem;
    }
    
    .atlas-nav-section a.active {
        padding-left: calc(1.5rem - 3px);
    }
    
    .game-system-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    .gm-toggle {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}