/* Blog Details - Additional CSS */
/* Only includes styles not already present in main style.css */

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(128, 66, 149, 0.1);
    z-index: 1001;
}

.reading-progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    width: 0%;
    transition: width 0.1s ease;
}

/* Article Header */
.article-header {
    background: var(--bg-secondary);
    padding: 8rem 0 4rem;
    border-bottom: 1px solid var(--border-color);
}

.article-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.article-breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.article-breadcrumbs a:hover {
    color: var(--primary-color);
}

.article-breadcrumbs a.active {
    color: var(--primary-color);
}

.article-breadcrumbs i {
    font-size: 0.75rem;
    opacity: 0.5;
}

.article-meta-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-category.security {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.article-category.performance {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.article-category.wordpress {
    background: rgba(52, 73, 94, 0.1);
    color: #34495e;
}

.article-category.tutorials {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.article-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.article-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.article-excerpt {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.author-avatar {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-color);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: var(--success-color);
    border: 2px solid var(--bg-primary);
    border-radius: 50%;
}

.author-info {
    flex: 1;
}

.author-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.author-info p {
    margin: 0 0 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.author-social {
    display: flex;
    gap: 0.5rem;
}

.author-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--bg-secondary);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 0.75rem;
    transition: var(--transition);
}

.author-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.article-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Article Content Layout */
.article-content {
    padding: 4rem 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.article-main {
    min-width: 0; /* Prevents overflow */
}

/* Article Image */
.article-image {
    margin-bottom: 3rem;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    padding: 1rem;
    background: var(--bg-secondary);
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

/* Table of Contents */
.table-of-contents {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 3rem;
}

.table-of-contents h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.toc-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-nav li {
    margin-bottom: 0.5rem;
}

.toc-nav a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.toc-nav a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Article Body */
.article-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-body section {
    margin-bottom: 3rem;
}

.article-body h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
}

.article-body h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    color: var(--text-primary);
}

.article-body h4 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--text-primary);
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body strong {
    font-weight: 700;
    color: var(--text-primary);
}

/* Alert Boxes */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: var(--border-radius-lg);
    border-left: 4px solid;
}

.alert i {
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border-left-color: #3498db;
    color: #2980b9;
}

.alert-warning {
    background: rgba(243, 156, 18, 0.1);
    border-left-color: #f39c12;
    color: #e67e22;
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    border-left-color: #27ae60;
    color: #229954;
}

.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    border-left-color: #e74c3c;
    color: #c0392b;
}

/* Code Blocks */
.code-block {
    margin: 2rem 0;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #2d3748;
    color: white;
    font-size: 0.875rem;
}

.code-language {
    font-weight: 600;
}

.copy-code {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: white;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition);
}

.copy-code:hover {
    background: rgba(255, 255, 255, 0.2);
}

.code-block pre {
    margin: 0;
    padding: 1.5rem;
    background: #1a202c;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-item .feature-icon {
    width: 4rem;
    height: 4rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.feature-item h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-pros {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 5rem;
}

.timeline-marker {
    position: absolute;
    left: 1.25rem;
    top: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary-color);
    border: 3px solid var(--bg-primary);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.timeline-content h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1rem;
}

/* Backup Rule */
.backup-rule {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.rule-number {
    width: 3rem;
    height: 3rem;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.rule-description h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.rule-description p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Security Checklist */
.security-checklist {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin: 2rem 0;
}

.security-checklist h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary-color);
}

.checklist-item label {
    cursor: pointer;
    color: var(--text-secondary);
    margin: 0;
}

.checklist-item input[type="checkbox"]:checked + label {
    color: var(--text-primary);
    text-decoration: line-through;
}

/* Monitoring Stats */
.monitoring-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Article Tags */
.article-tags {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.article-tags h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Social Sharing */
.social-sharing {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.social-sharing h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.facebook {
    background: #4267b2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.reddit {
    background: #ff4500;
}

.share-btn.copy {
    background: var(--text-secondary);
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin: 3rem 0;
}

.author-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--border-color);
    flex-shrink: 0;
}

.author-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details {
    flex: 1;
}

.author-details h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.author-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.author-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.author-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.author-stats .stat {
    text-align: center;
}

.author-stats .stat strong {
    display: block;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.author-stats .stat span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.author-social-links {
    display: flex;
    gap: 1rem;
}

.author-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition);
}

.author-social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Article Navigation */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.nav-previous,
.nav-next {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.nav-previous:hover,
.nav-next:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.nav-link {
    display: block;
    padding: 2rem;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-direction {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.nav-title {
    font-weight: 600;
    color: var(--text-primary);
}

.nav-next .nav-direction {
    justify-content: flex-end;
}

.nav-next .nav-title {
    text-align: right;
}

/* Related Articles */
.related-articles {
    margin: 3rem 0;
}

.related-articles h3 {
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.related-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(128, 66, 149, 0.9);
    color: white;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.related-content {
    padding: 1.5rem;
}

.related-content h4 {
    margin-bottom: 0.75rem;
}

.related-content h4 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.related-content h4 a:hover {
    color: var(--primary-color);
}

.related-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.related-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.related-meta span::before {
    content: '•';
    margin-right: 0.5rem;
    color: var(--border-color);
}

.related-meta span:first-child::before {
    display: none;
}

/* Comments Section */
.comments-section {
    margin: 4rem 0;
    padding: 3rem 0;
    border-top: 2px solid var(--border-color);
}

.comments-section h3 {
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.comment-count {
    color: var(--text-muted);
    font-weight: normal;
}

/* Comment Form */
.comment-form {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 3rem;
}

.comment-form h4 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-options {
    margin: 1rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--primary-color);
}

/* Comments List */
.comments-list {
    margin-bottom: 2rem;
}

.comment {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.comment:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comment-avatar {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: var(--primary-color);
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: var(--border-radius);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.comment-header h5 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.comment-date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comment-reply,
.comment-like {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.875rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.comment-reply:hover,
.comment-like:hover {
    color: var(--primary-color);
}

.comment-like.liked {
    color: var(--danger-color);
}

.comment p {
    color: var(--text-secondary);
    margin: 0;
}

.comment.reply {
    margin-left: 3rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border-color);
}

.comment-reply-container {
    margin-top: 1rem;
}

.load-more-comments {
    text-align: center;
}

/* Article Sidebar */
.article-sidebar {
    position: sticky;
    top: 6rem;
    height: fit-content;
}

.sidebar-widget {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.sidebar-widget h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.25rem;
}

/* Sidebar TOC */
.sidebar-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-toc li {
    margin-bottom: 0.5rem;
}

.sidebar-toc a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    text-decoration: none;
    border-left: 3px solid transparent;
    padding-left: 1rem;
    transition: var(--transition);
    font-size: 0.875rem;
}

.sidebar-toc a:hover,
.sidebar-toc a.active {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

/* Tools Widget */
.tools-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.tool-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.tool-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.tool-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.tool-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.tool-item:hover .tool-info h4,
.tool-item:hover .tool-info p {
    color: white;
}

/* Sticky Widget */
.sticky-widget {
    position: sticky;
    top: 6rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-sidebar {
        position: static;
        order: -1;
    }
    
    .sticky-widget {
        position: static;
    }
}

/* Fix 1: Newsletter Widget Input Styling */
.newsletter-widget .newsletter-signup {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.newsletter-widget .newsletter-signup input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    color: white;
    font-size: 0.875rem;
    transition: var(--transition);
}

.newsletter-widget .newsletter-signup input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.newsletter-widget .newsletter-signup input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-widget .btn-primary {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.newsletter-widget .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.newsletter-widget .newsletter-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.newsletter-widget .benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.newsletter-widget .benefit i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
}

/* Fix 2: Quick Navigation (TOC) Styling */
.sidebar-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-toc li {
    margin-bottom: 0.25rem;
}

.sidebar-toc a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-left: 3px solid transparent;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    transition: var(--transition);
    font-size: 0.875rem;
    line-height: 1.4;
    position: relative;
}

.sidebar-toc a:hover {
    color: var(--primary-color);
    background: rgba(128, 66, 149, 0.05);
    border-left-color: var(--primary-color);
}

.sidebar-toc a.active {
    color: var(--primary-color);
    background: rgba(128, 66, 149, 0.1);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.sidebar-toc a.active::before {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Fix 3: Comment Form Input Styling */
.comment-form .form-group {
    margin-bottom: 1.5rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: var(--font-family);
    transition: var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(128, 66, 149, 0.1);
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: var(--text-muted);
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.comment-form .form-row .form-group {
    margin-bottom: 0;
}

/* Enhanced Form Validation Styles */
.comment-form input.error,
.comment-form textarea.error {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.comment-form input.success,
.comment-form textarea.success {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* Fix for Newsletter in Sidebar */
.sidebar-widget.newsletter-widget {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

.sidebar-widget.newsletter-widget h3 {
    color: white;
    margin-bottom: 1rem;
}

.sidebar-widget.newsletter-widget p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

/* Quick Navigation Enhancements */
.toc-widget {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 6rem;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
}

.toc-widget h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Scrollbar for TOC */
.toc-widget::-webkit-scrollbar {
    width: 4px;
}

.toc-widget::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.toc-widget::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.toc-widget::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Comment Form Button Styling */
.comment-form .btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.comment-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Options Styling */
.comment-form .form-options {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.comment-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.comment-form .checkbox-label input[type="checkbox"] {
    margin-top: 0.125rem;
    accent-color: var(--primary-color);
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* Enhanced Newsletter Benefits */
.newsletter-benefits {
    margin-top: 1rem;
}

.newsletter-benefits .benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.newsletter-benefits .benefit:last-child {
    margin-bottom: 0;
}

.newsletter-benefits .benefit i {
    width: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .comment-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .comment-form .form-row .form-group {
        margin-bottom: 1.5rem;
    }
    
    .sidebar-toc a {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .toc-widget {
        position: static;
        max-height: none;
    }
}

@media (max-width: 480px) {
    .newsletter-widget .newsletter-signup {
        gap: 0.75rem;
    }
    
    .comment-form {
        padding: 1.5rem;
    }
    
    .comment-form input,
    .comment-form textarea {
        padding: 0.625rem 0.875rem;
    }
}

@media (max-width: 768px) {
    .article-header {
        padding: 6rem 0 3rem;
    }
    
    .article-meta-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-excerpt {
        font-size: 1.125rem;
    }
    
    .article-author {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-stats {
        justify-content: center;
    }
    
    .article-navigation {
        grid-template-columns: 1fr;
    }
    
    .nav-next .nav-direction {
        justify-content: flex-start;
    }
    
    .nav-next .nav-title {
        text-align: left;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .backup-rule {
        grid-template-columns: 1fr;
    }
    
    .monitoring-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-breadcrumbs {
        flex-wrap: wrap;
    }
    
    .article-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .table-of-contents,
    .comment-form,
    .sidebar-widget {
        padding: 1.5rem;
    }
    
    .monitoring-stats {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .comment {
        gap: 0.75rem;
    }
    
    .comment.reply {
        margin-left: 1rem;
    }
}