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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.layout {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    width: 250px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: fit-content;
}

.sidebar h3 {
    color: #667eea;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.sidebar ul {
    list-style: none;
    margin-bottom: 25px;
}

.sidebar li {
    margin-bottom: 8px;
}

.sidebar a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar a:hover {
    background-color: #f0f0f0;
    color: #667eea;
}

.sidebar a.active {
    background-color: #667eea;
    color: white;
}

.main-content {
    flex: 1;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.content-section.active .posts-list {
    animation: fadeIn 0.3s ease-in;
}

.posts-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.post {
    border-bottom: 1px solid #e0e0e0;
    padding: 25px 0;
}

.post:last-child {
    border-bottom: none;
}

.post-header {
    margin-bottom: 15px;
}

.post-title {
    font-size: 1.5em;
    color: #667eea;
    margin-bottom: 8px;
}

.post-date {
    font-size: 0.9em;
    color: #888;
    display: flex;
    align-items: center;
}

.post-date::before {
    content: "📅";
    margin-right: 5px;
}

.post-content {
    white-space: pre-wrap;
    line-height: 1.8;
    color: #444;
}

.no-posts {
    text-align: center;
    padding: 40px;
    color: #888;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #888;
}

.loading::after {
    content: "...";
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: ".";
    }
    40% {
        content: "..";
    }
    60%, 100% {
        content: "...";
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 800px) {
    header h1 {
        font-size: 2em;
    }

    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .posts-list {
        padding: 20px;
    }

    .post-title {
        font-size: 1.3em;
    }
}
