/* Shared styles for story pages */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
    color: #333;
}
a { color: #2c3e50; }
.container { max-width: 800px; margin: auto; overflow: hidden; padding: 0 20px; }

/* Nav bar */
.site-nav {
    background: #1a252f;
    padding: 10px 0;
    font-size: 0.9em;
}
.site-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-nav a {
    color: #f1c40f;
    text-decoration: none;
    font-weight: bold;
}
.site-nav a:hover { color: #fff; }

/* Header */
.header {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 2rem 0;
    text-align: center;
}
.header h1 { margin: 0; font-size: 2em; }
.header p { color: #f1c40f; font-size: 1.1em; margin-top: 5px; }

/* Article hero */
.article-hero {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

/* Content sections */
.content-section {
    background: #fff;
    padding: 25px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.content-section h2 {
    border-bottom: 2px solid #f1c40f;
    padding-bottom: 10px;
    margin-top: 0;
}

/* Gold value highlight */
.gold-value {
    font-size: 2em;
    font-weight: bold;
    color: #d4a017;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #fef9e7, #fdebd0);
    border-radius: 8px;
    margin: 20px 0;
    border: 2px solid #f1c40f;
}
.gold-value .label { font-size: 0.5em; color: #666; display: block; margin-bottom: 5px; }
.gold-value .original { font-size: 0.4em; color: #888; display: block; margin-top: 5px; }

/* Article body */
.article-body { font-size: 1.05em; line-height: 1.8; }
.article-body p { margin-bottom: 1.2em; }

/* Related stories */
.related-stories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 15px;
}
.related-card {
    background: #ecf0f1;
    border-radius: 8px;
    padding: 15px;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s;
}
.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.related-card h4 { margin: 0 0 5px; color: #2c3e50; }
.related-card p { margin: 0; font-size: 0.85em; color: #666; }

/* Stories index grid */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.story-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: #333;
}
.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.story-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.story-card-body { padding: 15px; }
.story-card-body h3 { margin: 0 0 8px; color: #2c3e50; font-size: 1.1em; }
.story-card-body .meta { color: #f1c40f; font-weight: bold; font-size: 0.9em; margin-bottom: 5px; }
.story-card-body p { margin: 0; font-size: 0.9em; color: #666; }

/* CTA */
.cta-section { text-align: center; margin: 30px 0; }
.cta-button {
    display: inline-block;
    background: #2c3e50;
    color: #f1c40f;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background 0.2s;
}
.cta-button:hover { background: #34495e; color: #fff; }

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    font-size: 0.9em;
    color: #7f8c8d;
}

@media (max-width: 600px) {
    .header h1 { font-size: 1.5em; }
    .stories-grid { grid-template-columns: 1fr; }
    .gold-value { font-size: 1.5em; }
    .article-hero { height: 220px; }
}
