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

body {
    background-color: #0a0e17;
    color: #e0e6ed;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 3rem 1rem 2rem;
}

header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #f0f4f8;
    text-shadow: 0 0 30px rgba(100, 180, 255, 0.15);
}

/* Blog grid */
.blog-grid {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 680px) {
    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Liquid glass card */
.blog-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.03) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.blog-card-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.blog-card-info {
    padding: 1rem 1.2rem;
    position: relative;
    z-index: 2;
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f0f4f8;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.blog-card-date {
    font-size: 0.85rem;
    color: #8899aa;
}

/* Blog page styles */
.blog-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.blog-back {
    display: inline-block;
    color: #6ab0f3;
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.blog-back:hover {
    color: #9ccbf7;
}

.blog-header {
    margin-bottom: 2rem;
}

.blog-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #f0f4f8;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-header .blog-date {
    font-size: 0.9rem;
    color: #8899aa;
}

/* Markdown rendered content */
.blog-content {
    line-height: 1.75;
    font-size: 1.05rem;
    color: #cdd6e0;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
    color: #f0f4f8;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.blog-content h1 { font-size: 1.8rem; }
.blog-content h2 { font-size: 1.5rem; }
.blog-content h3 { font-size: 1.25rem; }

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

.blog-content a {
    color: #6ab0f3;
    text-decoration: underline;
}

.blog-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
}

.blog-content blockquote {
    border-left: 3px solid #3a4a5c;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #99aabb;
    font-style: italic;
}

.blog-content code {
    background: rgba(255, 255, 255, 0.07);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.blog-content pre {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.blog-content pre code {
    background: none;
    padding: 0;
    font-size: 0.88em;
    line-height: 1.6;
}

.blog-content ul,
.blog-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.4rem;
}

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.blog-content th,
.blog-content td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0.8rem;
    text-align: left;
}

.blog-content th {
    background: rgba(255, 255, 255, 0.05);
    color: #f0f4f8;
}

.blog-content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 2rem 0;
}
