/**
 * Bloomberg-inspired article styles
 * Styling for single article pages using the Bloomberg layout
 */

/* Article container */
.article-bloomberg-style {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* Category and tags bar */
.article-category-bar {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.2;
}

/* Enhanced primary category styling with softer colors */
.article-primary-category {
    display: inline-block;
    text-decoration: none;
    color: #333; /* Darker text for better contrast on soft backgrounds */
    background-color: #a5c6e5; /* Soft blue instead of intense blue */
    font-weight: 600;
    font-family: 'Arial', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.4rem 0.9rem;
    border-radius: 3px;
    transition: all 0.2s ease;
    /* Reduced box shadow for a more subtle effect */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.article-primary-category:hover {
    background-color: #8bb5d9; /* Slightly darker shade when hovered */
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Category color variations based on category name - using softer palette */
.article-primary-category[href*="markets"],
.article-primary-category[href*="economy"] {
    background-color: #a5c6e5; /* Soft blue for markets/economy */
}

.article-primary-category[href*="business"],
.article-primary-category[href*="companies"] {
    background-color: #8da9c4; /* Muted blue-gray for business */
}

.article-primary-category[href*="politics"],
.article-primary-category[href*="policy"] {
    background-color: #b4a7d6; /* Soft lavender for politics */
}

.article-primary-category[href*="technology"],
.article-primary-category[href*="tech"] {
    background-color: #a8d8b9; /* Soft mint green for technology */
}

.article-primary-category[href*="opinion"],
.article-primary-category[href*="analysis"] {
    background-color: #e6b1b1; /* Soft rose for opinion/analysis */
}

/* Additional pastel category colors */
.article-primary-category[href*="finance"] {
    background-color: #d4e5b7; /* Soft sage green */
}

.article-primary-category[href*="health"] {
    background-color: #c9e7dc; /* Soft aqua */
}

.article-primary-category[href*="world"] {
    background-color: #f5d493; /* Soft gold */
}

.article-primary-category[href*="culture"] {
    background-color: #f4c7ab; /* Soft peach */
}

.article-tags-divider {
    margin: 0 0.75rem;
    color: #666;
    font-weight: bold;
}

.article-tags {
    display: inline-flex;
    flex-wrap: wrap;
}

.article-tags a {
    text-decoration: none;
    color: #666;
    margin-right: 0.75rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.article-tags a:hover {
    text-decoration: underline;
    color: #333;
}

/* Article header and title */
.article-header {
    margin-bottom: 1.5rem;
}

.article-title {
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 700;
    margin: 0;
    color: #000;
}

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

/* Feature image and caption */
.article-feature-image {
    margin: 0 0 1.5rem;
    position: relative;
}

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

.article-image-caption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #666;
}

/* Author and date information */
.article-meta {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.article-byline {
    margin-bottom: 0.5rem;
}

.article-by {
    color: #666;
    margin-right: 0.25rem;
}

.article-author {
    font-weight: 600;
    color: #000;
}

.article-date-info {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.4;
}

.article-updated-date {
    margin-top: 0.25rem;
    font-style: italic;
}

/* Reading time styling */
.article-reading-time {
    display: inline-block;
    margin-left: 15px;
    font-size: 0.9em;
    color: #666;
    border-left: 1px solid #ddd;
    padding-left: 15px;
}

/* Article actions */
.article-actions {
    display: flex;
    margin-bottom: 2rem;
    gap: 1rem;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    transition: background-color 0.2s ease;
}

.action-button:hover {
    background-color: var(--color-background-tertiary);
    text-decoration: none;
}

/* Article content */
.article-content {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #222;
}

.article-content p:first-child {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    color: #000;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
}

/* Article footer */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

/* Dark mode adjustments */
.dark-mode .article-bloomberg-style {
    color: #e0e0e0;
}

.dark-mode .article-primary-category {
    /* Darken text in dark mode for better readability */
    color: #222;
    /* We keep the soft colors but slightly darken them */
    filter: brightness(0.95);
}

.dark-mode .article-title {
    color: #fff;
}

.dark-mode .article-author {
    color: #fff;
}

.dark-mode .article-content {
    color: #ddd;
}

.dark-mode .article-content p:first-child {
    color: #fff;
}

/* Fix heading visibility in dark mode */
.dark-mode .article-content h1,
.dark-mode .article-content h2,
.dark-mode .article-content h3,
.dark-mode .article-content h4,
.dark-mode .article-content h5,
.dark-mode .article-content h6 {
    color: #fff;
}

.dark-mode .action-button {
    border-color: #444;
    color: #e0e0e0;
}

.dark-mode .action-button:hover {
    background-color: #333;
}

/* Adding transparent footer line in dark mode */
.dark-mode .article-footer {
    border-top: 0.0px solid rgba(255, 255, 255, 0.356); /* Semi-transparent white border */
} 