/* NFC Creatures Web - Styles */

:root {
  --bg-color: #1a1a2e;
  --surface-color: #16213e;
  --text-color: #eaeaea;
  --text-muted: #8c8c8c;
  --accent-color: #4995f3;
  --accent-hover: #72deeb;
  --error-color: #f5464c;
  --success-color: #3ec54b;
  --border-radius: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--bg-color);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Creature Page Layout */
.creature-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.page-header {
  width: 100%;
  max-width: 480px;
  text-align: center;
  padding: 20px 0;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Creature Card */
.creature-card {
  background: var(--surface-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 24px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.sprite-container {
  background: #0a0a14;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sprite-image {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 1;
}

.creature-info {
  text-align: center;
  width: 100%;
}

.creature-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-color);
}

.type-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  background: color-mix(in srgb, var(--type-color) 20%, transparent);
  color: var(--type-color);
  border: 1px solid color-mix(in srgb, var(--type-color) 40%, transparent);
}

.traits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.trait {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.secret-locked {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lock-icon {
  font-size: 1rem;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

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

.button-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-color);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Footer */
.page-footer {
  margin-top: auto;
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Error Display */
.error-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.error-container .error-icon {
  font-size: 4rem;
  color: var(--error-color);
  margin-bottom: 16px;
}

.error-container h1 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.error-container p {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 300px;
}

/* Home Page */
.home-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.home-page h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.home-page p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 400px;
}

/* Responsive */
@media (max-width: 480px) {
  .creature-card {
    padding: 16px;
  }

  .creature-name {
    font-size: 1.5rem;
  }

  .sprite-image {
    max-width: 280px;
  }
}
