/* G4mify Documentation Site Styles */
:root {
  --color-primary: #4f46e5;
  --color-primary-dark: #4338ca;
  --color-primary-light: #6366f1;
  --color-bg: #f9fafb;
  --color-surface: #ffffff;
  --color-text: #111827;
  --color-text-secondary: #4b5563;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-gold: #f59e0b;
  --color-silver: #9ca3af;
  --color-bronze: #d97706;
  --max-width: 760px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* Header */
.site-header {
  background: var(--color-primary);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.header-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-left: 24px;
  transition: color 0.15s;
}

.header-nav a:hover { color: #fff; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}

.hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: inline-block;
  padding: 12px 32px;
  background: #fff;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Main content */
.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--color-text);
  letter-spacing: -0.3px;
}

.content h2:first-child { margin-top: 0; }

.content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--color-text);
}

.content p {
  margin-bottom: 16px;
  color: var(--color-text-secondary);
}

.content ul, .content ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: var(--color-text-secondary);
}

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

.content a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.content a:hover { text-decoration: underline; }

/* Role cards */
.role-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.role-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.15s;
}

.role-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  text-decoration: none;
}

.role-card .role-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.role-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--color-text);
}

.role-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

/* Info box */
.info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  color: #1e40af;
}

.info-box strong { font-weight: 600; }

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  margin: 24px 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 20px;
  color: var(--color-text-secondary);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps li strong { color: var(--color-text); }

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  padding: 10px 12px;
  background: #f3f4f6;
  border-bottom: 2px solid var(--color-border);
  font-weight: 600;
  color: var(--color-text);
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

/* Badge */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.badge-gold { background: #fef3c7; color: #92400e; }
.badge-silver { background: #f3f4f6; color: #374151; }
.badge-bronze { background: #ffedd5; color: #9a3412; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

.site-footer a {
  color: var(--color-primary);
  text-decoration: none;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb span { margin: 0 6px; }

/* Responsive */
@media (max-width: 600px) {
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .role-cards { grid-template-columns: 1fr; }
  .header-nav a { margin-left: 16px; font-size: 13px; }
}
