/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #1a1a1a;
  color: #e0e0e0;
  line-height: 1.6;
  font-size: 16px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

h1, h2, h3 {
  color: #ffffff;
  margin-bottom: 20px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Header and Banner */
.header-banner {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

.main-nav {
  max-width: 1200px;
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #3b82f6;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background 0.3s;
}

.main-nav a:hover {
  background: rgba(59, 130, 246, 0.1);
}

.disclaimer-bar {
  background: #ef4444;
  color: white;
  text-align: center;
  padding: 15px;
  font-weight: bold;
  margin-bottom: 30px;
}

/* Alert Level Display */
.alert-level {
  background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
  border: 3px solid #f59e0b;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  margin: 30px auto;
  max-width: 800px;
}

.alert-level .level {
  font-size: 2.5rem;
  font-weight: bold;
  color: #f59e0b;
  margin: 20px 0;
}

.alert-level .meta {
  color: #999;
  font-size: 0.9rem;
}

/* Tier Cards */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.tier-card {
  background: #2d2d2d;
  border-radius: 10px;
  padding: 25px;
  border: 2px solid #3d3d3d;
}

.tier-card h3 {
  border-bottom: 2px solid #3b82f6;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.tier-signal {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 20px 0;
  padding: 15px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 5px;
  border-left: 4px solid #10b981;
  color: #10b981;
}

.tier-signal.yellow {
  background: rgba(245, 158, 11, 0.1);
  border-left-color: #f59e0b;
  color: #f59e0b;
}

.tier-signal.red {
  background: rgba(239, 68, 68, 0.1);
  border-left-color: #ef4444;
  color: #ef4444;
}

/* Progress Bar */
.progress-bar {
  margin: 20px 0;
}

.progress-label {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 5px;
}

.progress-track {
  background: #3d3d3d;
  height: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #3b82f6);
  transition: width 0.5s ease;
}

.progress-fill.warning {
  background: linear-gradient(90deg, #f59e0b, #fb923c);
}

.progress-fill.danger {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Component Table */
.component-table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
}

.component-table th,
.component-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #3d3d3d;
}

.component-table th {
  color: #999;
  font-weight: 600;
  font-size: 0.9rem;
}

.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
}

.status-badge.green {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.status-badge.yellow {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

/* Collapsible */
.collapsible {
  cursor: pointer;
  color: #3b82f6;
  font-size: 0.85rem;
  margin-top: 5px;
}

.collapsible:hover {
  text-decoration: underline;
}

.collapsible-content {
  display: none;
  margin-top: 10px;
  padding: 10px;
  background: rgba(59, 130, 246, 0.05);
  border-left: 3px solid #3b82f6;
  font-size: 0.85rem;
}

.collapsible-content.open {
  display: block;
}

/* Explanation Box */
.explanation {
  background: #2d2d2d;
  border: 2px solid #3b82f6;
  border-radius: 10px;
  padding: 30px;
  margin: 30px 0;
}

.explanation ul {
  margin: 15px 0 15px 20px;
}

.explanation li {
  margin-bottom: 8px;
}

/* Footer */
footer {
  background: #0d0d0d;
  padding: 30px;
  margin-top: 60px;
  text-align: center;
  border-top: 1px solid #3d3d3d;
}

footer a {
  color: #3b82f6;
  text-decoration: none;
  margin: 0 10px;
}

footer a:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: #3b82f6;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin: 5px;
}

.btn:hover {
  background: #2563eb;
}

.btn-secondary {
  background: #6b7280;
}

.btn-secondary:hover {
  background: #4b5563;
}

/* Mobile */
@media (max-width: 768px) {
  .header-banner { max-width: 100%; }
  .main-nav { flex-direction: column; align-items: center; }
  h1 { font-size: 1.8rem; }
  .tiers { grid-template-columns: 1fr; }
  .alert-level .level { font-size: 2rem; }
  .component-table { font-size: 0.85rem; }
  .component-table th, .component-table td { padding: 8px 5px; }
}
