/* Blog shared styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    min-height: 100vh;
    background: #0a0a0f;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #e0e0e0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container { max-width: 720px; width: 100%; }

header { text-align: center; margin-bottom: 3rem; animation: fadeIn 0.6s ease; }

header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header .sub { color: rgba(255,255,255,0.4); font-size: 0.9rem; margin-top: 0.3rem; }

.back-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.back-link:hover { text-decoration: underline; }

/* Post card (index page) */
.post {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.6s ease;
    transition: all 0.3s;
}

.post:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(102,126,234,0.3);
}

.post .meta { font-size: 0.8rem; color: rgba(255,255,255,0.35); margin-bottom: 0.5rem; }

.post h2 { font-size: 1.3rem; margin-bottom: 0.5rem; }

.post h2 a {
    color: #e0e0e0;
    text-decoration: none;
}

.post h2 a:hover { color: #667eea; }

.post p {
    color: rgba(255,255,255,0.55);
    font-size: 0.95rem;
    line-height: 1.6;
}

.post .read-more {
    display: inline-block;
    margin-top: 0.8rem;
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
}

.post .read-more:hover { text-decoration: underline; }

.empty-state {
    text-align: center;
    padding: 3rem;
    color: rgba(255,255,255,0.3);
}

.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { color: rgba(255,255,255,0.5); margin-bottom: 0.5rem; }

/* Post content page */
.post-content {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 2rem;
    line-height: 1.8;
    font-size: 1rem;
    animation: fadeIn 0.6s ease;
}

.post-content h1 { font-size: 1.6rem; margin: 1.5rem 0 0.8rem; color: #fff; }
.post-content h2 { font-size: 1.3rem; margin: 1.5rem 0 0.8rem; color: #ddd; }
.post-content h3 { font-size: 1.1rem; margin: 1.2rem 0 0.6rem; color: #ccc; }

.post-content p { margin-bottom: 1rem; color: #c0c0c0; }

.post-content a { color: #667eea; text-decoration: none; }
.post-content a:hover { text-decoration: underline; }

.post-content blockquote {
    border-left: 3px solid #667eea;
    padding-left: 1rem;
    margin: 1rem 0;
    color: rgba(255,255,255,0.6);
    font-style: italic;
}

.post-content ul, .post-content ol { margin: 0.5rem 0 1rem 1.5rem; color: #c0c0c0; }
.post-content li { margin-bottom: 0.3rem; }

.post-content code {
    background: rgba(255,255,255,0.08);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e0e0e0;
}

.post-content pre {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.post-content pre code {
    background: none;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

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

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

.post-content th {
    background: rgba(255,255,255,0.06);
    color: #ddd;
    font-weight: 600;
}

.post-content td { color: #c0c0c0; }

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

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

footer {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.2);
}
