/* ================================
   COMBINED MODERN BLOG STYLES
   File: blog-styles.css
   ================================ */

/* ================================
   BLOG PAGE LAYOUT
   ================================ */

   .blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.blog-hero {
    background: linear-gradient(135deg, var(--primary) 0%, rgba(26,26,26,0.8) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
}

.blog-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.blog-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.blog-main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    padding: 4rem 0;
    align-items: start;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* ================================
   MODERN BLOG POST CARDS
   ================================ */

.post-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    position: relative;
    border: 1px solid rgba(212,175,55,0.1);
}

.post-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(212,175,55,0.2);
}

.post-card-featured {
    background: var(--gradient-card);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.post-card-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-accent);
    border-radius: var(--border-radius-lg);
    padding: 2px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.post-layout-horizontal {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 0;
    min-height: 280px;
}

.post-image {
    position: relative;
    overflow: hidden;
    background: var(--secondary);
}

.post-layout-horizontal .post-image {
    aspect-ratio: 4 / 3;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-image-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.post-badge {
    background: rgba(0,0,0,0.8);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-badge-featured {
    background: var(--gradient-accent);
}

.post-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.post-category {
    background: rgba(212,175,55,0.1);
    color: var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.post-category:hover {
    background: var(--accent);
    color: var(--white);
}

.post-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary);
}

.post-title a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.post-title a:hover {
    color: var(--accent);
}

.post-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.post-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-lighter);
}

.read-time {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ================================
   BLOG SIDEBAR
   ================================ */

.blog-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(212,175,55,0.1);
}

.widget-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 0.5rem;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-accent);
}

.search-form {
    position: relative;
}

.search-field {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.search-field:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.categories-list,
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li,
.recent-posts-list li {
    margin-bottom: 0.8rem;
}

.categories-list a,
.recent-posts-list a {
    text-decoration: none;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.categories-list a:hover,
.recent-posts-list a:hover {
    color: var(--accent);
    border-bottom-color: rgba(212,175,55,0.3);
}

.category-count {
    background: var(--secondary);
    color: var(--text-light);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

.recent-post-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.recent-post-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content {
    flex: 1;
}

.recent-post-title {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.3rem;
}

.recent-post-date {
    font-size: 0.75rem;
    color: var(--text-lighter);
}

/* ================================
   PAGINATION
   ================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 4rem 0;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    text-decoration: none;
    color: var(--text);
    border: 2px solid var(--border);
    border-radius: 50%;
    font-weight: 500;
    transition: var(--transition);
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--gradient-accent);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

.page-numbers.prev,
.page-numbers.next {
    width: auto;
    padding: 0 1rem;
    border-radius: var(--border-radius);
}

/* ================================
   SINGLE POST STYLES
   ================================ */

.post-header {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    color: var(--white);
    overflow: hidden;
}

.post-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.post-header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.post-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg, 
        rgba(0,0,0,0.1) 0%, 
        rgba(0,0,0,0.4) 50%, 
        rgba(0,0,0,0.8) 100%
    );
}

.post-header-content {
    position: relative;
    z-index: 3;
    padding: 4rem 0;
    max-width: 800px;
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.post-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.post-breadcrumb a:hover {
    color: var(--accent);
}

.separator {
    opacity: 0.6;
}

.post-meta-top {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.post-category-badge {
    background: var(--gradient-accent);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.post-category-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.post-meta-items {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.post-meta-items span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.post-title-single {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.post-author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.2);
}

.author-avatar-large {
    flex-shrink: 0;
}

.author-avatar-large img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
}

.author-details {
    flex: 1;
}

.author-name {
    margin: 0 0 0.3rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.author-name a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.author-name a:hover {
    color: var(--accent);
}

.author-bio {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
}

/* ================================
   POST CONTENT
   ================================ */

.post-content-wrapper {
    background: var(--white);
    position: relative;
    z-index: 2;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    padding: 4rem 0;
    align-items: start;
}

.post-content-main {
    max-width: 800px;
}

.post-content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
}

.post-content-text h1,
.post-content-text h2,
.post-content-text h3,
.post-content-text h4,
.post-content-text h5,
.post-content-text h6 {
    font-family: var(--font-display);
    color: var(--primary);
    margin: 2.5rem 0 1rem 0;
    line-height: 1.3;
    scroll-margin-top: 2rem;
}

.post-content-text h2 {
    font-size: 2rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 0.5rem;
}

.post-content-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.post-content-text h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

.post-content-text h4 {
    font-size: 1.3rem;
    font-weight: 500;
}

.post-content-text p {
    margin-bottom: 1.5rem;
}

.post-content-text blockquote {
    background: var(--secondary);
    border-left: 4px solid var(--accent);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    font-size: 1.2rem;
    position: relative;
}

.post-content-text blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent);
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-family: var(--font-display);
    opacity: 0.3;
}

.post-content-text ul,
.post-content-text ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content-text li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.post-content-text img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    box-shadow: var(--shadow-soft);
}

.post-content-text code {
    background: var(--secondary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--accent);
}

.post-content-text pre {
    background: var(--primary);
    color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 2rem 0;
}

.post-content-text pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* ================================
   POST TAGS
   ================================ */

.post-tags {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--secondary);
    border-radius: var(--border-radius);
}

.tags-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag-item {
    background: var(--white);
    color: var(--text);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.tag-item:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

/* ================================
   POST SIDEBAR
   ================================ */

.post-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.toc-widget,
.reading-progress {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(212,175,55,0.1);
}

.toc-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.toc-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-accent);
}

.toc-widget {
    display: block;
}

.toc-widget:not(.toc-generated) {
    display: none;
}

/* Or hide when TOC container is empty */
.toc-widget:has(#table-of-contents:empty) {
    display: none;
}

#table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#table-of-contents li {
    margin-bottom: 0.5rem;
}

#table-of-contents a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: var(--transition);
    display: block;
    padding: 0.3rem 0;
    border-left: 3px solid transparent;
    padding-left: 1rem;
    word-break: break-word;
}

#table-of-contents a:hover,
#table-of-contents a.active {
    color: var(--accent);
    border-left-color: var(--accent);
    transform: translateX(5px);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-accent);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    display: block;
}

/* ================================
   AUTHOR BIO SECTION
   ================================ */

.author-bio-section {
    background: var(--secondary);
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.author-bio-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    max-width: 800px;
    margin: 0 auto;
}

.author-avatar-xl {
    flex-shrink: 0;
}

.author-avatar-xl img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--border);
    transition: var(--transition);
}

.author-bio-card:hover .author-avatar-xl img {
    border-color: var(--accent);
}

.author-bio-content {
    flex: 1;
}

.author-name-large {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0;
}

.author-name-large a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.author-name-large a:hover {
    color: var(--accent);
}

.author-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.author-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-stats span {
    color: var(--text-light);
    font-weight: 500;
}

.author-stats-link {
    color: var(--text-light);
}

.author-stats-link:hover {
    color: var(--accent);
}
/* ================================
   RELATED POSTS SECTION
   ================================ */

.related-posts-section {
    padding: 4rem 0;
    background: var(--white);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.related-post-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(212,175,55,0.1);
}

.related-post-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(212,175,55,0.2);
}

.related-post-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 1.5rem;
}

.related-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.related-post-category {
    background: rgba(212,175,55,0.1);
    color: var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 500;
}

.related-post-date {
    color: var(--text-light);
}

.related-post-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.related-post-title a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.related-post-title a:hover {
    color: var(--accent);
}

.related-post-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 1024px) {
    .blog-main,
    .post-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .blog-sidebar,
    .post-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
    
    .sidebar-widget,
    .toc-widget,
    .reading-progress {
        margin-bottom: 0;
    }
    
    .post-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .blog-container {
        padding: 0 1rem;
    }
    
    .blog-title,
    .post-title-single {
        font-size: 2.5rem;
    }
    
    .blog-subtitle {
        font-size: 1.1rem;
    }
    
    .post-layout-horizontal {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .post-layout-horizontal .post-image {
        aspect-ratio: 16/9;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .post-title {
        font-size: 1.3rem;
    }
    
    .post-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .blog-sidebar,
    .post-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar-widget,
    .toc-widget,
    .reading-progress {
        padding: 1.5rem;
    }
    
    .post-header {
        min-height: 60vh;
    }
    
    .post-header-content {
        padding: 2rem 0;
    }
    
    .post-meta-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .post-author-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .post-layout {
        padding: 2rem 0;
    }
    
    .post-content-text {
        font-size: 1rem;
    }
    
    .post-content-text h2 {
        font-size: 1.8rem;
    }
    
    .post-content-text h3 {
        font-size: 1.4rem;
    }
    
    .author-bio-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .author-name-large {
        font-size: 1.5rem;
    }
    
    .author-stats {
        justify-content: center;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-tags {
        padding: 1.5rem;
    }
    
    .tags-list {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .blog-title,
    .post-title-single {
        font-size: 2rem;
    }
    
    .post-breadcrumb {
        font-size: 0.8rem;
    }
    
    .post-meta-items {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }
    
    .related-post-card {
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* ================================
   ANIMATION STYLES
   ================================ */

.post-card.keyboard-focus {
    transform: translateY(-8px) !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12) !important;
    border-color: var(--accent) !important;
}

.loading-posts {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem;
    color: var(--text-light);
}

.loading-spinner {
    margin-bottom: 1rem;
}

.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* ================================
   PRINT STYLES
   ================================ */

@media print {
    .post-sidebar,
    .author-bio-section,
    .related-posts-section,
    .blog-sidebar,
    .pagination {
        display: none !important;
    }
    
    .post-layout,
    .blog-main {
        grid-template-columns: 1fr !important;
    }
    
    .post-header {
        min-height: auto !important;
        page-break-inside: avoid;
    }
    
    .post-content-text {
        font-size: 12pt !important;
        line-height: 1.5 !important;
    }
    
    .post-content-text h1,
    .post-content-text h2,
    .post-content-text h3 {
        page-break-after: avoid;
    }
}

/* ================================================================================================
   AUTHOR PAGE STYLES
   ================================ */

   .author-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

.author-avatar-hero {
    flex-shrink: 0;
}

.author-avatar-hero img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
}

.author-info {
    flex: 1;
}

.author-sidebar-info {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.author-details-sidebar p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .author-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .author-sidebar-info {
        flex-direction: column;
        text-align: center;
    }
}