/* --- Color Palette & Variables --- */
:root {
    --bg-color: #120b1a;          /* Very dark purple (page background) */
    --card-bg: #1e1329;           /* Slightly lighter purple (box background) */
    --text-main: #dcd0eb;         /* Lavender (text) */
    --text-dim: #968aab;          /* Muted purple (subtitles/dates) */
    --accent: #b589ff;            /* Bright purple (links/accents) */
    --border: #4d3669;            /* Purple border */
    --shadow: #000000;            /* Black shadow for depth */
    --header-text: #fff;
}

/* --- Global Resets --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Verdana', sans-serif; /* Clean, slightly retro font */
    font-size: 14px;
    line-height: 1.6;
    padding: 20px;
    
    /* Optional: Tiny dot pattern for texture */
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 20px 20px;
}

a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent);
    transition: 0.2s;
}

a:hover {
    background-color: var(--accent);
    color: var(--bg-color);
    text-decoration: none;
}

/* --- Wrapper (Structure Only) --- */
.wrapper {
    max-width: 950px;
    margin: 0 auto;
    /* No border or background here! This creates the disconnected look. */
}

/* --- The "Card" Look --- */
/* This class is applied to Header, Footer, Sidebar sections, and Main sections */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    padding: 20px;
    margin-bottom: 20px;
    
    /* Hard block shadow for that retro "Neocities" feel */
    box-shadow: 4px 4px 0px var(--shadow); 
}

/* --- Header --- */
header {
    text-align: center;
}

.header-image-placeholder {
    width: 100%;
    height: 180px;
    background-color: #2a1b38;
    border: 1px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--text-dim);
}

header h1 {
    font-family: 'Courier New', monospace;
    font-size: 2.5em;
    color: var(--header-text);
    text-shadow: 2px 2px 0px var(--accent);
    letter-spacing: -1px;
}

.subtitle {
    color: var(--text-dim);
    font-style: italic;
    margin-top: 5px;
}

/* --- Layout Grid (Sidebar + Main) --- */
.layout-grid {
    display: flex;
    gap: 20px;
    align-items: flex-start; /* Ensures columns don't stretch to equal height */
}

@media (max-width: 768px) {
    .layout-grid {
        flex-direction: column;
    }
}

/* --- Sidebar Column --- */
.sidebar-col {
    flex: 1;
    min-width: 220px;
}

.sidebar-section h3 {
    border-bottom: 2px solid var(--accent);
    color: var(--accent);
    font-size: 0.9em;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-bottom: 5px;
    letter-spacing: 1px;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section ul li {
    margin-bottom: 8px;
    padding-left: 5px;
}

.sidebar-section ul li:hover {
    border-left: 3px solid var(--accent);
    padding-left: 10px; /* Slide effect on hover */
    transition: 0.2s;
}

.sidebar-widget-placeholder {
    width: 100%;
    height: 100px;
    background: #150e1f;
    border: 1px dotted var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.8em;
    margin-bottom: 10px;
}

.last-updated {
    font-size: 0.75em;
    color: var(--text-dim);
    text-align: right;
}

/* --- Main Content Column --- */
.main-col {
    flex: 3;
}

.main-col h2 {
    background-color: var(--bg-color);
    color: var(--accent);
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid var(--border);
    font-size: 1.1em;
    margin-bottom: 15px;
    box-shadow: 2px 2px 0px var(--border);
}

/* Updates styling */
.update-entry {
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}

.update-entry:last-child {
    border-bottom: none;
}

.update-entry .date {
    background-color: var(--accent);
    color: var(--bg-color);
    padding: 2px 6px;
    font-size: 0.8em;
    font-weight: bold;
    margin-right: 10px;
    border-radius: 2px;
}

/* Status List */
.status-list {
    list-style: square inside;
    color: var(--text-main);
}

.status-list li {
    margin-bottom: 5px;
}

/* --- Footer --- */
footer {
    text-align: center;
    font-size: 0.8em;
    color: var(--text-dim);
    margin-top: 10px;
}

/* --- Readme layout --- */
.split-grid {
    display: flex;
    gap: 20px;
    align-items: flex-start; /* Prevents columns from forcibly stretching to same height */
}

.half-col {
    flex: 1;             /* Each column takes 1 unit of space */
    min-width: 300px;    /* Wrap to single column if screen is too small */
}

@media (max-width: 768px) {
    .split-grid {
        flex-direction: column;
    }
    .half-col {
        width: 100%;
    }
}

/* --- Card Header Bars --- */
.card.with-header {
    padding: 0;
    height: 300px; 
    display: flex;
    flex-direction: column;
}

.card-header-bar {
    background-color: var(--accent); 
    color: var(--bg-color);          
    padding: 8px 15px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    border-bottom: 1px solid var(--border);
    text-transform: lowercase;
    
    flex-shrink: 0;
}

.card-content-box {
    padding: 15px;
    flex: 1; 
    overflow-y: auto; 
}

/* Custom Scrollbar for the content box */
.card-content-box::-webkit-scrollbar {
    width: 8px;
}

.card-content-box::-webkit-scrollbar-track {
    background: var(--card-bg); 
    border-left: 1px solid var(--border);
}

.card-content-box::-webkit-scrollbar-thumb {
    background: var(--border); 
}

.card-content-box::-webkit-scrollbar-thumb:hover {
    background: var(--accent); 
}