/* Social Share Buttons */
.btn-facebook {
    background: linear-gradient(45deg, #3b5998, #4267B2);
    border-color: #3b5998;
    color: white;
    box-shadow: 0 2px 10px rgba(59, 89, 152, 0.3);
    transition: all 0.3s ease;
}

.btn-facebook:hover {
    background: linear-gradient(45deg, #2d4373, #365899);
    border-color: #2d4373;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 89, 152, 0.4);
}

.btn-twitter {
    background: linear-gradient(45deg, #1da1f2, #1991db);
    border-color: #1da1f2;
    color: white;
    box-shadow: 0 2px 10px rgba(29, 161, 242, 0.3);
    transition: all 0.3s ease;
}

.btn-twitter:hover {
    background: linear-gradient(45deg, #0d8bd9, #1a8cd8);
    border-color: #0d8bd9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(29, 161, 242, 0.4);
}

.btn-linkedin {
    background: linear-gradient(45deg, #0077b5, #0e76a8);
    border-color: #0077b5;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 119, 181, 0.3);
    transition: all 0.3s ease;
}

.btn-linkedin:hover {
    background: linear-gradient(45deg, #005582, #006399);
    border-color: #005582;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.4);
}

.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    transform: translateY(-2px);
}

/* Article Tags */
.article-tags .badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
}

/* Comments Section Enhancements - Theme aware */
.comments-section {
    border-top: 2px solid var(--border-color);
    padding-top: 1.5rem;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: var(--bg-primary);
    transition: all 0.3s ease;
}

/* Light theme comments-section */
:root .comments-section {
    border-top: 2px solid #e9ecef;
    background: #ffffff;
}

/* Dark theme comments-section */
[data-theme="dark"] .comments-section {
    border-top: 2px solid #30363d;
    background: #0d1117;
}

.comments-header .comments-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.3);
}

.comment-form-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
}

.comment-form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
    position: relative;
    overflow: hidden;
}

.comment-form-body {
    width: 100% !important;
    border-radius: 0 0 12px 12px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--theme-primary);
    background: var(--card-bg);
    position: relative;
    transition: all 0.3s ease;
}

/* Light theme comment-form-body */
:root .comment-form-body {
    border: 2px solid #e9ecef;
    border-top: 2px solid #667eea;
    background: #ffffff;
}

/* Dark theme comment-form-body */
[data-theme="dark"] .comment-form-body {
    border: 2px solid #30363d;
    border-top: 2px solid #58a6ff;
    background: #161b22;
}

.form-control-modern {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: var(--card-bg);
    color: var(--text-primary);
    box-shadow: 0 2px 6px var(--shadow-light);
}

.form-control-modern:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Light theme form-control-modern */
:root .form-control-modern {
    border: 2px solid #e9ecef;
    background: #ffffff;
    color: #212529;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

:root .form-control-modern:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Dark theme form-control-modern */
[data-theme="dark"] .form-control-modern {
    border: 2px solid #30363d;
    background: #21262d;
    color: #f0f6fc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .form-control-modern:focus {
    border-color: #58a6ff;
    box-shadow: 0 0 0 0.2rem rgba(88, 166, 255, 0.25);
}

.form-floating {
    width: 100% !important;
    position: relative !important;
}

.form-floating > .form-control {
    width: 100% !important;
    max-width: 100% !important;
}

.form-floating > label {
    width: auto !important;
    color: #6c757d;
    font-weight: 500;
    padding: 0.8rem 1rem;
    opacity: 1;
}

.form-floating > .form-control-modern:focus ~ label,
.form-floating > .form-control-modern:not(:placeholder-shown) ~ label {
    color: #667eea;
    transform: scale(.85) translateY(-0.5rem) translateX(0.15rem);
    opacity: 1;
}

.form-floating > .form-control-modern::placeholder {
    color: transparent;
}

.character-count {
    text-align: right;
}

.character-count #charCount {
    color: #667eea;
    font-weight: 600;
}

.privacy-check {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.privacy-check .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.comment-guidelines {
    background: #fff3cd;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 0.375rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.5;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
    position: relative;
    overflow: hidden;
    min-height: 44px;
    min-width: auto;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit i {
    font-size: 0.55rem;
}

.btn-submit .btn-text,
.btn-submit .btn-loading {
    font-size: 0.7rem;
}

.btn-light {
    border-radius: 0.375rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.5;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: auto;
}

.btn-light:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

/* Success Alert Styling */
#commentSuccess {
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 5px solid #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

/* Comments Divider */
.hr-text {
    line-height: 1em;
    position: relative;
    outline: 0;
    border: 0;
    color: black;
    text-align: center;
    height: 1.5em;
    opacity: .5;
}

.hr-text:before {
    content: '';
    background: linear-gradient(to right, transparent, #818078, transparent);
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
}

.hr-text:after {
    content: attr(data-content);
    position: relative;
    display: inline-block;
    color: #6c757d;
    padding: 0 .5em;
    line-height: 1.5em;
    background-color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Comment Item Styling */
.comment-item {
    border: 1px solid #e9ecef;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.comment-item:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.avatar-placeholder {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.comment-author h6 {
    color: #495057;
    font-weight: 600;
}

.comment-content {
    padding-left: 3.5rem;
    color: #6c757d;
    line-height: 1.6;
}

/* Form Validation Enhancements */
.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%2328a745' d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3e%3cpath fill='%2328a745' d='M10.97 4.97a.235.235 0 0 0-.02.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.061L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05z'/%3e%3c/svg%3e");
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23dc3545' d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3e%3cpath fill='%23dc3545' d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Social Share Section */
.social-share .btn {
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
}

.article-share {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    transition: all 0.3s ease;
}

/* Light theme article-share */
:root .article-share {
    border: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

/* Dark theme article-share */
[data-theme="dark"] .article-share {
    border: 1px solid #30363d;
    background: linear-gradient(135deg, #161b22 0%, #21262d 100%);
}

/* Blockquote Styling */
blockquote {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border-left: 4px solid #53a653;
    margin: 1.5rem 0;
    padding: 1.5rem 2.5rem 1rem 2.5rem;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.5;
    color: #2d5a2d;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 2px 8px rgba(83, 166, 83, 0.1);
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 2.5rem;
    color: #53a653;
    position: absolute;
    left: 0.5rem;
    top: 0.2rem;
    opacity: 0.4;
    font-family: Georgia, serif;
    line-height: 1;
}

blockquote::after {
    content: '"';
    font-size: 2.5rem;
    color: #53a653;
    position: absolute;
    right: 0.5rem;
    bottom: -0.3rem;
    opacity: 0.4;
    font-family: Georgia, serif;
    line-height: 1;
}

blockquote p {
    margin: 0;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

blockquote cite {
    display: block;
    text-align: right;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #4a734a;
    font-style: normal;
}

blockquote cite::before {
    content: '— ';
}

/* Responsive Design */
@media (max-width: 768px) {
    .comments-header .comments-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .comment-form-header {
        padding: 1.5rem !important;
    }

    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .form-actions .btn {
        width: 100%;
    }

    .comment-guidelines {
        margin-bottom: 1rem;
        text-align: center;
    }

    .avatar-placeholder {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .comment-content {
        padding-left: 0;
        margin-top: 1rem;
    }
    
    blockquote {
        margin: 1rem 0;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    blockquote::before,
    blockquote::after {
        font-size: 3rem;
    }
}

/* Comment form enhancements */
.comment-form-body .form-control {
    width: 100% !important;
    max-width: 100% !important;
}

.comment-form-body .form-floating {
    width: 100% !important;
}

.comment-form-body .row {
    width: 100% !important;
    margin: 0 !important;
}

.comment-form-body .col-12 {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.comment-form-body {
    width: 100% !important;
}

.comment-form-container {
    width: 100% !important;
    max-width: 100% !important;
}

/* Form control full width */
.form-control-modern {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Input group improvements */
.form-floating {
    width: 100% !important;
    position: relative !important;
}

.form-floating > .form-control {
    width: 100% !important;
    max-width: 100% !important;
}

.form-floating > label {
    width: auto !important;
}

.compact-spacing { margin-bottom: 1rem !important; }
.compact-padding { padding: 1rem !important; }
.compact-text { font-size: 0.9rem; }
.compact-header { margin-bottom: 0.5rem !important; }
.compact-section { margin-top: 1rem; }

/* Content Text Styling - Smaller and more compact */
.article-content {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
}
.article-content p {
    margin-bottom: 0.75rem !important;
    font-size: 0.85rem !important;
}
.article-content h1 {
    font-size: 1.4rem !important;
    margin-bottom: 0.75rem !important;
}
.article-content h2 {
    font-size: 1.2rem !important;
    margin-bottom: 0.5rem !important;
}
.article-content h3 {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
}
.article-content h4, .article-content h5, .article-content h6 {
    font-size: 1rem !important;
    margin-bottom: 0.4rem !important;
}
.article-content ul, .article-content ol {
    margin-bottom: 0.75rem !important;
    padding-left: 1.2rem !important;
}
.article-content li {
    margin-bottom: 0.25rem !important;
    font-size: 0.85rem !important;
}
.article-content blockquote {
    font-size: 0.85rem !important;
    margin: 0.75rem 0 !important;
    padding: 0.5rem 1rem !important;
}

/* Modern Tag Buttons */
.tag-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    text-decoration: none !important;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}
.tag-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white !important;
}
.tag-button:active {
    transform: translateY(0);
}
.tag-button i {
    font-size: 0.75rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* Alternative tag styles */
.tag-button:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.tag-button:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.tag-button:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.tag-button:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}
.tag-button:nth-child(5) {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}
.tag-button:nth-child(6) {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333 !important;
}

/* PrimeNG-style Message Components */
.message-component {
    border: 1px solid;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
}
.message-component .message-icon {
    margin-right: 0.5rem;
    margin-top: 0.125rem;
}
.message-component.message-info {
    background-color: #f0f9ff;
    border-color: #0ea5e9;
    color: #0c4a6e;
}
.message-component.message-success {
    background-color: #f0fdf4;
    border-color: #22c55e;
    color: #14532d;
}
.message-component.message-warn {
    background-color: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}
.message-component.message-error {
    background-color: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

/* Modern Form Styling */
.form-floating-modern {
    position: relative;
    margin-bottom: 1rem;
}
.form-floating-modern .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem 0.75rem 0.5rem 0.75rem;
    height: auto;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: #fff;
}
.form-floating-modern .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}
.form-floating-modern .form-control:focus + label,
.form-floating-modern .form-control:not(:placeholder-shown) + label {
    transform: translateY(-50%) scale(0.85);
    color: #007bff;
    background: #fff;
    padding: 0 0.25rem;
}
.form-floating-modern label {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    pointer-events: none;
    color: #6c757d;
    font-size: 0.875rem;
    background: #fff;
    z-index: 1;
}
.form-floating-modern textarea.form-control {
    padding-top: 1.5rem;
    resize: vertical;
    min-height: 100px;
}
.form-floating-modern textarea.form-control + label {
    top: 1.5rem;
    transform: translateY(-50%);
}
.form-floating-modern textarea.form-control:focus + label,
.form-floating-modern textarea.form-control:not(:placeholder-shown) + label {
    top: 0.75rem;
    transform: translateY(-50%) scale(0.85);
}

/* Modern Checkbox */
.modern-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}
.modern-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    accent-color: #007bff;
}
.modern-checkbox label {
    font-size: 0.875rem;
    color: #495057;
    cursor: pointer;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
}
.newsletter-form input[type="email"] {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}
.newsletter-form input[type="email"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}
.newsletter-form button {
    transition: all 0.3s ease;
}
.newsletter-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}
@media (max-width: 768px) {
    .newsletter-section .d-flex {
        flex-direction: column;
        align-items: stretch !important;
    }
    .newsletter-form {
        margin-top: 0.5rem;
        flex-direction: column !important;
    }
    .newsletter-form input[type="email"] {
        width: 100% !important;
        margin-bottom: 0.5rem !important;
        margin-right: 0 !important;
    }
}

/* Meta Right Styling - Theme aware */
.reading-time {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

/* Light theme reading-time */
:root .reading-time {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    color: #6c757d;
}

/* Dark theme reading-time */
[data-theme="dark"] .reading-time {
    background: linear-gradient(135deg, #161b22 0%, #21262d 100%);
    border: 1px solid #30363d;
    color: #8b949e;
}

.social-icon {
    transition: all 0.3s ease;
    padding: 0.25rem;
    border-radius: 50%;
    text-decoration: none !important;
}

.social-icon:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.social-icon.text-info:hover {
    background: rgba(13, 202, 240, 0.1);
}

.social-icon.text-danger:hover {
    background: rgba(220, 53, 69, 0.1);
}

.social-icon.text-warning:hover {
    background: rgba(255, 193, 7, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .meta-right {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }
    
    .reading-time {
        order: 2;
    }
    
    .social-mini {
        order: 1;
    }
}

/* Modern Comments Section - Enhanced for themes */
.comments-section {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

/* Light theme modern comments */
:root .comments-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Dark theme modern comments */
[data-theme="dark"] .comments-section {
    background: linear-gradient(135deg, #161b22 0%, #21262d 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.comments-header h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Comment Form */
.comment-form-compact {
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.comment-form-compact:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.comment-form-compact .form-control-sm {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.comment-form-compact .form-control-sm:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
}

/* Comment Items */
.comment-item {
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.comment-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
    transform: translateY(-2px);
}

/* Avatar Circles */
.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #ffc107, #d39e00);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #dc3545, #bd2130);
}

/* Comment Actions */
.comment-actions .btn-link {
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.comment-actions .btn-link:hover {
    color: #0d6efd !important;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .comments-section {
        padding: 1rem;
        margin: 1rem -15px;
        border-radius: 0;
    }
    
    .comments-header .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .comment-actions {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .avatar-circle {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
}

/* Animation */
.comment-item {
    animation: fadeInUp 0.5s ease-out;
}

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

/* Enhanced Comment styles */
.comment-item {
    transition: all 0.3s ease;
}

.comment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.comment-actions button {
    transition: all 0.2s ease;
}

.comment-actions button:hover {
    transform: scale(1.1);
}

/* Reply form styles */
.reply-form {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    margin-top: 1rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.reply-form:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.reply-form-container {
    padding: 1.5rem;
    background: linear-gradient(145deg, var(--card-bg), var(--bg-secondary));
    border-radius: 12px;
    position: relative;
}

.reply-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--theme-primary), var(--theme-success));
    border-radius: 12px 12px 0 0;
}

:root .reply-form {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-color: #e9ecef;
}

[data-theme="dark"] .reply-form {
    background: linear-gradient(145deg, #161b22, #21262d);
    border-color: #30363d;
}

.reply-form-actions {
    margin-top: 0.5rem;
}

.reply-form-actions .btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reply-form-actions .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.reply-form-actions .btn:hover::before {
    width: 100%;
    height: 100%;
}

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

.reply-form .form-floating {
    margin-bottom: 0;
}

.reply-form .form-floating label {
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.reply-form .form-floating label i {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.reply-form .form-control-modern:focus + label,
.reply-form .form-control-modern:not(:placeholder-shown) + label {
    color: var(--theme-primary);
}

.reply-form .form-control-modern:focus + label i,
.reply-form .form-control-modern:not(:placeholder-shown) + label i {
    opacity: 1;
    color: var(--theme-primary);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .reply-form-container {
        padding: 1rem;
    }
    
    .reply-form-actions {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .reply-form-actions .btn {
        width: 100%;
        margin: 0;
    }
    
    .reply-form {
        margin-top: 0.75rem;
    }
}

@media (max-width: 576px) {
    .reply-form-container {
        padding: 0.75rem;
    }
    
    .reply-form {
        border-radius: 8px;
    }
    
    .reply-form-container {
        border-radius: 8px;
    }
    
    .reply-form-container::before {
        border-radius: 8px 8px 0 0;
    }
}

/* Post like button styles */
.post-like-btn {
    transition: all 0.3s ease;
    border: none !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.post-like-btn:hover {
    color: #dc3545 !important;
}

.post-like-btn i {
    display: inline-block;
    transform-origin: center;
    transition: transform 0.2s ease;
}

.post-like-btn:hover i {
    animation: heartBeat 0.6s ease-in-out;
}

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

/* Enhanced responsive avatars */
@media (max-width: 768px) {
    .avatar-circle {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
}

/* Index page like button styles */
.post-like-btn-index {
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.post-like-btn-index:hover {
    color: #dc3545 !important;
}

.post-like-btn-index i {
    display: inline-block;
    transform-origin: center;
    transition: transform 0.2s ease;
}

.post-like-btn-index:hover i {
    animation: heartBeat 0.6s ease-in-out;
}

/* Index page like icon styles */
i[data-post-id] {
    cursor: pointer;
    transition: color 0.3s ease;
    display: inline-block;
    transform-origin: center;
}

i[data-post-id]:hover {
    color: #dc3545 !important;
    animation: heartBeat 0.6s ease-in-out;
}

/* Post stats responsive design */
@media (max-width: 576px) {
    .post-stats .row {
        font-size: 0.75rem;
    }
    
    .post-stats .col-4 {
        padding: 0 2px;
    }
    
    .post-like-btn-index {
        font-size: 0.75rem !important;
    }
    
    i[data-post-id] {
        font-size: 0.75rem !important;
    }
}

/* Enhanced post stats styling */
.post-stats {
    font-size: 0.8rem;
}

.post-stats .col-4 {
    padding: 0 4px;
}

.post-stats .row {
    margin: 0;
}

.post-stats small {
    font-size: 0.75rem;
    line-height: 1.2;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-stats i {
    font-size: 0.7rem;
    margin-right: 2px;
}

/* Responsive improvements for very small screens */
@media (max-width: 480px) {
    .post-stats .col-4 {
        padding: 0 1px;
    }
    
    .post-stats small {
        font-size: 0.65rem;
    }
    
    .post-stats i {
        font-size: 0.6rem;
        margin-right: 1px;
    }
}

/* Medium screens optimization */
@media (min-width: 577px) and (max-width: 991px) {
    .post-stats .col-4 {
        padding: 0 3px;
    }
    
    .post-stats small {
        font-size: 0.7rem;
    }
}

/* Card layout fixes - stick stats to bottom */
.post-card .post-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card .post-title {
    margin-bottom: 0.5rem;
}

.post-card .post-excerpt {
    flex-grow: 1;
    margin-bottom: 0.75rem;
}

.post-card .post-meta {
    margin-top: auto;
    margin-bottom: 0.25rem;
}

.post-card .post-stats {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Prevent animation from affecting layout */
.post-stats i[data-post-id] {
    position: relative;
    z-index: 1;
}

/* Comment Submit Form Modern Styles */
.comment-submit-form {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
}

.comment-submit-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--theme-primary), var(--theme-success));
    border-radius: 12px 12px 0 0;
}

.comment-submit-form:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

:root .comment-submit-form {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-color: #e9ecef;
}

[data-theme="dark"] .comment-submit-form {
    background: linear-gradient(145deg, #161b22, #21262d);
    border-color: #30363d;
}

.comment-form-actions {
    margin-top: 0.5rem;
}

.comment-form-actions .btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.comment-form-actions .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.comment-form-actions .btn:hover::before {
    width: 100%;
    height: 100%;
}

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

.comment-submit-form .form-floating {
    margin-bottom: 0;
}

.comment-submit-form .form-floating label {
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.comment-submit-form .form-floating label i {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.comment-submit-form .form-control-modern:focus + label,
.comment-submit-form .form-control-modern:not(:placeholder-shown) + label {
    color: var(--theme-primary);
}

.comment-submit-form .form-control-modern:focus + label i,
.comment-submit-form .form-control-modern:not(:placeholder-shown) + label i {
    opacity: 1;
    color: var(--theme-primary);
}

.comment-submit-form .form-check-label {
    color: var(--text-primary);
    font-weight: 500;
}

.comment-submit-form .form-text {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Fix form-floating placeholder colors */
.form-floating > .form-control::placeholder,
.form-floating > .form-control-modern::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

:root .form-floating > .form-control::placeholder,
:root .form-floating > .form-control-modern::placeholder {
    color: #495057;
}

[data-theme="dark"] .form-floating > .form-control::placeholder,
[data-theme="dark"] .form-floating > .form-control-modern::placeholder {
    color: #8b949e;
}

.form-floating > .form-control:not(:placeholder-shown),
.form-floating > .form-control-modern:not(:placeholder-shown) {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.form-floating > label {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

:root .form-floating > label {
    color: #6c757d;
}

[data-theme="dark"] .form-floating > label {
    color: #8b949e;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control-modern:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-control-modern:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    color: var(--theme-primary);
}

:root .form-floating > .form-control:focus ~ label,
:root .form-floating > .form-control-modern:focus ~ label,
:root .form-floating > .form-control:not(:placeholder-shown) ~ label,
:root .form-floating > .form-control-modern:not(:placeholder-shown) ~ label {
    color: #0d6efd;
}

[data-theme="dark"] .form-floating > .form-control:focus ~ label,
[data-theme="dark"] .form-floating > .form-control-modern:focus ~ label,
[data-theme="dark"] .form-floating > .form-control:not(:placeholder-shown) ~ label,
[data-theme="dark"] .form-floating > .form-control-modern:not(:placeholder-shown) ~ label {
    color: #58a6ff;
}

/* Mobile responsive for comment submit form */
@media (max-width: 768px) {
    .comment-submit-form {
        padding: 1rem;
    }
    
    .comment-form-actions {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .comment-form-actions .btn {
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 576px) {
    .comment-submit-form {
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .comment-submit-form::before {
        border-radius: 8px 8px 0 0;
    }
}

/* Code Section Styles */
.code-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.code-section.collapsed pre {
    height: 35px !important;
    min-height: 35px !important;
    max-height: 35px !important;
    padding: 0 1.5rem !important;
    overflow: hidden !important;
    transition: all 0.3s ease;
}

.code-section.collapsed pre::before {
    height: 35px !important;
    opacity: 1 !important;
    display: block !important;
}

.code-section.collapsed .mac-buttons {
    position: absolute !important;
    top: 8px !important;
    left: 15px !important;
    z-index: 20 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

.code-section.collapsed pre code {
    opacity: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    display: none !important;
    transition: all 0.3s ease;
}

.code-section pre {
    height: auto;
    min-height: auto;
    max-height: none;
    transition: all 0.3s ease;
}

.code-section:not(.collapsed) pre {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

.code-section:not(.collapsed) pre code {
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
}

.code-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.code-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 12px 12px 0 0;
}

.code-section h3, .code-section h4 {
    color: #495057;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-section h3 {
    font-size: 1.25rem;
}

.code-section h4 {
    font-size: 1.1rem;
}

.code-section pre {
    background: #f8f9fa !important;
    background-color: #f8f9fa !important;
    border: none !important;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0 0 0;
    overflow-x: auto;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.code-section pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 35px;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    border-radius: 8px 8px 0 0;
    border-bottom: none;
}

.code-section pre::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 15px;
    z-index: 1;
    width: 50px;
    height: 20px;
}

.code-section .mac-buttons {
    position: absolute;
    top: 8px;
    left: 15px;
    z-index: 10;
    display: flex;
    gap: 8px;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.code-section .mac-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none !important;
    outline: none !important;
}

.code-section .mac-button.close {
    background: #ff5f57;
    box-shadow: 0 1px 2px rgba(255, 95, 87, 0.3);
}

.code-section .mac-button.minimize {
    background: #ffbd2e;
    box-shadow: 0 1px 2px rgba(255, 189, 46, 0.3);
}

.code-section .mac-button.maximize {
    background: #28ca42;
    box-shadow: 0 1px 2px rgba(40, 202, 66, 0.3);
}

.code-section .mac-button:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.code-section .mac-button:active {
    transform: scale(0.95);
}

.code-section code {
    color: #2d3748;
    font-family: 'Fira Code', 'Monaco', 'Consolas', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    display: block;
    padding-top: 1rem;
    white-space: pre;
    overflow-x: auto;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    border: none !important;
    outline: none !important;
}

/* Syntax highlighting colors - Light theme */
.code-section code .keyword {
    color: #d63384;
    font-weight: bold;
}

.code-section code .string {
    color: #198754;
}

.code-section code .comment {
    color: #6c757d;
    font-style: italic;
}

.code-section code .number {
    color: #fd7e14;
}

.code-section code .function {
    color: #0985d0;
}

.code-section code .class {
    color: #6f42c1;
}

/* Default text color for light theme */
.code-section pre code {
    color: #2d3748 !important;
    border: none !important;
    outline: none !important;
}

/* Dark theme code section */
[data-theme="dark"] .code-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%) !important;
    background-color: #000000 !important;
}

[data-theme="dark"] .code-section h3,
[data-theme="dark"] .code-section h4 {
    color: #f0f6fc;
}

[data-theme="dark"] .code-section pre {
    background: #000000 !important;
    background-color: #000000 !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .code-section .mac-button.close {
    background: #ff5f57;
    box-shadow: 0 1px 2px rgba(255, 95, 87, 0.4);
}

[data-theme="dark"] .code-section .mac-button.minimize {
    background: #ffbd2e;
    box-shadow: 0 1px 2px rgba(255, 189, 46, 0.4);
}

[data-theme="dark"] .code-section .mac-button.maximize {
    background: #28ca42;
    box-shadow: 0 1px 2px rgba(40, 202, 66, 0.4);
}

[data-theme="dark"] .code-section code {
    color: #f0f6fc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    border: none !important;
    outline: none !important;
}

[data-theme="dark"] .code-section pre code {
    color: #f0f6fc !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    border: none !important;
    outline: none !important;
}

/* Dark theme syntax highlighting colors */
[data-theme="dark"] .code-section code .keyword {
    color: #ff6b6b;
    font-weight: bold;
}

[data-theme="dark"] .code-section code .string {
    color: #51cf66;
}

[data-theme="dark"] .code-section code .comment {
    color: #74c0fc;
    font-style: italic;
}

[data-theme="dark"] .code-section code .number {
    color: #ffd43b;
}

[data-theme="dark"] .code-section code .function {
    color: #4ecdc4;
}

[data-theme="dark"] .code-section code .class {
    color: #d770ad;
}

[data-theme="dark"] .code-section pre::before {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%) !important;
    background-color: #000000 !important;
    border-bottom: none !important;
}

[data-theme="dark"] .code-section.collapsed pre {
    background: #000000 !important;
    background-color: #000000 !important;
}

[data-theme="dark"] .code-section.collapsed pre::before {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%) !important;
    background-color: #000000 !important;
}

/* Feature section styles */
.feature-section {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-section:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.feature-section h3 {
    color: #495057;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-section ul {
    margin: 0;
    padding-left: 1.5rem;
}

.feature-section li {
    margin-bottom: 0.75rem;
    color: #6c757d;
    line-height: 1.6;
}

.feature-section li strong {
    color: #495057;
    font-weight: 600;
}

/* Dark theme feature section */
[data-theme="dark"] .feature-section {
    background: linear-gradient(135deg, #161b22 0%, #21262d 100%);
    border-left-color: #58a6ff;
    color: #f0f6fc;
}

[data-theme="dark"] .feature-section h3 {
    color: #f0f6fc;
}

[data-theme="dark"] .feature-section li {
    color: #8b949e;
}

[data-theme="dark"] .feature-section li strong {
    color: #f0f6fc;
}

/* Conclusion section styles */
.conclusion {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8ff 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid #d4edda;
    position: relative;
    overflow: hidden;
}

.conclusion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.conclusion h3 {
    color: #155724;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conclusion p {
    color: #155724;
    line-height: 1.6;
    margin: 0;
}

/* Dark theme conclusion */
[data-theme="dark"] .conclusion {
    background: linear-gradient(135deg, #0f2419 0%, #0d1d2b 100%);
    border-color: #1a472a;
}

[data-theme="dark"] .conclusion h3,
[data-theme="dark"] .conclusion p {
    color: #7dcea0;
}

/* Post content general styles */
.post-content {
    line-height: 1.8;
    font-size: 1rem;
}

.post-content h2 {
    color: #495057;
    font-weight: 700;
    margin: 2rem 0 1.5rem 0;
    font-size: 1.75rem;
    line-height: 1.3;
}

.post-content p {
    margin-bottom: 1.5rem;
    color: #6c757d;
    text-align: justify;
}

/* Dark theme post content */
[data-theme="dark"] .post-content h2 {
    color: #f0f6fc;
}

[data-theme="dark"] .post-content p {
    color: #8b949e;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .code-section,
    .feature-section,
    .conclusion {
        margin: 1.5rem 0;
        padding: 1rem;
    }
    
    .code-section pre {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .code-section code {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .code-section h3,
    .feature-section h3,
    .conclusion h3 {
        font-size: 1.1rem;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
        margin: 1.5rem 0 1rem 0;
    }
}

@media (max-width: 576px) {
    .code-section pre {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }
    
    .code-section pre::before {
        border-radius: 0;
    }
    
    .feature-section:hover,
    .code-section:hover {
        transform: none;
    }
}

/* Force dark mode black background with highest specificity */
html[data-theme="dark"] body .code-section,
html[data-theme="dark"] .code-section,
[data-theme="dark"] body .code-section,
body[data-theme="dark"] .code-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%) !important;
    background-color: #000000 !important;
}

html[data-theme="dark"] body .code-section pre,
html[data-theme="dark"] .code-section pre,
[data-theme="dark"] body .code-section pre,
body[data-theme="dark"] .code-section pre {
    background: #000000 !important;
    background-color: #000000 !important;
}

html[data-theme="dark"] body .code-section pre::before,
html[data-theme="dark"] .code-section pre::before,
[data-theme="dark"] body .code-section pre::before,
body[data-theme="dark"] .code-section pre::before {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%) !important;
    background-color: #000000 !important;
}

html[data-theme="dark"] body .code-section.collapsed pre,
html[data-theme="dark"] .code-section.collapsed pre,
[data-theme="dark"] body .code-section.collapsed pre,
body[data-theme="dark"] .code-section.collapsed pre {
    background: #000000 !important;
    background-color: #000000 !important;
}

html[data-theme="dark"] body .code-section.collapsed pre::before,
html[data-theme="dark"] .code-section.collapsed pre::before,
[data-theme="dark"] body .code-section.collapsed pre::before,
body[data-theme="dark"] .code-section.collapsed pre::before {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%) !important;
    background-color: #000000 !important;
}