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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-title a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.main-nav > ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: white;
    text-decoration: none;
}

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

.has-submenu {
    position: relative;
}

.has-submenu > span {
    cursor: pointer;
}

.submenu {
    display: none;
    position: absolute;
    background: #34495e;
    padding: 0.5rem;
    min-width: 200px;
    z-index: 100;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu li {
    padding: 0.25rem 0;
}

/* Main Content */
main {
    min-height: 60vh;
    margin-bottom: 3rem;
}

.content-page {
    max-width: 900px;
}

.page-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 1rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.description {
    font-size: 1.2rem;
    color: #666;
}

.page-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.page-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.page-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #34495e;
}

.page-content p {
    margin-bottom: 1rem;
}

.page-content ul, .page-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

/* Related Topics */
.related-topics {
    margin-top: 3rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid #2c3e50;
}

.related-topics h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.related-topics ul {
    list-style: none;
}

.related-topics li {
    margin-bottom: 0.5rem;
}

.related-topics a {
    color: #2c3e50;
    text-decoration: none;
}

.related-topics a:hover {
    text-decoration: underline;
}

/* Home Page */
.home-page {
    max-width: 900px;
}

.home-header {
    text-align: center;
    margin-bottom: 3rem;
}

.home-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.site-description {
    font-size: 1.3rem;
    color: #666;
}

.home-content {
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.home-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.section-preview {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.section-preview h2 {
    margin-bottom: 0.5rem;
}

.section-preview h2 a {
    color: #2c3e50;
    text-decoration: none;
}

.section-preview h2 a:hover {
    text-decoration: underline;
}

.section-preview p {
    color: #666;
}

/* List Pages */
.list-page {
    max-width: 900px;
}

.page-list {
    margin-top: 2rem;
}

.list-item {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.list-item h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.list-item a {
    color: #2c3e50;
    text-decoration: none;
}

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

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

.footer-container p {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .home-header h1 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}
