/* Blog Post Page Styles */

/* Override body overflow to allow scrolling */
body {
    overflow-y: auto;
}

.post-container {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    padding: 120px 2rem 80px;
    max-width: 720px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 3rem;
    animation: fadeSlideIn 1s ease-out;
    position: relative;
    z-index: 5;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #a855f7;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
    cursor: pointer;
}

.back-link:hover {
    color: #8b5cf6;
    transform: translateX(-4px);
}

.post-title-main {
    font-size: clamp(2rem, 6vw, 2.75rem);
    font-weight: 700;
    color: #f5f5f5;
    margin: 0 0 1rem 0;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.post-meta-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.01em;
}

.post-meta-main .post-date {
    color: rgba(255, 255, 255, 0.45);
}

.post-meta-main .post-divider {
    color: rgba(255, 255, 255, 0.25);
}

.post-meta-main .post-read-time {
    color: rgba(255, 255, 255, 0.45);
}

.post-content {
    animation: fadeSlideIn 1.2s ease-out;
    position: relative;
    z-index: 4;
}

/* Typography for blog post content */
.post-content h2 {
    font-size: clamp(1.5rem, 4vw, 1.875rem);
    font-weight: 600;
    color: #f5f5f5;
    margin: 2.5rem 0 1rem 0;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.post-content h2:first-child {
    margin-top: 0;
}

.post-content h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    color: #f5f5f5;
    margin: 2rem 0 0.75rem 0;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.post-content p {
    color: #d1d1d1;
    font-size: 1.0625rem;
    line-height: 1.75;
    margin: 0 0 1.5rem 0;
    letter-spacing: 0.01em;
}

.post-content a {
    color: #a855f7;
    text-decoration: none;
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    transition: all 0.3s ease;
}

.post-content a:hover {
    color: #8b5cf6;
    border-bottom-color: #8b5cf6;
}

.post-content ul,
.post-content ol {
    color: #d1d1d1;
    font-size: 1.0625rem;
    line-height: 1.75;
    margin: 0 0 1.5rem 0;
    padding-left: 1.5rem;
    letter-spacing: 0.01em;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content li:last-child {
    margin-bottom: 0;
}

.post-content strong {
    color: #f5f5f5;
    font-weight: 600;
}

.post-content em {
    font-style: italic;
}

.post-content blockquote {
    border-left: 3px solid #a855f7;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #d1d1d1;
    font-size: 1.125rem;
    line-height: 1.75;
}

.post-content code {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 4px;
    padding: 0.2em 0.4em;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #f5f5f5;
}

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

.post-content pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    display: block;
}

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

.post-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    animation: fadeSlideIn 1.4s ease-out;
    position: relative;
    z-index: 5;
}

.back-link-bottom {
    display: inline-flex;
    align-items: center;
    color: #a855f7;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
    cursor: pointer;
}

.back-link-bottom:hover {
    color: #8b5cf6;
    transform: translateX(-4px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-container {
        padding: 100px 1.5rem 80px;
    }

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

    .post-content h2 {
        margin: 2rem 0 0.75rem 0;
    }

    .post-content h3 {
        margin: 1.5rem 0 0.5rem 0;
    }

    .post-content blockquote {
        padding-left: 1rem;
        margin: 1.5rem 0;
    }

    .post-footer {
        margin-top: 3rem;
    }
}

/* Animation for fade slide in (reuse from main style) */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
