/* Article base styles */
.article-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Article header */
.article-header {
    margin-bottom: 2.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.article-category {
    display: inline-block;
    background-color: #3498db;
    color: white;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
}

.article-date::before,
.article-read-time::before {
    content: '•';
    margin-right: 0.5rem;
    color: #999;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.2;
}

.article-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.article-featured-image {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

/* Share buttons */
.article-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.share-text {
    font-size: 0.9rem;
    color: #666;
    margin-right: 0.5rem;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.twitter {
    background-color: #1DA1F2;
}

.facebook {
    background-color: #4267B2;
}

.linkedin {
    background-color: #0e76a8;
}

.copy-link {
    background-color: #555;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.share-button.copied {
    background-color: #4CAF50;
}

/* Table of Contents */
.article-toc {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

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

.toc-header h2 {
    font-size: 1.3rem;
    margin: 0;
    color: #2c3e50;
}

.toc-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    transition: transform 0.3s;
}

.toc-toggle.open svg {
    transform: rotate(180deg);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    display: block;
    padding: 0.5rem 0;
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
    border-bottom: 1px solid #eee;
}

.toc-list a:hover {
    color: #2980b9;
    padding-left: 0.5rem;
}

/* Article content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

.article-content section {
    margin-bottom: 3rem;
}

.article-content h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.article-content h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 1.5rem 0 1rem;
}

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

.article-content a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px dotted #3498db;
    transition: color 0.2s;
}

.article-content a:hover {
    color: #2980b9;
}

/* Lists */
.steps-list {
    counter-reset: step-counter;
    list-style-type: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.steps-list li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    counter-increment: step-counter;
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background-color: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.feature-list, .checkmark-list, .tip-list {
    list-style-type: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.feature-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3498db;
    font-size: 1.5rem;
    line-height: 1;
}

.checkmark-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.checkmark-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-size: 1.2rem;
    font-weight: bold;
}

.tip-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.tip-list li::before {
    content: "💡";
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Info boxes */
.info-box, .note-box {
    background-color: #e8f4fd;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
}

.info-icon {
    flex-shrink: 0;
    margin-right: 1rem;
    color: #3498db;
}

.info-content {
    flex-grow: 1;
}

.info-content p:last-child {
    margin-bottom: 0;
}

.note-box {
    background-color: #fff8e6;
    border-left: 4px solid #f1c40f;
    border-radius: 0 8px 8px 0;
    display: block; /* Changed from flex to block */
}

.note-box h3 {
    margin-top: 0;
    color: #b7950b;
}

.note-box .feature-list {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

/* Images */
.tutorial-image {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.image-caption {
    text-align: center;
    padding: 0.8rem;
    background-color: #f5f5f7;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* Size grid */
.size-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.size-item {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.size-item:hover {
    transform: translateY(-5px);
}

.size-icon {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    background-color: #f5f5f7;
    border-radius: 4px;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.size-description {
    font-size: 0.9rem;
    color: #666;
}

/* Comparison */
.comparison-image {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.comparison-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.comparison-item img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.comparison-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin: 1rem 0 0.5rem;
    font-weight: bold;
}

.comparison-label.good {
    background-color: #4CAF50;
    color: white;
}

.comparison-label.bad {
    background-color: #f44336;
    color: white;
}

.comparison-description {
    font-size: 0.9rem;
    color: #666;
}

/* CTA Box */
.cta-box {
    background-color: #2c3e50;
    color: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin: 2.5rem 0;
}

.cta-box h3 {
    margin-top: 0;
    color: white;
    font-size: 1.5rem;
}

.cta-button {
    display: inline-block;
    background-color: #ddd;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

/* Author section */
.author-section {
    display: flex;
    align-items: center;
    margin: 3rem 0;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.author-avatar {
    margin-right: 1.5rem;
}

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

.author-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #2c3e50;
}

.author-bio {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
}

/* Related articles */
.related-articles {
    margin: 3rem 0;
}

.related-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

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

.related-card {
    display: flex;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-image {
    flex: 0 0 120px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    flex-grow: 1;
    padding: 1rem;
}

.related-article-title {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta {
    font-size: 0.8rem;
    color: #888;
}

.related-date {
    margin-right: 0.8rem;
}

.related-read-time::before {
    content: '•';
    margin-right: 0.5rem;
}

/* Comments section */
.comments-section {
    margin: 3rem 0 0;
}

.comments-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.comment-form {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.comment-form h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #2c3e50;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.submit-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #2980b9;
}

/* Responsive styles */
@media (max-width: 992px) {
    .article-title {
        font-size: 2.2rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .article-container {
        padding: 1.5rem 0;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-description {
        font-size: 1.1rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .comparison-image {
        flex-direction: column;
        gap: 2rem;
    }
    
    .comparison-item {
        min-width: 100%;
    }
    
    .author-section {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .article-title {
        font-size: 1.6rem;
    }
    
    .article-featured-image {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }
    
    .size-grid {
        grid-template-columns: 1fr;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.3rem;
    }
    
    .cta-box {
        padding: 1.5rem;
    }
}