@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code&display=swap');

:root {
    --primary: hsl(215, 100%, 40%);
    --primary-dark: hsl(215, 100%, 30%);
    --background: #121212;
    --surface: #1e1e1e;
    --text: #ffffff;
    --code-bg: #2d2d2d;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

header {
    background-color: var(--surface);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.back-link {
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--primary);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.post-card {
    background-color: var(--surface);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.post-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
}

.post-excerpt {
    font-size: 1rem;
    color: var(--text);
}

.blog-post-card {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.post-content {
    text-align: left;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 0.5rem 0 1rem;
    color: var(--text);
}

.post-content p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.post-content ul,
.post-content ol {
    margin: 1rem 0 1.5rem 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--primary);
    padding: 1rem;
    margin: 2rem 0;
    font-style: italic;
    color: #aaa;
}

.post-content code,
code.hljs {
    font-family: 'Fira Code', monospace;
    background: rgba(100, 100, 100, 0.15);
    padding: 0.3em 0.6em;
    border-radius: 4px;
    font-size: 1rem;
}

.post-content pre {
    background: var(--code-bg);
    padding: 1rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid #333;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.h1-title {
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    color: var(--text);
    text-align: center;
}

.read-time {
    text-align: center;
    font-size: 1rem;
    color: #888;
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary);
}
