/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Spectral:wght@400;500;600;700&display=swap');

/* Core Variables */
:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --color-bg: #ffffff;
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-primary: #3b82f6;
    --color-primary-light: #60a5fa;
    --color-primary-dark: #2563eb;
    --color-secondary: #64748b;
    --color-accent: #f97316;
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-border: #e5e7eb;
    --color-surface: #f8fafc;
    --color-surface-hover: #f1f5f9;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 800px;
}

/* Base Reset */
.blog-post {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

/* Article Header */
.article-header {
    position: relative;
    padding: 1.5rem 0;
    /* padding-bottom: 4px; */
    background: linear-gradient(to bottom, var(--color-surface), var(--color-bg));
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2rem;
}

.article-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition);
}

.article-category:hover {
    background: rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.article-title {
    margin: 0 0 1.5rem;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0070DB;

}

.article-meta {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    font-size: 0.9375rem;
    color: var(--color-text-light);
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.article-meta::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.meta-item i {
    font-size: 1.125rem;
    color: var(--color-secondary);
}

/* Mobile optimizations for meta items */
@media (max-width: 480px) {
    .article-meta {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .meta-item {
        gap: 0.5rem;
    }

    .meta-item i {
        font-size: 1rem;
    }
}

.featured-image {
    margin: 2rem auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 100%;
}

.featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-width: 100%;
}

/* Article Content Styles */
.article-content {
    margin: 2rem auto;
    padding: 0 1.5rem;
    max-width: var(--container-width);
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text);
}

.article{
    background-color: var(--color-bg);
    padding-bottom: 10px;
}
/* Typography in article content */
.article-content p {
    margin-bottom: 1.75rem;
    font-family: var(--font-primary);
}

.article-content h2 {
    margin: 3rem 0 1.5rem;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.article-content h3 {
    margin: 2.5rem 0 1.25rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
}

.article-content h4 {
    margin: 2rem 0 1rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
}

/* Lists in article content */
.article-content ul,
.article-content ol {
    margin: 1.5rem 0 2rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.article-content ul li::marker {
    color: var(--color-primary);
}

/* Blockquotes in article content */
.article-content blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--color-primary);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--color-text);
}

.article-content blockquote p {
    margin: 0;
}

/* Code blocks in article content */
.article-content pre {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.article-content code {
    padding: 0.2em 0.4em;
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    font-family: 'Fira Code', monospace;
    font-size: 0.875em;
}

/* Images in article content */
.article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 2.5rem auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    object-fit: contain;
    width: 100%;
}

.article-content figure {
    margin: 2.5rem 0;
    max-width: 100%;
}

.article-content figure img {
    margin: 0 auto;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.article-content figcaption {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Links in article content */
.article-content a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.article-content a:hover {
    border-bottom-color: var(--color-primary);
}

/* Tables in article content */
.article-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.article-content th,
.article-content td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    text-align: left;
}

.article-content th {
    background: var(--color-surface);
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .article-content {
        padding: 0 1.25rem;
        font-size: 1rem;
        line-height: 1.7;
    }

    .article-content h2 {
        font-size: 1.75rem;
        margin: 2.5rem 0 1.25rem;
    }

    .article-content h3 {
        font-size: 1.375rem;
        margin: 2rem 0 1rem;
    }

    .article-content h4 {
        font-size: 1.125rem;
        margin: 1.75rem 0 0.875rem;
    }

    .article-content blockquote {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }

    .article-content pre {
        padding: 1.25rem;
        font-size: 0.875rem;
    }

    .article-content table {
        font-size: 0.875rem;
    }

    .article-content th,
    .article-content td {
        padding: 0.625rem 0.875rem;
    }

    .article-content img,
    .article-content figure {
        margin: 2rem auto;
    }
    
    .featured-image {
        margin: 1.5rem auto;
    }
}

@media (max-width: 480px) {
    .article-content {
        padding: 0 1rem;
        font-size: 0.9375rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem;
    }

    .article-content h3 {
        font-size: 1.25rem;
        margin: 1.75rem 0 0.875rem;
    }

    .article-content h4 {
        font-size: 1.125rem;
        margin: 1.5rem 0 0.75rem;
    }

    .article-content blockquote {
        padding: 1rem 1.25rem;
        margin: 2rem 0;
    }

    .article-content pre {
        padding: 1rem;
        margin: 1.5rem 0;
    }

    .article-content ul,
    .article-content ol {
        padding-left: 1.25rem;
        margin: 1.25rem 0 1.75rem;
    }

    .article-content li {
        margin-bottom: 0.625rem;
    }

    /* Make tables scrollable on mobile */
    .article-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .article-content img,
    .article-content figure {
        margin: 1.5rem auto;
        border-radius: var(--radius-md);
    }
    
    .featured-image {
        margin: 1rem auto;
        border-radius: var(--radius-md);
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .article-content blockquote {
        background: rgba(255, 255, 255, 0.05);
    }

    .article-content pre,
    .article-content code {
        background: rgba(255, 255, 255, 0.05);
    }

    .article-content th {
        background: rgba(255, 255, 255, 0.05);
    }

    .article-content img {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

/* Print styles */
@media print {
    .article-content {
        font-size: 12pt;
        line-height: 1.6;
        color: #000;
    }

    .article-content a {
        text-decoration: underline;
        color: #000;
    }

    .article-content img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    .article-content pre,
    .article-content blockquote {
        page-break-inside: avoid;
        border: 1px solid #ddd;
    }
}

/* Comments Section - YouTube Style */
.comments-section {
    margin: 2rem auto;
    padding: 1.5rem;
    max-width: var(--container-width);
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    color: white;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.comments-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Mobile-First Comment Form */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0.5rem 0 1.5rem;
    padding: 0.75rem;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
}

.comment-form textarea {
    width: 100%;
    min-height: 40px;
    max-height: 300px; /* Maximum height before scrolling */
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.5;
    resize: none;
    overflow-y: hidden; /* Hide scrollbar during auto-expand */
    transition: border-color 0.2s ease;
}

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

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.comment-submit,
.comment-cancel {
    min-height: 44px; /* Better touch target */
    padding: 0 1.25rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.comment-cancel {
    background: var(--color-surface-hover);
    color: var(--color-text);
}

.comment-submit {
    background: var(--color-primary);
    color: white;
    min-width: 80px;
}

.comment-submit:disabled {
    background: var(--color-surface-hover);
    color: var(--color-text-light);
}

/* Reply System Improvements */
.reply-form-container {
    margin: 0.75rem 0;
    padding-left: 3.25rem;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.reply-form-container.show {
    max-height: 300px;
    opacity: 1;
    margin-top: 1rem;
}

.replies-container {
    margin-top: 0.75rem;
    padding-left: 1rem;
    border-left: 2px solid var(--color-border);
}

.replies-list {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.replies-list.show {
    max-height: 1000px;
    opacity: 1;
}

.load-more-replies {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0 0.75rem 3.25rem;
    padding: 0.625rem 1rem;
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 500;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.load-more-replies i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.load-more-replies.expanded i {
    transform: rotate(180deg);
}

.load-more-replies:hover {
    background: var(--color-surface);
    border-radius: var(--radius-md);
}

/* Reply Button Improvements */
.reply-btn {
    position: relative;
    overflow: hidden;
    background: transparent;
    border: none;
    padding: 0.625rem 1rem;
    color: var(--color-text-light);
    font-weight: 500;
    transition: all 0.2s ease;
}

.reply-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transform: translateX(-50%);
    transition: width 0.2s ease;
}

.reply-btn:hover {
    color: var(--color-primary);
}

.reply-btn:hover::after {
    width: 100%;
}

.reply-btn.active {
    color: var(--color-primary);
}

.reply-btn.active::after {
    width: 100%;
}

/* Mobile Adjustments for Reply System */
@media (max-width: 640px) {
    .reply-form-container {
        padding-left: 2.75rem;
    }

    .load-more-replies {
        margin-left: 2.75rem;
        padding: 0.5rem 0.875rem;
    }

    .replies-container {
        padding-left: 0.75rem;
    }
}

@media (max-width: 380px) {
    .reply-form-container {
        padding-left: 2.25rem;
    }

    .load-more-replies {
        margin-left: 2.25rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .replies-container {
        padding-left: 0.5rem;
    }
}

/* Animation for Reply Form */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reply-form-container.show .comment-form {
    animation: slideDown 0.3s ease-out;
}

/* Dark Mode Adjustments for Reply System */
@media (prefers-color-scheme: dark) {
    .replies-container {
        border-left-color: var(--color-border);
    }

    .load-more-replies:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .reply-btn::after {
        background: var(--color-primary-light);
    }
}

/* Mobile-First Base Styles */
.comment {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    background: var(--color-surface);
}

.comment-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-info-wrapper {
    display: flex;
    gap: 0.75rem;
    flex: 1;
}

.comment-avatar {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
}

.comment-info {
    flex: 1;
}

.comment-author {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.comment-date {
    font-size: 0.875rem;
    color: var(--color-text-light);
}
@media (max-width: 768px) { /* Adjust breakpoint as needed */
    .comment-date {
        font-size: 0.6rem;
        color: var(--color-text-light);
    }
}


.comment-content {
    padding-left: 3.25rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-text);
}

/* Action Buttons - Mobile First */
.comment-actions {
    padding-left: 3.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comment-action,
.reply-btn,
.report-btn,
.delete-btn {
    height: 2.75rem; /* Taller buttons */
    padding: 0 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-btn {
    color: var(--color-error);
    border-color: var(--color-error);
    background: transparent;
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

.reply-btn i,
.report-btn i,
.delete-btn i {
    font-size: 1.125rem;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .comment {
        padding: 0.875rem;
        margin-bottom: 0.875rem;
    }

    .comment-header {
        gap: 0.5rem;
    }

    .comment-avatar {
        width: 2.25rem;
        height: 2.25rem;
    }

    .comment-content {
        padding-left: 2.75rem;
        font-size: 0.875rem;
    }

    .comment-actions {
        padding-left: 2.75rem;
    }

    .comment-action,
    .reply-btn,
    .report-btn,
    .delete-btn {
        height: 2.5rem;
        padding: 0 1rem;
        font-size: 0.875rem;
        min-width: 4.5rem;
    }

    .comment.reply {
        margin-left: 2.25rem;
        padding-left: 0.75rem;
    }
}

/* Small Mobile Optimizations */
@media (max-width: 380px) {
    .comment {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .comment-avatar {
        width: 2rem;
        height: 2rem;
    }

    .comment-content {
        padding-left: 1.5rem;
        font-size: 0.8125rem;
    }

    .comment-actions {
        padding-left: 2.5rem;
        gap: 0.375rem;
    }

    .comment-action,
    .reply-btn,
    .report-btn,
    .delete-btn {
        height: 2.25rem;
        padding: 0 0.875rem;
        font-size: 0.8125rem;
        min-width: 4rem;
    }

    .comment.reply {
        margin-left: 2rem;
        padding-left: 0.625rem;
    }
}

/* Tablet and Desktop Refinements */
@media (min-width: 768px) {
    .comment {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .comment-avatar {
        width: 0.95rem;
        height: 2.75rem;
    }

    .comment-content {
        padding-left: 1.5rem;
        font-size: 1rem;
    }

    .comment-actions {
        padding-left: 3.5rem;
    }

    .comment-action,
    .reply-btn,
    .report-btn,
    .delete-btn {
        height: 3rem;
        padding: 0 1.5rem;
        font-size: 1rem;
    }

    .comment.reply {
        margin-left: 3.5rem;
    }
}

/* Touch Feedback Improvements */
@media (hover: none) {
    .comment-action:active,
    .reply-btn:active,
    .report-btn:active,
    .delete-btn:active {
        transform: scale(0.96);
        opacity: 0.8;
    }
}

/* Dark Mode Refinements */
@media (prefers-color-scheme: dark) {
    .comment-action,
    .reply-btn,
    .report-btn {
        background: var(--color-surface);
        border-color: var(--color-border);
    }

    .delete-btn {
        background: transparent;
        border-color: var(--color-error);
    }

    .delete-btn:hover {
        background: rgba(239, 68, 68, 0.15);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }

    .comments-section {
        /* padding: 1.5rem; */
        margin: 2rem 1rem;
        padding: 0px;
    }

    .comment.reply {
        margin-left: 1.5rem;
    }

    .comment {
        padding: 1.25rem;
    }

    .comment-avatar {
        width: 20px;
        height: 40px;
    }

    .comment-actions {
        flex-wrap: wrap;
    }

    .like-button span {
        display: none;
    }
}

@media (min-width: 768px) {
    .article-header {
        /* padding: 2rem 0; */
    }

    .article-container {
        padding: 0 2rem;
    }

    .article-content {
        font-size: 1.25rem;
    }

    .article-content p {
        margin-bottom: 2rem;
    }

    .comments-section {
        padding: 3rem;
    }

    .comment {
        padding: 1.5rem;
    }

    .social-share {
        margin: 3rem 0;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #111827;
        --color-text: #f3f4f6;
        --color-text-light: #9ca3af;
        --color-surface: #1f2937;
        --color-surface-hover: #374151;
        --color-border: #374151;
        --color-secondary: #9ca3af;
    }

    .article-header {
        background: linear-gradient(to bottom, var(--color-surface), var(--color-bg));
    }

    .comment,
    .comment-form textarea {
        background: var(--color-surface);
    }

    .comment:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .like-button {
        background: var(--color-surface);
        color: var(--color-text);
        border-radius: 8px;
    }

    .like-button:hover {
        background: var(--color-surface-hover);
    }
}

/* Animation for Comment Actions */
.comment-form-actions {
    animation: slideUp 0.2s ease;
}

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

/* Smooth height transition for textarea */
.comment-form textarea {
    transition: min-height 0.2s ease, border-color 0.2s ease;
}

/* Animations */
@keyframes likeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.like-button.animate {
    animation: likeAnimation 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Toast Customization */
.toastify {
    padding: 1rem 1.5rem;
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
}

/* Dark Mode Support */
[data-theme="dark"] {
    --surface-color: #1e1e1e;
    --surface-color-hover: #2d2d2d;
    --text-color: #e4e4e4;
    --text-color-secondary: #a0a0a0;
    --border-color: #404040;
}

/* For reply forms */
.reply-form textarea {
    min-height: 40px;
    max-height: 200px;
}

/* Comments Section Collapse/Expand */
.comments-list {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 1;
    visibility: visible;
}

.comments-list.collapsed {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
}

/* Add this to prevent the initial flash */
.comments-list.no-transition {
    transition: none !important;
}

.comments-title {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-title i {
    transition: transform 0.3s ease;
}

.comments-title.collapsed i {
    transform: rotate(-90deg);
}

/* Social Share Buttons */
.social-share {
    display: flex;
    gap: 0.75rem;
    margin: 2.5rem 0;
    justify-content: center;
    padding: 1rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.share-button {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-full, 9999px);
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    border: 1px solid var(--color-border);
}

.share-button:hover {
    transform: translateY(-2px);
    background: var(--color-surface-hover);
    box-shadow: var(--shadow-md);
}

.share-button:active {
    transform: translateY(0);
}

/* Social platform specific colors on hover */
.share-button[onclick*="facebook"]:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.share-button[onclick*="twitter"]:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.share-button[onclick*="whatsapp"]:hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
}

/* Mobile Optimizations for Share Buttons */
@media (max-width: 768px) {
    .social-share {
        margin: 2rem 0;
        padding: 0.875rem 0;
        gap: 0.625rem;
    }

    .share-button {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .social-share {
        margin: 1.5rem 0;
        padding: 0.75rem 0;
        gap: 0.5rem;
    }

    .share-button {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
}

/* Dark mode adjustments for share buttons */
@media (prefers-color-scheme: dark) {
    .share-button {
        background: var(--color-surface);
        border-color: var(--color-border);
        color: var(--color-text);
    }

    .share-button:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

/* You Might Like Section */
.recommended-posts {
    max-width: var(--container-width);
    margin: 3rem auto;
    padding: 0 1.5rem;
}

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

.recommended-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.recommended-subtitle {
    color: var(--color-text-light);
    font-size: 1.125rem;
}

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

.recommended-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
    text-decoration: none;
}

.recommended-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.recommended-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

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

.recommended-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.recommended-category {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.recommended-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--color-text);
    text-decoration: none;
   
}

.recommended-excerpt {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommended-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.recommended-meta i {
    font-size: 1rem;
    color: var(--color-secondary);
}

/* Responsive adjustments for recommended posts */
@media (max-width: 1024px) {
    .recommended-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .recommended-posts {
        margin: 2rem auto;
    }
    
    .recommended-title {
        font-size: 1.5rem;
    }
    
    .recommended-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .recommended-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .recommended-content {
        padding: 1.25rem;
    }
    
    .recommended-card-title {
        font-size: 1.125rem;
    }
}

/* Dark mode adjustments for recommended posts */
@media (prefers-color-scheme: dark) {
    .recommended-card {
        background: var(--color-surface);
        text-decoration: none;
    }
    
    .recommended-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}