/* Base styles */
:root {
    --background-color: #fbfbfb;
    --text-color: #414752;
    --secondary-text: #9a9fa8;
    --border-color: #c9d0d9;
    --link-color: #0645ad;
    --link-visited: #0b0080;
    --link-hover: #3366bb;
    --button-bg: #f8f9fa;
    --button-border: #a2a9b1;
    --header-bg: #f6f6f6;
    --content-width: 1200px;
    --sidebar-width: 200px;
    --main-content-width: calc(var(--content-width) - var(--sidebar-width) - 20px);
}

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

body {
    font-family: sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:visited {
    color: var(--link-visited);
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

ul {
    list-style-position: inside;
    margin: 15px 0;
    padding-left: 20px;
}

h1, h2, h3 {
    font-weight: normal;
    margin: 20px 0 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

h1 {
    font-size: 2em;
    border-bottom: 1px solid var(--border-color);
}

h2 {
    font-size: 1.5em;
}

p {
    margin: 10px 0;
}

.wikipedia-container {
    max-width: var(--content-width);
    margin: 0 auto;
    background-color: white;
    min-height: 100vh;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Header styles */
.wiki-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--header-bg);
}

.wiki-logo {
    display: flex;
    align-items: center;
}

.wiki-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-title {
    font-size: 2em;
    color: var(--text-color);
    font-weight: bold;
    letter-spacing: 1px;
}

/* Wiki content */
.wiki-content {
    display: flex;
    min-height: calc(100vh - 150px);
}

/* Sidebar */
.wiki-sidebar {
    width: var(--sidebar-width);
    padding: 20px;
    border-right: 1px solid var(--border-color);
}

.main-navigation h2 {
    font-size: 1.2em;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

.main-navigation ul {
    list-style-type: none;
    padding-left: 5px;
}

.main-navigation li {
    margin-bottom: 8px;
}

/* Main content */
.wiki-main {
    flex-grow: 1;
    max-width: var(--main-content-width);
    padding: 20px;
}

.page-header {
    margin-bottom: 20px;
}

.page-actions {
    font-size: 0.85em;
    margin: 5px 0;
}

.user-info-container {
    display: flex;
    flex-direction: column;
}

.user-info {
    margin-bottom: 20px;
}

.info-box {
    float: right;
    width: 300px;
    margin: 0 0 20px 20px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    background-color: #f8f9fa;
}

.info-box-header {
    background-color: #eaecf0;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
    border-bottom: 1px solid var(--border-color);
}

.info-box-content {
    width: 100%;
    border-collapse: collapse;
}

.info-box-content th,
.info-box-content td {
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
}

.info-box-content th {
    width: 40%;
    background-color: #f5f5f5;
}

.content-section {
    margin: 30px 0;
    clear: both;
}

.edit-link {
    font-size: 0.7em;
    font-weight: normal;
}

.categories {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
}

/* Footer */
.wiki-footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
    color: var(--secondary-text);
}

/* Responsive styles */
@media screen and (max-width: 1200px) {
    :root {
        --content-width: 100%;
        --main-content-width: calc(100% - var(--sidebar-width) - 20px);
    }
}

@media screen and (max-width: 768px) {
    .wiki-content {
        flex-direction: column;
    }

    .wiki-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .wiki-main {
        max-width: 100%;
    }

    .info-box {
        width: 100%;
        float: none;
        margin: 20px 0;
    }
}

@media screen and (max-width: 576px) {
    .wiki-header {
        padding: 10px;
    }

    .logo-title {
        font-size: 1.6em;
    }
}
