/* Variables de color */
:root {
    --color-bg: #202020;
    --color-text: #202020;
    --color-header-bg: #c6bcdd;
    --color-header-text: #202020;
    --color-border: #202122;
    --color-sidebar-bg: #a183d3;
    --color-sidebar-active: #9d77e4;
    --color-sidebar-active-text: #202020;
    --color-main-bg: #66997b;
    --color-card-bg: #dadadd;
    --color-card-text: #202020;
    --color-date: #4a4e69;
    --color-resource-category: #73468d;
}

body {
    margin: 0 10%;
    font-family: 'Courier New', Courier, monospace;
    background: var(--color-bg);
    color: var(--color-text);
}
header {
    background: var(--color-header-bg);
    color: var(--color-header-text);
    padding: 1rem 2rem;
    text-align: center;
    font-size: 2rem;
    letter-spacing: 2px;
    border-bottom: 3px solid var(--color-border);
}
h1 {
    margin: 0;
}
.loadSection {
    color: var(--color-sidebar-active-text);
    background-color: var(--color-sidebar-bg);
    font-weight: bold;
    cursor: pointer;
    padding:0 3px;
    border-radius: 4px;
}
.container {
    display: flex;
    height: 90vh;
}
.sidebar {
    width: 220px;
    background: var(--color-sidebar-bg);
    padding: 0;
    border-right: 3px solid var(--color-border);
}
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar li {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid var(--color-header-bg);
    transition: background 0.2s;
    font-size: 1.3rem;
}
.sidebar li.active, .sidebar li:hover {
    background: var(--color-sidebar-active);
    color: var(--color-sidebar-active-text);
    font-weight: bold;

}
main#main-content {
    flex: 1;
    padding: 1rem;
    background: var(--color-main-bg);
    overflow-y: auto;
}
.card {
    background: var(--color-card-bg);
    color: var(--color-card-text);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 8px #0002;
}
.card img {
    max-width: 100px;
    float: left;
    margin-right: 1rem;
    border-radius: 6px;
}
.card .date {
    font-size: 0.9rem;
    color: var(--color-date);
    margin-bottom: 0.5rem;
}
.card .title {
    display: flex;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    justify-content: space-between;
}
.card .text-content {
    font-size: 1rem;
    clear: both;
}
.link-list, .resource-list {
    padding-left: 1rem;
}
.link-list li, .resource-list li {
    margin-bottom: 0.7rem;
}
.resource-category {
    font-weight: bold;
    margin-top: 1.2rem;
    color: var(--color-resource-category);
}

@media (max-width: 668px) {
    body {
        margin: 0;
    }
    .container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        display: flex;
        justify-content: space-around;
        border-right: none;
        border-bottom: 3px solid var(--color-border);
    }
    .sidebar ul {
        display: flex;
        width: 100%;
        justify-content: space-around;
    }
    .sidebar li {
        border-bottom: none;
        border-right: 1px solid var(--color-header-bg);
        flex: 1;
        text-align: center;
    }
    .sidebar li:last-child {
        border-right: none;
    }
}