/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global styles */
body {
    font-family: 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.5;
    background-color: #fff;
    color: #000;
}

/* Container layout */
.container {
    display: flex;
    border: 3px solid #A3E4D7;
    margin: 20px auto;
    max-width: 1000px;
    min-height: 80vh;
    background-color: white;
}

/* Sidebar */
nav {
    width: 220px;
    padding: 20px;
    border-right: 1px solid #A3E4D7;
    background-color: #f8fffc;
    box-shadow: 4px 0 6px -2px rgba(0,0,0,0.1);
}

nav a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

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

.nav-divider {
    border: none;
    border-top: 1px solid #ccc;
    margin: 8px 0;
}

/* Dark mode toggle button */
#dark-mode-toggle {
    font-family: 'Times New Roman';
    font-size: 14px;
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    display: block;
    margin-top: 20px;
}

#dark-mode-toggle:hover {
    text-decoration: underline;
}

/* Main content */
main {
    flex-grow: 1;
    padding: 20px;
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
}

/* Article index */
.article-list {
    list-style: none;
    padding-left: 0;
}

.article-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

.article-list a {
    flex: 1;
    color: #0645AD;
    text-decoration: none;
}

.article-list a:hover {
    text-decoration: underline;
}

.article-list .date {
    color: #777;
    font-size: 14px;
    white-space: nowrap;
    padding-left: 10px;
}

/* Footer */
footer {
    max-width: 1000px;
    margin: 20px auto;
    font-size: 14px;
    text-align: center;
}

/* Dark mode */
.dark-mode {
    background-color: #222;
    color: #ddd;
}

.dark-mode .container {
    border-color: #76C7B7;
    background-color: #2b2b2b;
}

.dark-mode nav {
    background-color: #333;
    border-right-color: #76C7B7;
}

.dark-mode main {
    color: #ddd;
}

.dark-mode a,
.dark-mode #dark-mode-toggle {
    color: #ddd;
}

.dark-mode .article-list li {
    border-bottom: 1px solid #444;
}

.dark-mode .article-list a {
    color: #9dcaff;
}

.dark-mode .article-list .date {
    color: #aaa;
}

/* Profile image styling */
.profile-pic {
    display: block;
    max-width: 160px;
    border-radius: 6px;
    margin: 20px 0;
    border: 2px solid #A3E4D7;
}

/* Placeholder message styling */
.in-progress-message {
    font-style: italic;
    font-size: 18px;
    padding: 20px;
    background-color: #fff8dc;
    border: 1px dashed #f39c12;
    margin-top: 20px;
    border-radius: 8px;
    color: #444;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        flex-direction: column;
        border-width: 0 0 3px 0;
        border-bottom: 4px solid #A3E4D7;
    }

    nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #A3E4D7;
    }

    main {
        padding: 10px;
    }

    .dark-mode .container {
        border-bottom-color: #76C7B7;
    }

    .dark-mode nav {
        border-bottom-color: #76C7B7;
    }
}

/* NEW: Extra spacing for transitions */
.spaced {
    margin-top: 20px;
}

/* NEW: Interest list styling */
.interest-list {
    margin-top: 10px;
    margin-bottom: 20px;
    padding-left: 20px;
}

.interest-list li {
    margin-bottom: 6px;
}

