/* 🎨 Copper Dashboard — Responsive Mobile-First CSS */
:root {
  --primary: #2c6e5d; /* copper-ish green */
  --primary-light: #4fa88e;
  --accent: #e67e22;
  --bg-light: #f8f9fa;
  --text-dark: #333;
  --border-radius: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

header {
  background: var(--primary);
  color: #fff;
  padding: 1rem 1rem 1.5rem;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

header p {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

main {
  padding: 1rem;
}

.grid-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .grid-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  position: relative;
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--primary);
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.25rem;
}

.card .subtitle {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

/* iframe container for LME */
.iframe-container {
  width: 100%;
  overflow: hidden;
  border-radius: var(--border-radius);
  border: 1px solid #ddd;
}

.iframe-container iframe {
  width: 100%;
  min-height: 400px;
  border: none;
}

/* Price text blocks */
.price-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.price-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.price-date {
  font-size: 0.85rem;
  color: #666;
}

/* Button */
.refresh-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 1rem;
}
.refresh-btn:hover {
  background: var(--primary-light);
}

/* Stock cards */
.fin-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
}
.fin-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #eee;
}
.fin-list li:last-child {
  border-bottom: none;
}

/* News container */
.news-container {
  min-height: 3rem;
  font-size: 0.9rem;
}

.news-item {
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed #ccc;
}
.news-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.news-summary {
  font-size: 0.85rem;
  color: #555;
}
.news-time {
  font-size: 0.75rem;
  color: #888;
  margin-top: 0.25rem;
}

footer {
  background: #eee;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  margin-top: 1.5rem;
}
footer .note {
  color: #666;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* 💡 Loading state */
.placeholder {
  color: #999;
  font-style: italic;
}
