/* Import base styles from home page */
@import url('style.css');

/* Article Page Specific Styles - Overrides and additions */

/* Article Header */
.article-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
}

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

.breadcrumb-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: white;
}

.breadcrumb-separator {
    color: rgba(255,255,255,0.6);
}

.breadcrumb-current {
    color: white;
    font-weight: 500;
}

/* Article Main */
.article-main {
    padding: 0;
}

.article-layout {
    display: block;
    margin-top: 3rem;
}

/* Article Content */
.article-content {
    max-width: none;
}

/* Article Hero */
.article-hero {
    position: relative;
    margin-bottom: 3rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.article-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.article-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 3rem 2rem 2rem;
    color: white;
}

.article-category {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 1rem;
}

.author-title {
    font-size: 0.875rem;
    opacity: 0.9;
}

.article-meta-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Article Body */
.article-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}

.article-intro {
    margin-bottom: 2rem;
}

.article-intro .lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    color: #4b5563;
    border-left: 4px solid #2563eb;
    padding-left: 1rem;
}

.article-body h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 2rem 0 1rem;
    line-height: 1.3;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-list {
    list-style: none;
    padding-left: 0;
}

.article-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    padding-left: 2rem;
}

.article-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Article Quote */
.article-quote {
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

.article-quote p {
    font-size: 1.125rem;
    font-style: italic;
    color: #1f2937;
    margin-bottom: 1rem;
}

.article-quote cite {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: normal;
}

/* Article Image */
.article-image {
    margin: 2rem 0;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.article-image figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Article Conclusion */
.article-conclusion {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.article-conclusion p {
    font-weight: 500;
    color: #0c4a6e;
}

/* Article Tags */
.article-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.article-tags h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.tag-list {
    display: inline-block;
}

.tag {
    display: inline-block;
    background: #f3f4f6;
    color: white !important;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #2563eb;
    color: white !important;
}

/* Article Actions */
.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.article-actions svg {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.article-stats {
    display: inline;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #f9fafb;
    color: #1f2937;
}

.action-btn.liked {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fecaca;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}


/* Comments Section */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-form {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.comment-form:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.comment-form h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.form-input,
.form-textarea,
.comment-textarea,
.reply-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.comment-textarea:focus,
.reply-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: #ffffff;
}

.form-textarea,
.comment-textarea,
.reply-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.comment-form .comment-content {
    flex: 1;
}

.comment-textarea {
    width: 100%;
    min-height: 100px;
    margin-bottom: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    font-family: inherit;
    font-size: 0.875rem;
    resize: vertical;
    transition: all 0.3s ease;
}

.comment-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.comment-toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toolbar-btn:hover {
    background: #e5e7eb;
}

.toolbar-btn svg {
    width: 16px;
    height: 16px;
}

.comment-form .comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.comment {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.comment:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: #e5e7eb;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #f3f4f6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f9fafb;
}

.comment-author {
    font-weight: 700;
    color: #1f2937;
    font-size: 0.95rem;
}

.comment-date {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 500;
}

.comment-text {
    color: #374151;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.comment-actions {
    display: flex;
    gap: 1.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f9fafb;
}

.comment-action {
    font-size: 0.8rem;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.comment-action:hover {
    color: #2563eb;
    transform: translateY(-1px);
}

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

@media (max-width: 768px) {
    .article-header {
        padding: 1.5rem 0;
    }

    .article-hero-image {
        height: 300px;
    }

    .article-hero-overlay {
        padding: 2rem 1.5rem 1.5rem;
    }

    .article-title {
        font-size: 1.75rem;
    }

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

    .article-meta-info {
        align-items: flex-start;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-body h2 {
        font-size: 1.5rem;
    }

    .article-body h3 {
        font-size: 1.25rem;
    }

    .article-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .action-buttons,
    .share-buttons {
        justify-content: center;
    }


    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .article-hero-overlay {
        padding: 1.5rem 1rem 1rem;
    }

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

    .article-author-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .article-body .lead {
        font-size: 1.125rem;
        padding-left: 0.5rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .action-btn {
        justify-content: center;
    }

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

    .comment-avatar {
        width: 32px;
        height: 32px;
    }
}
.small-circle-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}