/* Feature Store Demo */

:root {
  --primary: #0f766e;
  --primary-light: #14b8a6;
  --surface: #ffffff;
  --surface-alt: #f5fefc;
  --on-surface: #042f2e;
  --on-surface-secondary: #5e7270;
  --radius-lg: 12px;
  --radius-md: 8px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #ccfbf1 0%, #99e6da 100%);
  min-height: 100vh;
  color: var(--on-surface);
}

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

header {
  text-align: center;
  margin-bottom: 32px;
}

header h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.subtitle {
  color: var(--on-surface-secondary);
  font-size: 0.9rem;
}

main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Controls */
.controls-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.search-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: 1rem;
  margin-bottom: 16px;
}

.filter-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.85rem;
}

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

/* Feature List */
.catalog-section h2 {
  margin-bottom: 16px;
  color: var(--primary);
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
}

.feature-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.feature-name {
  font-weight: 600;
  color: var(--primary);
}

.feature-type {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: var(--surface-alt);
  border-radius: 4px;
}

.feature-description {
  font-size: 0.85rem;
  color: var(--on-surface-secondary);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.close {
  float: right;
  font-size: 28px;
  cursor: pointer;
}

/* Hidden */
.hidden {
  display: none !important;
}