/* Base styles */
body {
    background-color: #0a0a0a;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    margin: 20px;
    line-height: 1.6;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Content layout styles */
.content-layout {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

/* Content wrapper for content pages */
.content {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
}

/* Home page specific layout */
.home-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Typography */
h1 {
    font-size: 2em;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 1.3em;
    margin-bottom: 0.5em;
    color: #888;
}

/* Navigation */
nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    min-width: 200px;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

/* Home page navigation */
.home-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 0;
}

.nav-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.nav-section-title {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-divider {
    width: 60px;
    height: 1px;
    background-color: #444;
    margin: 8px 0;
}

/* Links */
a {
    color: #e0e0e0;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Special link colors for gear and links pages */
.gear-page a,
.links-page a {
    color: #6eb5ff;
}

.gear-page nav a,
.links-page nav a {
    color: #e0e0e0;
}

/* Link source styling */
.link-source {
    font-size: 0.75em;
    font-style: italic;
    font-weight: normal;
    color: #888;
}

/* Content sections */
.content-section {
    max-width: 750px;
}

/* Item lists */
.item {
    margin-bottom: 28px;
    line-height: 1.7;
}

.item-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 4px;
}

.item-date {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.item-notes {
    color: #e0e0e0;
}

.item-title a {
    color: #e0e0e0;
    text-decoration: none;
}

.item-title a:hover {
    text-decoration: underline;
}

/* Quotes specific */
.quote {
    margin-bottom: 28px;
    font-style: italic;
    line-height: 1.7;
}

.quote-author {
    font-style: normal;
    color: #a0a0a0;
}

/* Category sections for gear and links */
.category {
    margin-bottom: 2em;
}

/* Lists */
.items-list {
    list-style: none;
    padding: 0;
}

.items-list li {
    margin-bottom: 1.5em;
}

.items-list.horizontal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.items-list.horizontal li {
    display: inline;
    margin-bottom: 0;
    max-width: 40ch;
}

.items-list.horizontal li:not(:last-child)::after {
    content: " | ";
    color: #888;
    margin: 0 0.5em;
}

.links-list {
    list-style: none;
    padding: 0;
}

.links-list li {
    margin-bottom: 1.5em;
}

.link-item {
    display: block;
}

.link-excerpt {
    margin-top: 0.3em;
    color: #999;
    font-style: italic;
    font-size: 0.95em;
}

/* Maze container for home page */
#maze-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

canvas {
    border: 1px solid #0a0a0a;
}

/* Responsive design */
@media (max-width: 1024px) {
    #maze-container {
        display: none;
    }
    
    .home-layout {
        justify-content: center;
    }
}

/* Bookmarks page */
.bookmarks {
    max-width: 750px;
}

.bookmark {
    margin-bottom: 28px;
    line-height: 1.7;
}

.bookmark-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 4px;
}

.bookmark-date {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.bookmark-notes {
    color: #999;
    font-style: italic;
    margin-top: 4px;
}

.bookmark-title a {
    color: #e0e0e0;
    text-decoration: none;
}

.bookmark-title a:hover {
    text-decoration: underline;
}

/* Page-specific overrides */
.home-page {
    align-items: flex-start;
}

@media (max-width: 1024px) {
    .home-page {
        justify-content: flex-end;
    }
}

.links-page {
    background-color: black;
    color: white;
}

/* Heart rating system */
.heart-full { color: #e74c3c; }
.heart-empty { color: #333; }
.rating {
    font-size: 0.5em;
    margin-left: 6px;
}