/*
 * Blog App Styles
 * Tokenized using Occam's Model Design System
 * Covers: post_list.html + post_detail.html
 */

/* ===== BLOG HERO (replaces Bootstrap bg-primary) ===== */
.blog-hero {
    background-color: var(--om-blue-500);
    color: white;
}

/* ===== BLOG BUTTONS (replaces Bootstrap btn-primary / btn-outline-primary) ===== */
.blog-btn-primary {
    background-color: var(--om-blue-500);
    border-color: var(--om-blue-500);
    color: white;
}

.blog-btn-primary:hover {
    background-color: var(--om-blue-600);
    border-color: var(--om-blue-600);
    color: white;
}

.blog-btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--om-blue-500-rgb), 0.25);
}

.blog-btn-outline {
    background-color: transparent;
    border-color: var(--om-blue-500);
    color: var(--om-blue-500);
}

.blog-btn-outline:hover {
    background-color: var(--om-blue-500);
    border-color: var(--om-blue-500);
    color: white;
}

.blog-btn-outline:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--om-blue-500-rgb), 0.25);
}

/* Blog Badge (replaces Bootstrap bg-primary bg-opacity-10 text-primary) */
.blog-badge {
    background-color: rgba(var(--om-blue-500-rgb), 0.1);
    color: var(--om-blue-500);
}

/* ===== SHARED ===== */

/* Author Avatars */
.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--om-radius-full);
    object-fit: cover;
    border: var(--om-border-2) solid var(--om-neutral-200);
}

.author-avatar-lg {
    width: 156px;
    height: 156px;
    border-radius: var(--om-radius-full);
    object-fit: cover;
    border: var(--om-border-2) solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ===== POST LIST ===== */

/* Blog Card */
.blog-card {
    background: white;
    border-radius: var(--om-radius-2xl);
    box-shadow: var(--om-shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--om-duration-300) var(--om-ease-in-out);
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--om-shadow-card-hover);
    border-color: var(--om-blue-500);
}

.blog-card-title {
    color: var(--om-neutral-900);
    text-decoration: none;
    transition: color var(--om-duration-200) var(--om-ease-in-out);
}

.blog-card-title:hover {
    color: var(--om-blue-500);
}

/* Post excerpt text */
.blog-card-excerpt {
    font-size: var(--om-text-base);
    line-height: var(--om-leading-loose);
}

/* Badge override */
.blog-card .badge {
    font-weight: var(--om-font-medium);
    padding: 0.5em 0.85em;
}

/* Empty State */
.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--om-radius-full);
    background: var(--om-neutral-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: var(--om-text-4xl);
    color: var(--om-neutral-400);
}

/* ===== POST DETAIL ===== */

/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--om-border-4);
    background: rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--om-blue-500), var(--om-green-500));
    width: 0%;
    transition: width var(--om-duration-100) ease-out;
}

/* Blog Header */
.blog-header {
    padding-top: var(--om-space-8);
    padding-bottom: var(--om-space-20);
}

.back-link:hover {
    color: white !important;
}

/* Blog Content Typography */
.blog-content {
    font-size: var(--om-text-lg);
    line-height: var(--om-leading-loose);
    color: var(--om-neutral-700);
}

.blog-content p {
    margin-bottom: var(--om-space-7);
}

.blog-content h2 {
    font-size: var(--om-text-2xl);
    font-weight: var(--om-font-bold);
    color: var(--om-neutral-900);
    margin-top: var(--om-space-10);
    margin-bottom: var(--om-space-4);
    padding-bottom: var(--om-space-2);
    border-bottom: var(--om-border-2) solid var(--om-neutral-200);
}

.blog-content h3 {
    font-size: var(--om-text-xl);
    font-weight: var(--om-font-semibold);
    color: var(--om-neutral-800);
    margin-top: var(--om-space-8);
    margin-bottom: var(--om-space-3);
}

.blog-content h4 {
    font-size: var(--om-text-lg);
    font-weight: var(--om-font-semibold);
    color: var(--om-neutral-700);
    margin-top: var(--om-space-6);
    margin-bottom: var(--om-space-2);
}

.blog-content ul, .blog-content ol {
    margin-bottom: var(--om-space-7);
    padding-left: var(--om-space-6);
}

.blog-content li {
    margin-bottom: var(--om-space-3);
    padding-left: var(--om-space-2);
}

.blog-content blockquote {
    border-left: var(--om-border-4) solid var(--om-blue-500);
    padding: var(--om-space-5) var(--om-space-6);
    margin: var(--om-space-8) 0;
    background: var(--om-neutral-50);
    border-radius: 0 var(--om-radius-lg) var(--om-radius-lg) 0;
    font-style: italic;
    color: var(--om-neutral-600);
}

.blog-content blockquote p:last-child {
    margin-bottom: 0;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--om-radius-xl);
    margin: var(--om-space-8) 0;
    box-shadow: var(--om-shadow-md);
}

.blog-content a {
    color: var(--om-blue-500);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-content a:hover {
    color: var(--om-blue-600);
}

.blog-content strong {
    color: var(--om-neutral-900);
    font-weight: var(--om-font-semibold);
}

.blog-content code {
    background-color: var(--om-neutral-100);
    padding: 0.2rem var(--om-space-2);
    border-radius: var(--om-radius-base);
    font-size: var(--om-text-sm);
    color: var(--om-error-400);
}

/* CTA Card */
.cta-card {
    background: white;
    border-radius: var(--om-radius-2xl);
    box-shadow: var(--om-shadow-md);
    border: 1px solid var(--om-neutral-200);
}

/* Share Buttons */
.share-buttons .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--om-radius-full);
}
