/* Metal Analyzer Specific Styles */

.updated-time {
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.trend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.trend-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    text-align: left;
    position: relative;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.card-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
}

.short .card-tag { background: #3b82f6; } /* Blue */
.middle .card-tag { background: #f59e0b; } /* Orange */
.long .card-tag { background: #8b5cf6; } /* Purple */

.trend-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--text-main);
}

.prediction-highlight {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding: 10px;
    background: var(--accent-color);
    border-radius: 6px;
    text-align: center;
    color: var(--brand-green);
}

.metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.metric {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
}

.metric .label {
    color: var(--text-muted);
    margin-bottom: 4px;
}

.metric .value {
    font-weight: 600;
    color: var(--text-main);
}

.comment {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
    background: #f8fafb;
    padding: 12px;
    border-left: 3px solid var(--brand-orange);
    margin-bottom: 15px;
}

.details-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: pre-wrap;
    line-height: 1.4;
}

/* Charts Section */
.charts-section {
    margin-top: 40px;
    text-align: left;
}

.charts-section h2 {
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brand-orange);
    color: var(--brand-green);
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
}

@media (max-width: 600px) {
    .chart-grid {
        grid-template-columns: 1fr;
    }
}

.chart-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 15px;
    box-shadow: var(--shadow-sm);
}

.chart-item h4 {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.chart-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.status-message {
    padding: 40px;
    font-size: 1.1rem;
    color: var(--text-muted);
}
