﻿:root {
    --article-primary: #6366f1;
    --article-secondary: #8b5cf6;
    --article-accent: #06b6d4;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Article Header */
.article-header {
    background: linear-gradient(135deg, var(--article-primary), var(--article-secondary));
    color: white;
    position: relative;
    overflow: hidden;
    padding: 4rem 0 2rem;
    margin-top: 70px;
}

    .article-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        animation: float 20s ease-in-out infinite;
    }

.article-meta-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.article-category {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.article-title-main {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.article-summary-main {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.author-info-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.author-avatar-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.article-stats-main {
    display: flex;
    gap: 2rem;
    align-items: center;
    opacity: 0.8;
}

.stat-item-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* Featured Image */
.article-featured-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
    max-height: 500px;
}

    .article-featured-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
    font-style: italic;
    font-size: 0.9rem;
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

    .article-content h1,
    .article-content h2,
    .article-content h3,
    .article-content h4,
    .article-content h5,
    .article-content h6 {
        margin-top: 2.5rem;
        margin-bottom: 1rem;
        font-weight: 700;
        color: var(--text-dark);
    }

    .article-content h2 {
        font-size: 1.8rem;
        border-bottom: 3px solid var(--article-primary);
        padding-bottom: 0.5rem;
    }

    .article-content h3 {
        font-size: 1.5rem;
    }

    .article-content p {
        margin-bottom: 1.5rem;
    }

    .article-content blockquote {
        background: var(--bg-light);
        border-left: 4px solid var(--article-primary);
        padding: 1.5rem;
        margin: 2rem 0;
        border-radius: 0 12px 12px 0;
        font-style: italic;
        font-size: 1.1rem;
        position: relative;
    }

        .article-content blockquote::before {
            content: '"';
            font-size: 4rem;
            color: var(--article-primary);
            position: absolute;
            top: -0.5rem;
            left: 1rem;
            opacity: 0.3;
            font-family: Georgia, serif;
        }

    .article-content ul,
    .article-content ol {
        margin-bottom: 1.5rem;
        padding-left: 2rem;
    }

    .article-content li {
        margin-bottom: 0.5rem;
    }

    .article-content a {
        color: var(--article-primary);
        text-decoration: none;
        border-bottom: 1px solid transparent;
        transition: all 0.3s ease;
    }

        .article-content a:hover {
            border-bottom-color: var(--article-primary);
            color: var(--article-secondary);
        }

    .article-content img {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        box-shadow: var(--shadow-md);
        margin: 1.5rem 0;
    }

    .article-content pre {
        background: #1e293b;
        color: #e2e8f0;
        padding: 1.5rem;
        border-radius: 12px;
        overflow-x: auto;
        margin: 1.5rem 0;
        font-size: 0.9rem;
    }

    .article-content code {
        background: var(--bg-light);
        padding: 0.2rem 0.4rem;
        border-radius: 4px;
        font-size: 0.9rem;
        color: var(--article-primary);
    }

    .article-content pre code {
        background: transparent;
        padding: 0;
        color: inherit;
    }

/* Article Actions */
.article-actions {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
    border: 1px solid var(--border-light);
}

.action-btn {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 50px;
    padding: 12px 20px;
    margin: 0.5rem 0;
    width: 100%;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-dark);
}

    .action-btn:hover {
        background: var(--article-primary);
        border-color: var(--article-primary);
        color: white;
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .action-btn.active {
        background: var(--article-primary);
        border-color: var(--article-primary);
        color: white;
    }

    .action-btn.bookmark-active {
        background: #fbbf24;
        border-color: #fbbf24;
        color: white;
    }

    .action-btn.like-active {
        background: #ef4444;
        border-color: #ef4444;
        color: white;
    }

/* Rating System */
.rating-container {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 16px;
    margin: 2rem 0;
}

.rating-stars {
    font-size: 2rem;
    margin: 1rem 0;
}

.star {
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 2px;
}

    .star:hover,
    .star.active {
        color: #fbbf24;
    }

    .star:hover {
        transform: scale(1.2);
    }

.rating-info {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Tags Section */
.article-tags {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 2px solid var(--border-light);
    border-bottom: 2px solid var(--border-light);
}

.tag-item {
    display: inline-block;
    background: linear-gradient(45deg, var(--article-primary), var(--article-secondary));
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    text-decoration: none;
    margin: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

    .tag-item:hover {
        transform: translateY(-2px) scale(1.05);
        box-shadow: var(--shadow-md);
        color: white;
    }

/* Share Section */
.share-section {
    background: linear-gradient(135deg, var(--article-primary), var(--article-secondary));
    color: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    margin: 3rem 0;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.share-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

    .share-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        color: white;
        transform: translateY(-2px);
    }

    .share-btn.facebook {
        background-color: #1877f2;
    }

    .share-btn.twitter {
        background-color: #1da1f2;
    }

    .share-btn.linkedin {
        background-color: #0a66c2;
    }

    .share-btn.whatsapp {
        background-color: #25d366;
    }

    .share-btn.email {
        background-color: #ea4335;
    }

/* Comments Section */
.comments-section {
    margin: 4rem 0;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.comments-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comment-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
}

.comment-textarea {
    width: 100%;
    min-height: 120px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
}

    .comment-textarea:focus {
        outline: none;
        border-color: var(--article-primary);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    }

.comment-submit {
    background: linear-gradient(45deg, var(--article-primary), var(--article-secondary));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

    .comment-submit:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .comment-submit:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* Individual Comments */
.comment-item {
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: white;
    transition: all 0.3s ease;
}

    .comment-item:hover {
        box-shadow: var(--shadow-sm);
    }

.comment-header {
    display: flex;
    align-items: center;
    justify-content: between;
    margin-bottom: 1rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.comment-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
}

.comment-author-info h6 {
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
}

.comment-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.comment-action {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .comment-action:hover {
        color: var(--article-primary);
    }

.comment-content {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.comment-reply {
    margin-left: 3rem;
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--article-primary);
}

/* Related Articles */
.related-articles {
    margin: 4rem 0;
}

.related-article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
}

    .related-article-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    }

.related-article-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

    .related-article-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.related-article-card:hover .related-article-image img {
    transform: scale(1.05);
}

.related-article-content {
    padding: 1.5rem;
}

.related-article-title {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .related-article-title a {
        color: var(--text-dark);
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .related-article-title a:hover {
            color: var(--article-primary);
        }

.related-article-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    justify-content: between;
    align-items: center;
}

/* Social Proof */
.social-proof {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin: 3rem 0;
}

.social-proof-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
}

.social-stat {
    text-align: center;
}

.social-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--article-primary);
    display: block;
}

.social-stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Progress Bar for Reading */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(to right, var(--article-primary), var(--article-secondary));
    z-index: 9999;
    transition: width 0.3s ease;
}

/* Table of Contents */
.table-of-contents {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.toc-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 0.5rem;
}

.toc-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

    .toc-link:hover,
    .toc-link.active {
        background: var(--article-primary);
        color: white;
    }

    .toc-link.level-2 {
        padding-left: 1rem;
    }

    .toc-link.level-3 {
        padding-left: 2rem;
    }

/* Newsletter Signup */
.newsletter-signup {
    background: linear-gradient(135deg, var(--article-primary), var(--article-secondary));
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin: 4rem 0;
}

.newsletter-form {
    max-width: 400px;
    margin: 2rem auto 0;
}

.newsletter-input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
    outline: none;
}

.newsletter-submit {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 0 50px 50px 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .newsletter-submit:hover {
        background: rgba(255, 255, 255, 0.3);
    }

/* Responsive Design */
@media (max-width: 1200px) {
    .article-actions {
        position: relative;
        top: auto;
        margin-top: 2rem;
    }

    .table-of-contents {
        position: relative;
        top: auto;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .article-header {
        padding: 2rem 0 1rem;
    }

    .article-title-main {
        font-size: 2rem;
    }

    .article-summary-main {
        font-size: 1.1rem;
    }

    .article-stats-main {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .article-content {
        font-size: 1rem;
    }

    .comment-reply {
        margin-left: 1rem;
    }

    .share-buttons {
        flex-direction: column;
        max-width: 250px;
        margin: 1.5rem auto 0;
    }

    .social-proof-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .related-article-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .article-title-main {
        font-size: 1.7rem;
    }

    .author-info-main {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .author-avatar-main {
        width: 50px;
        height: 50px;
    }

    .comment-form,
    .comments-section {
        padding: 1rem;
    }

    .newsletter-signup {
        padding: 2rem 1rem;
    }
}

/* Print Styles */
@media print {
    .article-actions,
    .share-section,
    .comments-section,
    .newsletter-signup,
    .related-articles {
        display: none !important;
    }

    .article-header {
        background: white !important;
        color: black !important;
    }

    .article-content {
        font-size: 12pt;
        line-height: 1.5;
    }

        .article-content a {
            color: black;
            text-decoration: underline;
        }
}

/* Animation Keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}
