/* ==========================================
   Article Page Styles
   ========================================== */

.article-hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: flex-end;
    margin-bottom: 60px;
    overflow: hidden;
}

.article-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.article-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.article-hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 60px 0;
    max-width: 900px;
}

.article-hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--white);
    margin: 20px 0;
}

.article-meta {
    display: flex;
    gap: 30px;
    font-size: 0.95rem;
    color: var(--light-blue);
    margin-top: 20px;
}

.article-meta i {
    margin-right: 8px;
}

/* Article Content Layout */
.article-content-wrapper {
    padding: 60px 0;
    background: var(--white);
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
}

/* Main Article Content */
.article-main {
    max-width: 100%;
}

.article-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
}

.article-text .lead {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--gray-light);
}

.article-text h2 {
    font-size: 2.2rem;
    margin: 50px 0 25px;
    color: var(--primary-color);
    padding-top: 20px;
    border-top: 3px solid var(--gray-light);
}

.article-text h3 {
    font-size: 1.6rem;
    margin: 40px 0 20px;
    color: var(--secondary-color);
}

.article-text p {
    margin-bottom: 25px;
}

.article-text ul, .article-text ol {
    margin: 30px 0;
    padding-left: 40px;
}

.article-text li {
    margin-bottom: 15px;
    line-height: 1.8;
}

.article-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Article Image Block */
.article-image-block {
    margin: 50px 0;
    text-align: center;
}

.article-image-block img {
    max-width: 1200px;
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.image-caption {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-light);
    text-align: center;
}

.article-conclusion {
    background: var(--bg-light);
    padding: 40px;
    margin: 50px 0;
    border-left: 4px solid var(--accent-color);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-dark);
}

/* Product Recommendations */
.product-recommendations {
    margin: 80px 0 60px;
    padding: 60px 0;
    border-top: 3px solid var(--primary-color);
}

.product-recommendations h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border: 2px solid var(--gray-light);
    transition: var(--transition);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

.product-image {
    height: 300px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
}

.product-info h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 15px 0;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
}

.product-features span {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-features i {
    color: var(--accent-color);
}

.product-link {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-color);
    color: var(--white);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-top: 15px;
    transition: var(--transition);
}

.product-link:hover {
    background: var(--primary-color);
    transform: translateX(5px);
}

/* Article Share */
.article-share {
    margin: 60px 0;
    text-align: center;
    padding: 40px;
    background: var(--bg-light);
}

.article-share h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 12px 25px;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 5px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.pinterest {
    background: #e60023;
}

.share-btn.linkedin {
    background: #0077b5;
}

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

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

.sidebar-widget {
    background: var(--white);
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid var(--gray-light);
}

.sidebar-widget h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
}

/* Related Articles */
.related-article {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--gray-light);
}

.related-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-article img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
}

.related-content {
    flex: 1;
}

.related-content h4 {
    font-size: 1rem;
    margin: 8px 0;
    line-height: 1.4;
}

.related-content h4 a {
    color: var(--text-dark);
    transition: var(--transition);
}

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

.related-content .date {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.category-list a:before {
    content: '→';
    margin-right: 10px;
    color: var(--accent-color);
    font-weight: 700;
}

.category-list a:hover {
    color: var(--accent-color);
    padding-left: 10px;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
}

.newsletter-widget h3 {
    color: var(--white);
    border-bottom-color: var(--white);
}

.newsletter-widget p {
    color: var(--light-blue);
}

.sidebar-newsletter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-newsletter input {
    padding: 12px;
    border: none;
    font-size: 0.95rem;
    outline: none;
}

.sidebar-newsletter button {
    padding: 12px;
    background: var(--dark-blue);
    color: var(--white);
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-newsletter button:hover {
    background: var(--text-dark);
}

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

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }

    .article-hero {
        height: 450px;
    }

    .article-hero-content h1 {
        font-size: 2.5rem;
    }

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

@media (max-width: 768px) {
    .article-hero {
        height: 350px;
    }

    .article-hero-content h1 {
        font-size: 2rem;
    }

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

    .article-text .lead {
        font-size: 1.2rem;
    }

    .article-text h2 {
        font-size: 1.8rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .share-buttons {
        flex-direction: column;
    }
}

