/* Article Page Styles */

/* Article Hero Section */
.article-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e6f7ff 100%);
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23b53ac1" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Article Header */
.article-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.article-category {
    display: inline-block;
    background: var(--gradient-secondary);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.article-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Article Meta Information */
.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Author Information */
.article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Featured Image */
.article-featured-image {
    margin: 3rem 0;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(181, 58, 193, 0.1);
}

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

/* Article Container and Layout */
.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    padding: 4rem 0;
}

/* Article Content Styling */
.article-content {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2.5rem 0 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.article-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 2rem 0 1rem;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.article-content ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 0.8rem;
    position: relative;
}

.article-content li::before {
    content: '▶';
    position: absolute;
    left: -1.5rem;
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* Article Highlight Box */
.article-highlight {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: var(--border-radius);
}

.article-highlight p {
    margin-bottom: 0;
    font-style: italic;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-section {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

/* Recent Articles in Sidebar */
.recent-articles {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recent-article {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.recent-article:hover {
    transform: translateX(5px);
}

.recent-article-image {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

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

.recent-article-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-article-content p {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.recent-article:hover h4 {
    color: var(--primary-color);
}

/* Sidebar Tags */
.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
}

/* Sidebar Newsletter */
.sidebar-newsletter {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    color: white;
    text-align: center;
}

.sidebar-newsletter h3 {
    color: white;
    border-bottom: none;
    margin-bottom: 1rem;
}

.sidebar-newsletter p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

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

.newsletter-form input {
    padding: 0.8rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.newsletter-form button {
    padding: 0.8rem 1.5rem;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Article Share Section */
.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
    border-top: 1px solid var(--bg-light);
    margin-top: 3rem;
}

.article-share span {
    font-weight: 600;
    color: var(--text-dark);
}

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

.share-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-button.facebook {
    background: #1877f2;
    color: white;
}

.share-button.twitter {
    background: #1da1f2;
    color: white;
}

.share-button.linkedin {
    background: #0077b5;
    color: white;
}

.share-button.whatsapp {
    background: #25d366;
    color: white;
}

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

/* CTA Promo Button */
.cta-promo-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--gradient-tertiary);
    color: white;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease, border-color 0.4s ease;
    margin-top: 1rem;
    box-shadow: var(--shadow-tertiary);
    position: relative;
    overflow: hidden;
}

.cta-promo-button:hover {
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.35);
}

.cta-promo-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .article-sidebar {
        position: static;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }

    .article-content {
        padding: 2rem;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .article-hero {
        padding: 80px 0 40px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.5rem;
    }

    .article-content {
        padding: 1.5rem;
    }

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

    .article-content h3 {
        font-size: 1.2rem;
    }

    .article-content p,
    .article-content li {
        font-size: 1rem;
    }
}