/* Precious Metals News Styles */

.precious-metals-news {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
}

.news-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #282828;
    border-bottom: 2px solid #ddd;
    padding-bottom: 15px;
}

/* Summaries section */
.news-summaries {
    margin-bottom: 40px;
}

.summary-container {
    background-color: #f8f8f8;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.summary-container h3 {
    margin-top: 0;
    font-size: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.summary-container p {
    line-height: 1.6;
    margin: 0;
}

.summary-container.overall {
    background-color: #f0f4f8;
    border-left: 4px solid #4a90e2;
}

.summaries-split {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.summaries-split .summary-container {
    flex: 1;
    margin-bottom: 0;
}

.summary-container.positive {
    background-color: #f0f8f1;
    border-left: 4px solid #5cb85c;
}

.summary-container.negative {
    background-color: #fdf7f7;
    border-left: 4px solid #d9534f;
}

.news-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
    text-align: center;
}

.stats-item {
    font-size: 14px;
    color: #666;
}

.stats-item strong {
    color: #333;
}

.last-updated {
    color: #777;
}

/* Filter Buttons */
.news-filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.filter-btn {
    padding: 8px 15px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.filter-btn.active {
    background-color: #4a90e2;
    border-color: #4a90e2;
    color: #fff;
}

/* Articles section */
.news-articles h3 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
    color: #282828;
}

.articles-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-item {
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Impact indicators */
.article-item.impact-positive {
    border-left: 4px solid #5cb85c;
}

.article-item.impact-negative {
    border-left: 4px solid #d9534f;
}

.article-item.impact-neutral {
    border-left: 4px solid #f0ad4e;
}

.article-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    line-height: 1.4;
}

.article-title a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s;
}

.article-title a:hover {
    color: #00a0d2;
    text-decoration: underline;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    align-items: center;
    position: relative;
}

.article-author {
    font-weight: 500;
}

.article-impact {
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.article-impact.impact-positive {
    background-color: rgba(92, 184, 92, 0.15);
    color: #2d662d;
}

.article-impact.impact-negative {
    background-color: rgba(217, 83, 79, 0.15);
    color: #a02622;
}

.article-impact.impact-neutral {
    background-color: rgba(240, 173, 78, 0.15);
    color: #985f0d;
}

.article-description {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

/* Copy button */
.copy-article-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    color: #888;
    font-size: 16px;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.copy-article-btn:hover {
    color: #333;
}

.copy-article-btn i {
    font-size: 16px;
}

.copy-success {
    position: absolute;
    right: 30px;
    background-color: #5cb85c;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    animation: fadeInOut 2s;
}

.read-more-link {
    display: inline-block;
    margin-top: 10px;
    color: #0073aa;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.read-more-link:hover {
    color: #00a0d2;
    text-decoration: underline;
}

.read-more-link i {
    font-size: 14px;
    vertical-align: middle;
    margin-left: 3px;
}

/* Error message */
.news-error {
    padding: 20px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 5px;
    text-align: center;
    margin: 20px 0;
}

/* Animation */
@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .summaries-split {
        flex-direction: column;
    }
    
    .articles-container {
        grid-template-columns: 1fr;
    }
    
    .news-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .news-filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}

/* Key Topics */
.key-topics-container {
    background-color: #f8f8f8;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.key-topics-container h3 {
    margin-top: 0;
    font-size: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.key-topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topic-tag {
    display: inline-block;
    background-color: #e9f2ff;
    color: #0066cc;
    border-radius: 15px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 500;
}

/* Market Statistics */
.market-statistics {
    margin-bottom: 20px;
}

/* Sentiment Distribution */
.sentiment-distribution {
    background-color: #f8f8f8;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sentiment-distribution h3 {
    margin-top: 0;
    font-size: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.sentiment-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sentiment-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sentiment-label {
    width: 80px;
    font-weight: 500;
    font-size: 14px;
    text-align: right;
}

.sentiment-bar-container {
    flex: 1;
    height: 20px;
    background-color: #e9e9e9;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.sentiment-bar {
    height: 100%;
    border-radius: 4px;
}

.sentiment-bar.positive {
    background-color: #5cb85c;
}

.sentiment-bar.neutral {
    background-color: #f0ad4e;
}

.sentiment-bar.negative {
    background-color: #d9534f;
}

.sentiment-percentage {
    position: absolute;
    right: 8px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    color: #333;
    font-weight: 600;
    font-size: 12px;
}

/* Topic Distribution */
.topic-distribution {
    background-color: #f8f8f8;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.topic-distribution h3 {
    margin-top: 0;
    font-size: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.topic-distribution-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.topic-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topic-name {
    min-width: 180px;
    max-width: 180px;
    font-size: 13px;
    line-height: 1.3;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topic-bar-container {
    flex: 1;
    height: 16px;
    background-color: #e9e9e9;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.topic-bar {
    height: 100%;
    border-radius: 4px;
    background-color: #4a90e2;
}

.topic-value {
    position: absolute;
    right: 8px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    color: #333;
    font-weight: 600;
    font-size: 12px;
}

/* Article Topics */
.article-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.article-topic-tag {
    display: inline-block;
    background-color: #f0f4f8;
    color: #4a6785;
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e0e7f0;
} 