/* Lore System Specific Styling */

/* Lore-specific background override */
body.lore-page .background-container {
    background-image: url('../images/library.webp') !important;
}

/* Fallback for browsers that don't support WebP */
.no-webp body.lore-page .background-container {
    background-image: url('../images/library.png') !important;
}

/* Admin-specific background override (for pages in admin subdirectory) */
body.lore-page.admin-page .background-container {
    background-image: url('../../images/library.webp') !important;
}

/* Fallback for browsers that don't support WebP */
.no-webp body.lore-page.admin-page .background-container {
    background-image: url('../../images/library.png') !important;
}


/* Additional styling enhancements for lore content */
.lore-content-text a {
    color: var(--color-gold);
    text-decoration: none;
    border-bottom: 1px dotted var(--color-gold);
    transition: all 0.3s ease;
}

.lore-content-text a:hover {
    color: var(--color-purple-light);
    border-bottom-color: var(--color-purple-light);
}

/* Update heading styles to match TinyMCE preview */
.lore-content-text h1 {
    font-family: var(--font-display);
    color: var(--color-gold);
    font-size: 2em !important;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

.lore-content-text h2 {
    font-family: var(--font-display);
    color: var(--color-gold);
    font-size: 1.7em !important;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-purple-light);
}

.lore-content-text h2.no-border {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.lore-content-text h3 {
    font-family: var(--font-medieval);
    color: var(--color-purple-light);
    font-size: 1.4em !important;
    margin: 25px 0 12px;
}

.lore-content-text h4 {
    font-family: var(--font-display);
    color: var(--color-gold);
    font-size: 1.2em !important;
    margin: 20px 0 10px;
}

.lore-content-text ul, .lore-content-text ol {
    padding-left: 25px;
    margin: 15px 0;
}

.lore-content-text li {
    margin-bottom: 8px;
}

.lore-content-text blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background: rgba(74, 43, 124, 0.2);
    border-left: 4px solid var(--color-gold);
    font-style: italic;
}

.lore-content-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 1px solid var(--color-purple-dark);
}

.lore-content-text th, .lore-content-text td {
    padding: 10px;
    border: 1px solid var(--color-purple-dark);
}

.lore-content-text th {
    background: rgba(74, 43, 124, 0.4);
    color: var(--color-gold);
    font-family: var(--font-medieval);
}

.lore-content-text tr:nth-child(even) {
    background: rgba(15, 10, 26, 0.4);
}

.lore-content-text tr:hover {
    background: rgba(74, 43, 124, 0.2);
}


/* Enhanced Sidebar Styling */
.lore-sidebar .lore-nav-category:first-child {
    margin-top: 0;
}

/* Modern Category Navigation without dropdowns */
.category-parent {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    background: rgba(30, 20, 50, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    position: relative;
    overflow: hidden;
}

.category-parent:hover {
    background: rgba(46, 34, 80, 0.6);
    box-shadow: 0 0 15px rgba(74, 43, 124, 0.3);
    transform: translateY(-2px);
}

.category-parent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--color-purple-light);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-parent:hover::before,
.category-parent.active::before {
    opacity: 1;
}

.category-parent.active {
    background: rgba(46, 34, 80, 0.6);
    box-shadow: 0 0 15px rgba(74, 43, 124, 0.3);
}

.category-parent.active::before {
    background: var(--color-gold);
}

/* Race Traits Styling */
.trait-block {
    margin: 20px 0;
    padding: 20px;
    background: rgba(46, 34, 80, 0.4);
    border: 1px solid var(--color-purple-light);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.trait-block h3 {
    margin-top: 0 !important;
    color: var(--color-gold) !important;
    font-family: 'Cinzel', serif !important;
    border-bottom: 1px solid var(--color-purple-light);
    padding-bottom: 8px;
    margin-bottom: 15px !important;
}

.trait-block p {
    margin-bottom: 12px;
}

.trait-block strong {
    color: var(--color-gold);
    font-weight: bold;
}

/* Admin-specific styling will be added here if needed */ 