/* The Wizard's Original Palette */
:root {
    --void-black: #0a0a0c;
    --wisdom-gold: #d4af37;
    --lunar-lavender: #9b8edb;
    --ethershine-blue: #00d4ff;
    --text-color: #e0e0e0;
    --glow-effect: 0 0 10px rgba(155, 142, 219, 0.5);
}

body {
    background-color: var(--void-black);
    color: var(--text-color);
    font-family: 'Georgia', serif;
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Header & Trigger */
.grimoire-trigger {
    display: inline-block;
    color: var(--wisdom-gold);
    cursor: pointer;
    font-size: 1.1em;
    padding: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.5s ease;
}

.grimoire-trigger:hover {
    color: var(--lunar-lavender);
    text-shadow: 0 0 8px var(--lunar-lavender);
}

.glow-text {
    color: var(--wisdom-gold);
    text-shadow: 0 0 15px var(--wisdom-gold);
    text-align: center;
    font-size: 3em;
    margin-top: 40px;
}

/* Smooth Sidebar Navigation */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.5s ease;
    padding-top: 60px;
    border-right: 2px solid var(--lunar-lavender);
}

.sidebar-links h2 {
    color: var(--lunar-lavender);
    padding: 0 32px;
}

.sidebar a {
    padding: 12px 32px;
    text-decoration: none;
    font-size: 1.2em;
    color: var(--text-color);
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    color: var(--ethershine-blue);
    padding-left: 40px;
}

.closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    text-decoration: none;
    color: var(--text-color);
}

/* Original Content Box: Purple Frame and Balanced Width */
#main {
    transition: margin-left .5s, opacity .5s ease;
    padding: 20px;
}

.content-box {
    max-width: 800px; /* Centered, not full screen */
    width: 90%;
    margin: 50px auto;
    padding: 40px;
    background: rgba(20, 20, 25, 0.8); /* Original first-version background */
    border: 1px solid var(--lunar-lavender); /* Purple frame */
    border-radius: 8px;
    box-shadow: var(--glow-effect);
    text-align: left;
}

/* Blue Quote Bar */
.blue-quote {
    border-left: 4px solid var(--ethershine-blue);
    margin: 25px 0;
    padding: 10px 0 10px 20px;
    font-style: italic;
    color: var(--lunar-lavender);
}

.fade-line {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--wisdom-gold), transparent);
    margin: 20px 0;
}

footer {
    text-align: center;
    margin-top: 100px;
    padding-bottom: 40px;
    font-size: 0.85em;
    color: #666;
}

.contact-link {
    color: var(--ethershine-blue);
    text-decoration: none;
    font-weight: bold;
    border: 1px solid var(--ethershine-blue);
    padding: 10px 20px;
    border-radius: 4px;
    transition: 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    background: var(--ethershine-blue);
    color: var(--void-black);
    box-shadow: 0 0 15px var(--ethershine-blue);
}

/* --- BLOG PAGE SPECIFIC OVERRIDES --- */

/* The "#blog-archive" prefix means: 
   "Only apply these rules if you find an element with id='blog-archive'" 
*/

#blog-archive a, 
#blog-archive a:link, 
#blog-archive a:visited, 
#blog-archive a:active {
    color: #d4af37 !important; 
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 1em !important; 
}

#blog-archive a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 8px #d4af37 !important;
}

#blog-archive .archive-list {
    margin-top: 40px;
}

#blog-archive .blog-entry {
    margin-bottom: 40px; 
}

#blog-archive .entry-title {
    display: block;
    margin-bottom: 5px;
    font-family: 'Georgia', serif;
}

#blog-archive .entry-description {
    color: #e0e0e0;
    font-size: 1em;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

#blog-archive .blog-intro h2 {
    color: #9b8edb;
    font-size: 1.6em;
    margin-bottom: 10px;
}

#blog-archive .lavender-line {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #9b8edb, transparent);
    margin: 30px 0 40px 0;
}