/* Main Styles for Static Website Test */
:root {
  --primary: #7b00ff;
  --primary-dark: #6a00e0;
  --success: #1dcc33;
  --warning: #ffc300;
  --danger: #f52536;
  --gray: #666;
  --gray-light: #f5f5f5;
  --white: #fff;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --radius: 8px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--gray-light);
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

/* Header */
.header {
  background: var(--primary);
  color: var(--white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

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

.header .subtitle {
  opacity: 0.9;
  font-size: 0.9rem;
}

/* Navigation */
nav {
  background: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.2s;
}

nav a:hover {
  background: rgba(123, 0, 255, 0.1);
}

nav a.active {
  background: var(--primary);
  color: var(--white);
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.card h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.card p {
  color: var(--gray);
  margin-bottom: 1rem;
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.9rem;
}

.badge.success {
  background: rgba(29, 204, 51, 0.15);
  color: #15a028;
}

.badge.warning {
  background: rgba(255, 195, 0, 0.15);
  color: #b38600;
}

.badge.danger {
  background: rgba(245, 37, 54, 0.15);
  color: #d41d2f;
}

.badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* Info box */
.info-box {
  background: #e8f4fd;
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1rem 0;
}

.info-box code {
  background: rgba(123, 0, 255, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.85rem;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.grid-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.grid-item img {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}

.grid-item h3 {
  color: #333;
  margin-bottom: 0.5rem;
}

.grid-item p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--gray);
  font-size: 0.9rem;
}

/* Images */
.hero-image {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius);
  margin: 1rem 0;
}

/* Test Results Table */
.test-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.test-table th,
.test-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.test-table th {
  background: var(--gray-light);
  font-weight: 600;
}

.test-table tr:hover {
  background: #fafafa;
}
