* {
    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;
    color: #333;
    background: #fff;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.navbar h1 {
    font-size: 1.25rem;
}

.navbar a {
    color: #333;
    text-decoration: none;
}

.navbar a:hover {
    color: #666;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

main h2 {
    margin-bottom: 1.5rem;
}

.posts-list {
    list-style: none;
}

.posts-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
}

.posts-list .post-date {
    white-space: nowrap;
    flex-shrink: 0;
}

.posts-list a {
    color: #333;
    text-decoration: none;
}

.posts-list a:hover {
    color: #0066cc;
}

.post-date {
    color: #888;
    font-size: 0.9rem;
}

.blog-post {
    line-height: 1.8;
}

.blog-post h1 {
    margin-bottom: 0.5rem;
}

.blog-post .post-date {
    margin-bottom: 2rem;
}

.blog-post p {
    margin-bottom: 1rem;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin: 1.5rem 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

footer {
    margin-top: 4rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 0.9rem;
}

.login-form {
    max-width: 360px;
    margin: 2rem auto;
}

.login-form h2 {
    margin-bottom: 1rem;
}

.login-form input {
    display: block;
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.login-form button {
    width: 100%;
    padding: 0.5rem;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.login-form button:hover {
    background: #555;
}

.editor-container h2 {
    margin-bottom: 1rem;
}

.editor-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.editor-controls select {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.editor-container label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    margin-top: 0.75rem;
}

.editor-container input,
.editor-container textarea {
    display: block;
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.editor-container textarea {
    resize: vertical;
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.editor-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.editor-container button,
.editor-controls button {
    padding: 0.5rem 1.25rem;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.editor-container button:hover,
.editor-controls button:hover {
    background: #555;
}

button.tab-active {
    background: #000;
}

#delete-btn {
    background: #c0392b;
}

#delete-btn:hover {
    background: #e74c3c;
}

.preview {
    margin-top: 1rem;
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 4px;
    line-height: 1.8;
}

.preview h1, .preview h2, .preview h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.preview p {
    margin-bottom: 1rem;
}

.preview code {
    background: #f5f5f5;
    padding: 0.15rem 0.3rem;
    border-radius: 3px;
    font-size: 0.9em;
}

.preview pre {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.preview pre code {
    background: none;
    padding: 0;
}
