/* Blog System Styles */
/* Pixel Snake Gaming Website */

/* Blog Main Layout */
.blog-main {
    min-height: 100vh;
    background: var(--bg-color);
    color: var(--text-color);
}

/* Blog Post Main Layout */
.blog-post-main {
    min-height: 100vh;
    background: var(--bg-color);
    color: var(--text-color);
}

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 4rem 0 3rem;
    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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.blog-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: 'Press Start 2P', monospace;
}

.blog-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Blog Controls */
.blog-controls {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.blog-search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-input-group {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.blog-search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: none;
    border-radius: 25px;
    background: rgba(255,255,255,0.9);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.blog-search-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.blog-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-search-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.blog-category-select,
.blog-sort-select {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: rgba(255,255,255,0.95);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.blog-category-select:focus,
.blog-sort-select:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3), 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

/* Fix dropdown background color for better visibility */
.blog-category-select option,
.blog-sort-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px 12px;
}

/* Light theme dropdown styling */
.blog-category-select,
.blog-sort-select {
    background: rgba(255,255,255,0.95);
    color: var(--text-color);
    border: 1px solid rgba(0,0,0,0.1);
}

.blog-category-select option,
.blog-sort-select option {
    background: #ffffff;
    color: #333333;
    padding: 8px 12px;
    border: none;
}

.blog-category-select option:hover,
.blog-sort-select option:hover {
    background: #f0f0f0;
    color: #000000;
}

/* Dark theme dropdown styling */
[data-theme="dark"] .blog-category-select,
[data-theme="dark"] .blog-sort-select {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
}

[data-theme="dark"] .blog-category-select:focus,
[data-theme="dark"] .blog-sort-select:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--accent-primary);
}

[data-theme="dark"] .blog-category-select option,
[data-theme="dark"] .blog-sort-select option {
    background: #2a2a2a;
    color: #ffffff;
    padding: 8px 12px;
}

[data-theme="dark"] .blog-category-select option:hover,
[data-theme="dark"] .blog-sort-select option:hover {
    background: #3a3a3a;
    color: #ffffff;
}

/* Additional dropdown improvements */
.blog-category-select,
.blog-sort-select {
    position: relative;
    z-index: 10;
}

.blog-category-select option,
.blog-sort-select option {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Ensure dropdowns are above other elements */
.blog-controls {
    position: relative;
    z-index: 100;
}

/* Improve dropdown contrast */
.blog-category-select option:checked,
.blog-sort-select option:checked {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: bold;
}

/* Blog Content */
.blog-content {
    padding: 3rem 0;
}

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

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Featured Posts Section */
.featured-posts-section {
    margin-bottom: 4rem;
}

.featured-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Blog Cards */
.blog-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    animation: fadeInUp 0.6s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.blog-card.hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.blog-card.featured {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    border: 2px solid var(--primary-color);
    box-shadow: 0 6px 25px rgba(var(--primary-rgb), 0.2);
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-card-content {
    padding: 1.5rem;
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 2;
}

.blog-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid currentColor;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Blog Tags */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.blog-tag {
    background: var(--border-color);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Blog Card Meta */
.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

.author-name {
    font-size: 0.875rem;
    color: var(--text-color);
    font-weight: 500;
}

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

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
}

.stat-item:hover {
    background: var(--border-color);
    color: var(--text-color);
}

.stat-item.like-button {
    cursor: pointer;
    transition: all 0.3s ease;
}

.stat-item.like-button:hover {
    transform: scale(1.1);
}

.stat-item.like-button[data-liked="true"] .like-icon {
    color: #dc3545;
    animation: heartBeat 0.3s ease;
}

.stat-icon {
    font-size: 1rem;
}

.stat-count {
    font-weight: 500;
}

.blog-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Blog Card Actions */
.blog-card-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background: var(--border-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: var(--text-muted);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

/* Blog Post Styles */
.blog-post {
    padding: 3rem 0;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.breadcrumb-separator {
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

/* Post Header */
.post-header {
    margin-bottom: 3rem;
    text-align: center;
}

.post-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid currentColor;
}

.post-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: var(--text-color);
}

.post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.post-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Post Featured Image */
.post-featured-image {
    margin-bottom: 3rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content */
.post-content {
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

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

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
}

.post-content code {
    background: var(--border-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.post-content pre {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

/* Post Footer */
.post-footer {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.post-tags,
.post-share {
    margin-bottom: 2rem;
}

.post-tags h3,
.post-share h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.share-twitter:hover {
    background: #1da1f2;
    color: white;
}

.share-facebook:hover {
    background: #1877f2;
    color: white;
}

.share-linkedin:hover {
    background: #0077b5;
    color: white;
}

/* Comments Section */
.comments-section {
    padding: 3rem 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

.comment-form-container {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.comment-form {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.login-prompt {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.login-prompt a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-prompt a:hover {
    color: var(--secondary-color);
}

/* Login actions (buttons) for comment prompt */
.login-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 0.75rem;
}

.login-actions .btn {
    padding: 0.6rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.login-actions .btn.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.login-actions .btn.btn-primary:hover {
    filter: brightness(0.95);
}

.login-actions .btn.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.login-actions .btn.btn-secondary:hover {
    background: rgba(0,0,0,0.05);
}

/* Comments List */
.comments-list {
    max-width: 800px;
    margin: 0 auto;
}

.no-comments {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.comment {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}

.comment-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.comment-author-name {
    font-weight: 500;
    color: var(--text-color);
}

.comment-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.comment-content {
    line-height: 1.6;
    color: var(--text-color);
}

/* Related Posts */
.related-posts {
    padding: 3rem 0;
    background: var(--bg-color);
}

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

.related-post-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.related-post-image {
    height: 150px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

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

.related-post-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.3;
}

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

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

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

.related-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Blog Empty State */
.blog-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.blog-empty h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.blog-empty p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pagination-info {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.blog-card:nth-child(2) { animation-delay: 0.1s; }
.blog-card:nth-child(3) { animation-delay: 0.2s; }
.blog-card:nth-child(4) { animation-delay: 0.3s; }
.blog-card:nth-child(5) { animation-delay: 0.4s; }
.blog-card:nth-child(6) { animation-delay: 0.5s; }

/* Loading State */
.blog-loading {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2.5rem;
    }
    
    .blog-subtitle {
        font-size: 1rem;
    }
    
    .blog-search-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-input-group {
        min-width: auto;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card.featured {
        grid-column: span 1;
    }
    
    .blog-card-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .blog-pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 3rem 0 2rem;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-controls {
        padding: 1rem;
    }
    
    .blog-card-content {
        padding: 1rem;
    }
    
    .blog-card-title {
        font-size: 1.25rem;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .comment-form {
        padding: 1rem;
    }
}

/* Dark/Light Theme Support */
[data-theme="dark"] .blog-search-input,
[data-theme="dark"] .blog-category-select,
[data-theme="dark"] .blog-sort-select {
    background: rgba(255,255,255,0.1);
    color: white;
}

[data-theme="dark"] .blog-search-input:focus,
[data-theme="dark"] .blog-category-select:focus,
[data-theme="dark"] .blog-sort-select:focus {
    background: rgba(255,255,255,0.2);
}

[data-theme="dark"] .newsletter-input {
    background: rgba(255,255,255,0.1);
    color: white;
}

[data-theme="dark"] .newsletter-input::placeholder {
    color: rgba(255,255,255,0.7);
} 