/* Article Detail Styles */
.article-detail {
    margin-top: -80px;
    padding-top: 80px;
}

.article-hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.article-hero img {
    width: 100%;
    height: 100%;
    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);
    color: white;
    padding: 3rem 0;
}

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

.article-meta span {
    padding: 0.25rem 0.75rem;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 0.875rem;
}

.article-hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 0;
}

.container {
    display: flex;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-body {
    flex: 1;
    max-width: 800px;
}

.article-intro {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.table-of-contents {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.table-of-contents h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: #2563eb;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.table-of-contents a:hover {
    color: #1d4ed8;
    padding-left: 10px;
}

.table-of-contents a::before {
    content: "→";
    margin-right: 0.5rem;
}

.article-body h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    color: #1f2937;
}

.article-body h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #374151;
}

.article-body p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #4b5563;
}

/* Product Review Cards */
.product-review {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.product-review:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-review img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.product-review h3 {
    margin-bottom: 1rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
    color: #f59e0b;
}

.rating span {
    margin-left: 0.5rem;
    color: #6b7280;
    font-weight: 600;
}

.pros-cons {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.pros-cons li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.pros-cons li::before {
    position: absolute;
    left: 0;
    font-weight: bold;
}

.pros-cons .pro::before {
    content: "✓";
    color: #10b981;
}

.pros-cons .con::before {
    content: "✗";
    color: #ef4444;
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

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

.feature-card i {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.feature-card h4 {
    margin-bottom: 1rem;
    color: #1f2937;
}

/* Comparison Table */
.comparison-table {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th {
    background: #2563eb;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover {
    background: #f9fafb;
}

/* Recommendation Cards */
.recommendation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.rec-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.rec-card:hover {
    border-color: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
}

.rec-card h4 {
    color: #2563eb;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rec-card strong {
    color: #1f2937;
}

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

.cta-box {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
}

.cta-box h3 {
    color: white;
    margin-bottom: 1rem;
}

.cta-box p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
}

.cta-box .btn-primary {
    background: white;
    color: #2563eb;
}

.cta-box .btn-primary:hover {
    background: #f3f4f6;
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.tag {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #4b5563;
    transition: all 0.3s ease;
}

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

/* Article Share */
.article-share {
    margin: 2rem 0;
    padding: 2rem 0;
}

.article-share h4 {
    margin-bottom: 1rem;
}

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

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

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.pinterest { background: #bd081c; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.email { background: #6b7280; }

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

.sidebar-widget {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: #1f2937;
}

.related-article {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.3s ease;
}

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

.related-article img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.related-article h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: #1f2937;
}

.related-article span {
    font-size: 0.875rem;
    color: #6b7280;
}

.widget-product {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.widget-product:last-child {
    border-bottom: none;
}

.widget-product img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.widget-product h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.widget-product .price {
    color: #2563eb;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .article-sidebar {
        width: 100%;
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .article-hero h1 {
        font-size: 1.75rem;
    }
    
    .feature-grid,
    .recommendation-cards {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 0.875rem;
    }
    
    .article-sidebar {
        grid-template-columns: 1fr;
    }
}