/* asset.css — Shared styles for asset detail pages (gold, bonds, stocks, crypto) */

/* Header */
.header {
    text-align: center;
    margin-bottom: 8px;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.asset-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--asset-color, #888);
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.h1-asset {
    color: var(--asset-color, #888);
}

.seo-intro {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 32px;
}

.updated {
    font-size: 0.7rem;
    color: #444;
    margin-top: 6px;
    font-weight: 400;
}

/* Hero */
.hero {
    text-align: center;
    margin-bottom: 40px;
}

/* Insight Box */
.insight-box {
    background: #111;
    border-left: 4px solid #fff;
    padding: 28px 36px;
    margin: 0 0 40px 0;
    border-radius: 8px;
    transition: border-color 1s ease, background-color 1s ease;
}

.insight-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.insight-icon {
    font-size: 1.2rem;
}

.insight-title {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.insight-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #ffffff;
    font-weight: 400;
}

/* Components Grid */
.components-section {
    margin: 80px 0 60px 0;
}

.components-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1px;
    background: #1a1a1a;
}

.component-card {
    background: #0d0d0d;
    padding: 24px;
    border-radius: 0;
}

.component-name {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.component-score {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.component-detail {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.5;
}

/* Historical Chart Section */
.history-section {
    margin: 80px 0 60px 0;
}

.history-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

/* How to Read */
.explanation-section {
    margin: 60px 0;
}

.explanation-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.explanation-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: #1a1a1a;
}

.explanation-item {
    background: #0d0d0d;
    padding: 20px 16px;
    text-align: center;
}

.explanation-item strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: #fff;
}

.explanation-item p {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.5;
}

.extreme-fear-bg { border-top: 3px solid #ef4444; }
.fear-bg { border-top: 3px solid #f59e0b; }
.neutral-bg { border-top: 3px solid #888; }
.greed-bg { border-top: 3px solid #22c55e; }
.extreme-greed-bg { border-top: 3px solid #06b6d4; }

/* Methodology Section */
.methodology-section {
    margin: 60px 0;
}

.methodology-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.methodology-section > p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 16px;
}

.methodology-section .component-box {
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    border-left: 4px solid var(--asset-color, #666);
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
}

.methodology-section .component-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff;
}

.methodology-section .component-box .weight {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
    font-style: italic;
}

.methodology-section .component-box p {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}

.methodology-section .component-box ul {
    margin: 12px 0 0 24px;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Back Link */
.back-link {
    text-align: center;
    margin: 40px 0;
}

.back-link a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.back-link a:hover {
    color: #fff;
}

/* Chart Toggles */
.chart-toggles {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.chart-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #1a1a1a;
    background: transparent;
    color: #555;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-toggle-btn.active {
    border-color: var(--toggle-color);
    color: var(--toggle-color);
    background: color-mix(in srgb, var(--toggle-color) 8%, transparent);
}

.chart-toggle-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--toggle-color);
    opacity: 0.4;
}

.chart-toggle-btn.active .chart-toggle-dot { opacity: 1; }

/* Mobile */
@media (max-width: 768px) {
    .explanation-grid { grid-template-columns: repeat(5, 1fr); }
    .explanation-item { padding: 12px 6px; }
    .explanation-item strong { font-size: 0.7rem; }
    .explanation-item p { display: none; }
    .components-grid { grid-template-columns: repeat(2, 1fr); gap: 1px; }
    .component-card { padding: 16px 12px; }
    .component-score { font-size: 1.8rem; }
    .component-detail { font-size: 0.75rem; }
    .insight-box { padding: 24px 28px; }
    .insight-text { font-size: 1.05rem; }
    .methodology-section .component-box { padding: 20px; }
    .chart-toggles { justify-content: center; }
    .chart-toggle-btn { font-size: 0.7rem; padding: 5px 10px; }
}
