/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Main content */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 3rem;
    background: white;
    border-radius: 20px 20px 0 0;
    position: relative;
    z-index: 1;
    margin-top: -2rem;
    /*box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);*/
}

/* Header and Navigation */
.navbar {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.site-title a:hover {
    transform: translateY(-1px);
}

.site-logo-full {
    height: 2.5rem;
    width: auto;
    transition: all 0.3s ease;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    display: inline-block;
}

.site-logo-full:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-menu a {
    color: #4a5568;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Hero Section */
.hero-section {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    color: white;
    padding: 2.5rem 0 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::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="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Controls Container */
.controls-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Search bar */
.search-container {
    margin-bottom: 1.5rem;
}

.search-wrapper {
    position: relative;
    max-width: 450px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #2d3748;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: #a0aec0;
}

/* Tag Filter Tabs */
.tag-tabs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tag-tab {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    backdrop-filter: blur(10px);
}

.tag-tab:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tag-tab.active {
    background: white;
    color: #4c51bf;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tag-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tag-tab.active .tag-count {
    background: #e2e8f0;
    color: #4a5568;
}

/* Main content */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 3rem;
    background: white;
    border-radius: 20px 20px 0 0;
    position: relative;
    z-index: 1;
    margin-top: -2rem;
    /*box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);*/
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #a0aec0;
}

.loading-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.loading-state p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Posts */
.posts-container {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.post-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
    cursor: pointer; /* Indicate it's clickable */
    /* Animation for posts appearing */
    opacity: 0;
    transform: translateY(20px);
    animation: postFadeIn 0.6s ease forwards;
    /* Prepare for expansion animation */
    transform-origin: center;
    will-change: transform;
}

/* Enhanced hover effect for expansion preview */
.post-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.post-excerpt {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Staggered animation for multiple posts */
.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }
.post-card:nth-child(4) { animation-delay: 0.4s; }
.post-card:nth-child(5) { animation-delay: 0.5s; }
.post-card:nth-child(6) { animation-delay: 0.6s; }
.post-card:nth-child(7) { animation-delay: 0.7s; }
.post-card:nth-child(8) { animation-delay: 0.8s; }

@keyframes postFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Expansion animation keyframes */
@keyframes expandCard {
    from {
        transform: scale(1);
        border-radius: 16px;
    }
    to {
        transform: scale(1);
        border-radius: 0;
    }
}

@keyframes contractCard {
    from {
        transform: scale(1);
        border-radius: 0;
    }
    to {
        transform: scale(1);
        border-radius: 16px;
    }
}

/* Smooth content fade transitions */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Back button for expanded view */
.back-button {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: #667eea;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.back-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

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

.post-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a202c;
    line-height: 1.3;
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.post-excerpt {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.post-tag {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    color: #4c51bf;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #667eea20;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: #553c9a;
    transform: translateX(4px);
}

/* Image styles - responsive images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Footer - hidden initially, shown after content loads */
footer {
    background: #1a202c;
    color: white;
    padding: 3rem 0 1rem;
    text-align: center;
    display: none; /* Hidden by default */
    transition: opacity 0.3s ease;
}

/* Show footer when content is loaded */
body.content-loaded footer {
    display: block;
    animation: fadeInFooter 0.5s ease;
}

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

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: #a0aec0;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
    transform: translateY(-2px);
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 2rem 0 1.5rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-menu a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 1rem;
        margin-top: -1rem;
        border-radius: 15px 15px 0 0;
    }
    
    .posts-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-card {
        padding: 1.5rem;
    }
    
    .tag-tabs-container {
        gap: 0.5rem;
    }
    
    .tag-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .search-input {
        padding: 1rem 1rem 1rem 3rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .controls-container {
        padding: 0 1rem;
    }
    
    .search-wrapper {
        max-width: 100%;
    }
}

/* Blog post page specific styles */
.post-content {
    background: white;
    border-radius: 16px;
    padding: 3rem 4rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 1100px;
    margin: 0 auto;
    border: 1px solid #f1f5f9;
}

.post-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a202c;
    font-weight: 800;
}

.post-content .post-meta {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
    color: #64748b;
}

.post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #4a5568;
}

.post-content h2 {
    margin: 2rem 0 1rem 0;
    color: #2d3748;
    font-weight: 700;
}

.post-content h3 {
    margin: 1.5rem 0 0.5rem 0;
    color: #2d3748;
    font-weight: 600;
}

/* About page specific styles */
.about-content {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #f1f5f9;
}

.about-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1a202c;
    text-align: center;
    font-weight: 800;
}

.contact-info {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    border: 1px solid #e2e8f0;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: #2d3748;
    font-weight: 700;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

/* Utility classes */
.hidden {
    display: none;
}

/* Comments Section */
.comments-section {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #e2e8f0;
}

.comments-header {
    text-align: center;
    margin-bottom: 2rem;
}

.comments-header h3 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comments-header p {
    color: #718096;
    font-size: 0.95rem;
}

/* Container adjustments for post pages */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background: transparent;
}

/* Post Content Styling - Card-like design matching homepage */
.post-content {
    background: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

/* Gradient line at top like homepage cards */
.post-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.back-link {
    padding: 2rem 2rem 0 2rem;
    margin-bottom: 2rem;
}

.back-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link a:hover {
    color: #2980b9;
    transform: translateX(-2px);
}

.post-header {
    padding: 0 2rem 2rem 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.2;
}

.post-meta {
    color: #7f8c8d;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.post-meta .separator {
    margin: 0 1rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Tags matching homepage style */
.post-tags .tag {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    color: #4c51bf;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #667eea20;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tags .tag:hover {
    background: linear-gradient(135deg, #667eea25 0%, #764ba225 100%);
    transform: translateY(-1px);
}

.post-body {
    padding: 0 2rem 2rem 2rem;
    line-height: 1.8;
    color: #2d3748;
    font-size: 1.05rem;
}

/* Enhanced post body content styling */
.post-body h1,
.post-body h2,
.post-body h3 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-body p {
    margin-bottom: 1.2rem;
}

.post-body ul,
.post-body ol {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

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

.post-body code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e83e8c;
}

.post-body pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.2rem;
}

/* Comments Section - Seamlessly connected */
.comments-section {
    background: white;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    border-top: none;
    padding: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.comments-header {
    text-align: center;
    margin-bottom: 2rem;
}

.comments-header h3 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comments-header p {
    color: #718096;
    font-size: 0.95rem;
}

/* Style the utterances iframe when it loads */
.utterances {
    max-width: 100% !important;
}

/* Responsive adjustments for comments and posts */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .post-content {
        border-radius: 12px 12px 0 0;
    }
    
    .comments-section {
        padding: 1.5rem;
        border-radius: 0 0 12px 12px;
    }
    
    .back-link,
    .post-header,
    .post-body {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .comments-header h3 {
        font-size: 1.3rem;
    }
}

/* Style the utterances iframe when it loads */
.utterances {
    max-width: 100% !important;
}

/* Responsive adjustments for comments and posts */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .post-content {
        border-radius: 12px 12px 0 0;
    }
    
    .comments-section {
        margin-left: 1rem;
        margin-right: 1rem;
        padding: 1.5rem;
        border-radius: 0 0 12px 12px;
    }
    
    .back-link,
    .post-header,
    .post-body {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .comments-header h3 {
        font-size: 1.3rem;
    }
}
/* === CARD EXPANSION UTILITIES === */

/* Utility classes for expansion states */
.expansion-active {
    overflow: hidden; /* Prevent scrolling on body during expansion */
}

.expansion-active .posts-container {
    pointer-events: none; /* Prevent interaction with other cards */
}

.expansion-active .post-card:not(.expanding) {
    opacity: 0.3;
    transform: scale(0.95);
    transition: all 0.6s ease;
}

/* Smooth scroll behavior for expanded content */
/* === EXPANDED POST CONTENT STYLING === */

.expanded-post-content {
    background: white;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.expanded-post-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #eee;
}

.expanded-post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.2;
}

.expanded-post-meta {
    color: #7f8c8d;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.expanded-post-meta .separator {
    margin: 0 1rem;
}

.expanded-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.expanded-post-tags .tag {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    color: #4c51bf;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #667eea20;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.expanded-post-tags .tag:hover {
    background: linear-gradient(135deg, #667eea25 0%, #764ba225 100%);
    transform: translateY(-1px);
}

.expanded-post-body {
    padding: 2rem;
    line-height: 1.8;
    color: #2d3748;
    font-size: 1.05rem;
}

.expanded-post-body h1,
.expanded-post-body h2,
.expanded-post-body h3 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.expanded-post-body p {
    margin-bottom: 1.2rem;
}

.expanded-post-body ul,
.expanded-post-body ol {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

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

.expanded-comments-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border-top: 1px solid #e2e8f0;
}

.expanded-comments-section .comments-header {
    text-align: center;
    margin-bottom: 2rem;
}

.expanded-comments-section .comments-header h3 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.expanded-comments-section .comments-header p {
    color: #718096;
    font-size: 0.95rem;
}

/* Mobile responsive for expanded content */
@media (max-width: 768px) {
    .expanded-post-header {
        padding: 1.5rem;
    }
    
    .expanded-post-header h1 {
        font-size: 2rem;
    }
    
    .expanded-post-body {
        padding: 1.5rem;
    }
    
    .expanded-comments-section {
        padding: 1.5rem;
    }
    
    .back-button {
        top: 1rem;
        left: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}
