/* Article-specific styles */
.article {
    padding: 2rem 0;
}

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

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--primary-color);
    transition: var(--transition);
}

.breadcrumbs a:hover {
    opacity: 0.7;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.meta-item i {
    color: var(--primary-color);
}

.article-image {
    width: 100%;
    height: 400px;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
}

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

.article-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.lead {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--accent-color);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.article-content h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 500;
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 1.4rem;
    font-weight: 500;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.article-content a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
    transition: var(--transition);
}

.article-content a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.article-content a:visited {
    color: var(--primary-color);
}

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

.article-content li a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
    transition: var(--transition);
}

.article-content li a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Enhanced Article Header */
.article-hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0 3rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 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.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.article-hero .container {
    position: relative;
    z-index: 3;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    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-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

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

.title-main {
    display: block;
    color: white;
}

.title-sub {
    display: block;
    color: #ffd700;
    font-size: 0.7em;
    margin-top: 0.5rem;
}

.article-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
}

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

.meta-left, .meta-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.author-avatar {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

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

.author-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: #4CAF50;
    border: 2px solid white;
    border-radius: 50%;
}

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

.author-name {
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
}

.author-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.article-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

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

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Enhanced Article Layout */
.article-intro {
    margin-bottom: 3rem;
}

.article-section {
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.article-section:last-of-type {
    border-bottom: none;
}

.section-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-content {
    padding-left: 1rem;
}

.section-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
}

.article-section.conclusion {
    background: var(--accent-color);
    padding: 2rem;
    border-radius: 12px;
    border: none;
    margin-top: 2rem;
}

.article-section.conclusion .section-content p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0;
}

/* Article Footer */
.article-footer {
    background: var(--light-bg);
    padding: 4rem 0;
    margin-top: 4rem;
}

.author-bio {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.author-bio-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.author-bio-avatar {
    position: relative;
    flex-shrink: 0;
}

.author-bio-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
}

.author-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    border: 3px solid white;
}

.author-bio-info {
    flex: 1;
}

.author-bio-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.author-bio-title {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.author-bio-description {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.author-bio-social {
    display: flex;
    gap: 1rem;
}

.author-bio-social .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.author-bio-social .social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.newsletter-signup {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 3rem;
    color: white;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.newsletter-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.newsletter-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.newsletter-form {
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.form-group input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
}

.newsletter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-privacy {
    font-size: 0.9rem;
    opacity: 0.8;
}

.related-content {
    margin-bottom: 3rem;
}

.related-content-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.related-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-content-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.related-content-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.related-content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-content-item:hover .related-content-image img {
    transform: scale(1.05);
}

.related-content-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.related-content-info {
    padding: 1.5rem;
}

.related-content-info h4 {
    margin-bottom: 0.5rem;
}

.related-content-info h4 a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.related-content-info h4 a:hover {
    color: var(--secondary-color);
}

.related-content-info p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.related-content-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.article-actions-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.action-btn-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-color);
    cursor: pointer;
}

.action-btn-footer.primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.action-btn-footer.back {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.action-btn-footer:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.action-btn-footer.primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.article-image-inline {
    margin: 2rem 0;
    text-align: center;
}

.article-image-inline img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.image-caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.product-recommendation {
    background: var(--accent-color);
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.product-recommendation h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
}

.product-info h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.product-link {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.product-link:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--white);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.call-to-action {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.call-to-action h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.call-to-action p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition);
}

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

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.tag {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.related-articles {
    padding: 4rem 0;
    background: var(--accent-color);
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary-color);
    z-index: 1001;
    transition: width 0.3s ease;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1000;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

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

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-image {
        height: 250px;
        margin: 1.5rem 0;
    }

    .article-content {
        padding: 0 1rem;
    }

    .lead {
        padding: 1rem;
        font-size: 1.1rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-recommendation {
        padding: 1.5rem;
    }

    .call-to-action {
        padding: 1.5rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

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

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

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

    .article-image {
        height: 200px;
    }

    /* Enhanced Layout Responsive */
    .section-title {
        font-size: 1.5rem;
        padding-left: 0.5rem;
    }

    .section-title::before {
        width: 3px;
        height: 1.5rem;
    }

    .section-content {
        padding-left: 0.5rem;
    }

    .article-section {
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }

    .article-section.conclusion {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .article-section.conclusion .section-content p {
        font-size: 1rem;
    }

    /* Enhanced Header Responsive */
    .article-hero {
        padding: 2rem 0;
    }

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

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

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

    .meta-left, .meta-right {
        width: 100%;
        justify-content: space-between;
    }

    .article-stats {
        gap: 1rem;
    }

    .article-actions {
        justify-content: center;
    }

    /* Enhanced Footer Responsive */
    .author-bio-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .newsletter-signup {
        padding: 2rem 1rem;
    }

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

    .related-content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .article-actions-footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

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

    .product-recommendation,
    .call-to-action {
        padding: 1rem;
    }
}