/* Posts Page Styles */

.posts-section {
    padding: 3rem 0 4rem 0;
    background: var(--bg-primary);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.post-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.post-card-text {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.default-post-image {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    font-size: 4rem;
    color: white;
    opacity: 0.8;
}

.post-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.post-category {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Post Card Content */
.post-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    flex-shrink: 0;
}

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

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

.post-card-excerpt {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
}

.post-card-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.post-card-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.post-card-date svg,
.post-card-views svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* Legacy styles for compatibility */
.post-content {
    padding: 2rem;
}

.post-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

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

.post-content h3 a:hover {
    color: var(--primary-color);
}

.post-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.post-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.post-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.post-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.post-link:hover {
    color: var(--primary-dark);
}

.post-link:hover .link-arrow {
    transform: translateX(5px);
}

.posts-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.posts-empty-icon {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.posts-empty h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.posts-empty p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Post Detail Styles */
.post-detail-hero {
    background: var(--bg-secondary);
    padding: 2rem 0;
}

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

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

.post-breadcrumb a:hover {
    text-decoration: underline;
}

.post-breadcrumb span {
    color: var(--text-light);
}

.post-detail-main {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
}

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

.post-detail-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-detail-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.post-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.post-detail-image,
.post-detail-image img { display: none; }

.post-detail-excerpt,
.post-detail-excerpt p { display: none; }

.post-detail-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.post-detail-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.post-detail-content ul,
.post-detail-content ol {
    margin-bottom: 1.5rem;
}

.post-detail-content li {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.post-detail-content figure,
.post-detail-content img,
.post-detail-content iframe,
.post-detail-content video {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
}

.post-detail-content figure,
.post-detail-content img,
.post-detail-content iframe,
.post-detail-content video {
    display: block;
    margin: 1.5rem 0;
}

.post-detail-content figure img {
    border-radius: inherit;
}

/* Fixed-size, non-cropping content images */
.post-detail-content img {
    height: auto;
    max-height: clamp(220px, 60vh, 560px);
    object-fit: contain;
    background: var(--bg-secondary);
    padding: 0.5rem;
}

.post-detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.post-detail-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.post-detail-actions .btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
}

.post-detail-actions .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.post-detail-actions .btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.post-detail-actions .btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Tablet responsive */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .posts-page-title {
        font-size: 2rem;
    }
    
    .posts-page-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .post-card-text {
        padding: 1.25rem;
    }
    
    .post-card-title {
        font-size: 1.125rem;
    }
    
    .post-card-image {
        height: 180px;
    }
    
    .post-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding-top: 0.75rem;
    }
    
    .post-card-date,
    .post-card-views {
        font-size: 0.8rem;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .post-card-text {
        padding: 1rem;
    }
    
    .post-card-image {
        height: 160px;
    }
}
    
    .post-detail-meta {
        gap: 1rem;
    }
    
    .post-detail-image img {
        height: 250px;
    }
    
    .post-detail-actions {
        flex-direction: column;
    }
    
    .post-detail-actions .btn {
        justify-content: center;
    }

@media (max-width: 480px) {
    .posts-hero {
        padding: 3rem 0;
    }
    
    .posts-hero-title {
        font-size: 2rem;
    }
    
    .posts-hero-subtitle {
        font-size: 1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .post-content h3 {
        font-size: 1.125rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .post-detail-main {
        padding: 1.5rem;
    }
    
    .post-detail-title {
        font-size: 1.5rem;
    }
    
    .post-detail-image img {
        height: 200px;
    }
    
    .post-detail-excerpt {
        padding: 1rem;
    }
    
    .post-detail-excerpt p {
        font-size: 1rem;
    }
}

/* ========================================
   POST DETAIL - NEW FEATURES
   ======================================== */

/* Breadcrumb */
.post-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

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

.post-detail-breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.post-detail-breadcrumb span {
    color: var(--text-secondary);
}

.post-detail-breadcrumb svg {
    color: var(--text-light);
    flex-shrink: 0;
}

/* Detail Container - Full Width */
.post-detail-section {
    padding: 3rem 0 4rem 0;
    background: var(--bg-primary);
}

.post-detail-container {
    /* Để full width với container */
}

.post-detail-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
}

/* Author Info */
.post-author-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.author-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.author-details {
    flex: 1;
}

.author-name {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.post-detail-meta-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Tags */
.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.5rem 0;
    margin: 2rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.post-tags svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.post-tags > span {
    font-weight: 600;
    color: var(--text-primary);
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.875rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
}

/* Share Buttons */
.post-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.share-label {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
}

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

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

.share-btn.facebook:hover {
    background: #145dbf;
}

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

.share-btn.twitter:hover {
    background: #0d8bd9;
}

.share-btn.linkedin {
    background: #0a66c2;
    color: white;
}

.share-btn.linkedin:hover {
    background: #084d94;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.whatsapp:hover {
    background: #1da851;
}

.share-btn.email {
    background: #ea4335;
    color: white;
}

.share-btn.email:hover {
    background: #c23321;
}

.share-btn.copy {
    background: #6b7280;
    color: white;
}

.share-btn.copy:hover {
    background: #4b5563;
}

/* Related Posts Section - Below Content */
.related-posts-section {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    margin-top: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
    /* Cùng width với các section khác */
}

.related-posts-section .section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.related-posts-section .section-title svg {
    color: var(--primary-color);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.related-post-image {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

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

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

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

.related-post-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.related-post-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-normal);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.related-post-meta svg {
    width: 14px;
    height: 14px;
}

/* Comments Section */
.comments-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
    /* Cùng width với các section khác */
}

.comments-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comments-title svg {
    color: var(--primary-color);
    width: 18px;
    height: 18px;
}

/* Comment Form */
.comment-form-wrapper {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.comment-form-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.875rem;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
    margin-bottom: 0.875rem;
}

.comment-form .form-group {
    margin-bottom: 0.875rem;
}

.comment-form label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

.comment-form .required {
    color: #ef4444;
}

.comment-form .form-control {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all var(--transition-normal);
    font-family: inherit;
}

.comment-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.comment-form textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Rating Input (Star Rating) */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.2rem;
    justify-content: flex-end;
    font-size: 1.5rem;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    cursor: pointer;
    color: #d1d5db;
    transition: all var(--transition-normal);
    margin-bottom: 0;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input[type="radio"]:checked ~ label {
    color: #fbbf24;
    transform: scale(1.1);
}

.rating-input input[type="radio"]:checked ~ label {
    color: #f59e0b;
}

/* Alert Messages */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Comments List */
.comments-list {
    margin-top: 1.5rem;
}

.comment-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-light);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img,
.avatar-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.875rem;
}

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

.comment-rating {
    display: flex;
    gap: 0.075rem;
}

.comment-rating .star {
    color: #d1d5db;
    font-size: 0.8rem;
}

.comment-rating .star.filled {
    color: #f59e0b;
}

.comment-body {
    color: var(--text-secondary);
    line-height: 1.55;
    font-size: 0.875rem;
}

/* Comment Replies */
.comment-replies {
    margin-top: 0.875rem;
    padding-left: 1.25rem;
    border-left: 2px solid var(--border-light);
}

.comment-item.reply {
    margin-bottom: 0.875rem;
    padding-bottom: 0.875rem;
}

.comment-item.reply .comment-avatar img,
.comment-item.reply .avatar-placeholder {
    width: 32px;
    height: 32px;
}

.comment-item.reply .avatar-placeholder {
    font-size: 0.875rem;
}

/* No Comments */
.no-comments {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.no-comments svg {
    margin-bottom: 0.75rem;
    opacity: 0.5;
    width: 40px;
    height: 40px;
}

.no-comments p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ========================================
   RESPONSIVE - NEW FEATURES
   ======================================== */

@media (max-width: 1024px) {
    .post-detail-container {
        max-width: 100%;
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .post-detail-card,
    .comments-section,
    .related-posts-section {
        padding: 1.75rem;
    }

    .post-detail-breadcrumb {
        font-size: 0.8rem;
    }

    .post-detail-title {
        font-size: 1.75rem;
        line-height: 1.35;
    }

    .post-author-info {
        flex-direction: column;
        text-align: center;
    }

    .author-details {
        text-align: center;
    }

    .post-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .post-detail-meta-items {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .post-detail-image { display: none; }

    .post-detail-image img { display: none; }

    .post-detail-content figure,
    .post-detail-content img,
    .post-detail-content iframe,
    .post-detail-content video {
        margin: 1.25rem 0;
        border-radius: 10px;
    }
    .post-detail-content img {
        height: auto;
        max-height: clamp(200px, 55vh, 420px);
        padding: 0.5rem;
    }

    .post-share {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .post-detail-card,
    .comments-section,
    .related-posts-section {
        padding: 1.25rem;
        border-radius: 14px;
    }

    .related-posts-section .section-title {
        font-size: 1.5rem;
    }

    .comment-form-wrapper {
        padding: 1.5rem;
    }

    .post-detail-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .comments-title {
        font-size: 1.5rem;
    }

    .comment-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .comment-avatar {
        align-self: flex-start;
    }

    .comment-replies {
        padding-left: 1rem;
    }

    .comment-item.reply {
        gap: 0.5rem;
    }

    .share-buttons {
        width: 100%;
        justify-content: center;
    }

    .post-tags {
        font-size: 0.875rem;
    }

    .tag-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .post-detail-image { display: none; }

    .post-detail-image img { display: none; }

    .post-detail-content figure,
    .post-detail-content img,
    .post-detail-content iframe,
    .post-detail-content video {
        margin: 1rem 0;
        border-radius: 8px;
    }
    .post-detail-content img {
        height: auto;
        max-height: clamp(160px, 52vh, 320px);
        padding: 0.5rem;
    }
}
