/* ============================================
   NewsTrendings - News Article Stylesheet
   For individual news article pages
   ============================================ */

/* Import base styles (main.css should be loaded first) */

/* ============================================
   ARTICLE LAYOUT
   ============================================ */

.article-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 20px;
}

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

.article-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #1976d2;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.article-category.tech { background-color: #1976d2; }
.article-category.business { background-color: #388e3c; }
.article-category.entertainment { background-color: #e91e63; }
.article-category.breaking { background-color: #d32f2f; }
.article-category.world { background-color: #f57c00; }
.article-category.sports { background-color: #7b1fa2; }

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family: Georgia, serif;
    color: #1a1a1a;
}

.article-subtitle {
    font-size: 1.25rem;
    color: #4a4a4a;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.article-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #757575;
}

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

.meta-icon {
    font-size: 1.1rem;
}

/* ============================================
   FEATURED IMAGE
   ============================================ */

.article-featured-image {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.image-caption {
    padding: 1rem;
    background-color: #f5f5f5;
    font-size: 0.9rem;
    color: #4a4a4a;
    font-style: italic;
}

/* ============================================
   ARTICLE CONTENT
   ============================================ */

.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #1a1a1a;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-family: Georgia, serif;
    color: #1a1a1a;
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.article-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.article-content strong {
    font-weight: 700;
    color: #000000;
}

.article-content em {
    font-style: italic;
}

.article-content a {
    color: #1976d2;
    text-decoration: underline;
    font-weight: 500;
}

.article-content a:hover {
    color: #0d47a1;
}

/* Lists */
.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* Blockquotes */
.article-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    background-color: #f5f5f5;
    border-left: 4px solid #1976d2;
    font-style: italic;
    font-size: 1.1rem;
    color: #4a4a4a;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Code blocks */
.article-content code {
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #d32f2f;
}

.article-content pre {
    background-color: #1a1a1a;
    color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.article-content pre code {
    background-color: transparent;
    padding: 0;
    color: #f5f5f5;
}

/* Images within content */
.article-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ============================================
   KEY HIGHLIGHTS BOX
   ============================================ */

.key-highlights {
    background-color: #fff3e0;
    border-left: 4px solid #f57c00;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.key-highlights h3 {
    margin-top: 0;
    color: #f57c00;
    font-size: 1.2rem;
}

.key-highlights ul {
    margin-bottom: 0;
}

/* ============================================
   AD ZONES
   ============================================ */

.ad-zone {
    background-color: #f5f5f5;
    border: 1px dashed #cccccc;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    color: #757575;
    font-size: 0.9rem;
}

.ad-zone::before {
    content: "Advertisement";
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #999999;
}

/* Specific ad placements */
.ad-zone-header {
    margin-bottom: 2rem;
}

.ad-zone-article {
    margin: 2rem 0;
}

.ad-zone-footer {
    margin-top: 2rem;
}

/* ============================================
   SOCIAL SHARING
   ============================================ */

.social-sharing {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin: 2rem 0;
}

.sharing-label {
    font-weight: 600;
    color: #4a4a4a;
}

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

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1976d2;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.share-btn:hover {
    transform: scale(1.1);
    text-decoration: none;
}

.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; }

/* ============================================
   RELATED ARTICLES
   ============================================ */

.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.related-articles h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: Georgia, serif;
}

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

.related-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.related-card-content {
    padding: 1rem;
}

.related-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.related-card h3 a {
    color: #1a1a1a;
    text-decoration: none;
}

.related-card h3 a:hover {
    color: #1976d2;
}

.related-card .article-meta {
    font-size: 0.8rem;
}

/* ============================================
   AUTHOR BOX
   ============================================ */

.author-box {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.author-bio {
    font-size: 0.95rem;
    color: #4a4a4a;
    line-height: 1.6;
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.9rem;
}

.breadcrumbs ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumbs li::after {
    content: "›";
    margin-left: 0.5rem;
    color: #757575;
}

.breadcrumbs li:last-child::after {
    content: "";
}

.breadcrumbs a {
    color: #1976d2;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .current {
    color: #4a4a4a;
}

/* ============================================
   NEWSLETTER SIGNUP (Optional)
   ============================================ */

.newsletter-box {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: center;
}

.newsletter-box h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.newsletter-box p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.newsletter-btn {
    padding: 0.75rem 1.5rem;
    background-color: #ffffff;
    color: #1976d2;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-btn:hover {
    background-color: #f5f5f5;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .article-container {
        padding: 0 15px;
    }

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

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

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

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

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

    .article-meta-info {
        gap: 1rem;
    }

    .social-sharing {
        flex-direction: column;
        align-items: flex-start;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar {
        margin: 0 auto;
    }

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

    .newsletter-form {
        flex-direction: column;
    }
}

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

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

    .share-buttons {
        flex-wrap: wrap;
    }
}

/* ============================================
   PRINT STYLES FOR ARTICLES
   ============================================ */

@media print {
    .breadcrumbs,
    .social-sharing,
    .newsletter-box,
    .ad-zone,
    .related-articles {
        display: none;
    }

    .article-container {
        max-width: 100%;
    }

    .article-content {
        font-size: 12pt;
        line-height: 1.6;
    }

    .article-title {
        font-size: 20pt;
    }

    .article-featured-image {
        max-height: 400px;
    }
}
