/* I.O. Built-in Component Styles */
/* Loaded with shell — provides sensible defaults for all registered component types */
/* AI can override/extend via CDP meta.css or register.css operations */

/* --- Hero --- */
.io-hero {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 12px;
  text-align: center;
}

.io-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #e2e8f0, #7c9cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.2;
}

.io-hero-sub {
  color: #94a3b8;
  font-size: 1.15rem;
  font-family: system-ui, -apple-system, sans-serif;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.5;
}

.io-hero-cta {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.75rem 2rem;
  background: #7c9cff;
  color: #0a0a0a;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.io-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(124, 156, 255, 0.3);
}

.io-hero-cta:active {
  transform: translateY(0);
}

/* --- Card --- */
.io-card {
  background: #141420;
  border: 1px solid #1e1e30;
  border-radius: 10px;
  padding: 1.5rem;
  font-family: system-ui, -apple-system, sans-serif;
  transition: border-color 0.2s, transform 0.2s;
}

.io-card:hover {
  border-color: #2a2a40;
  transform: translateY(-2px);
}

.io-card h3 {
  color: #e2e8f0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.io-card p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
}

.io-card-img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.io-card-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: #7c9cff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.io-card-link:hover {
  text-decoration: underline;
}

/* --- Nav --- */
.io-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #1e1e30;
  margin-bottom: 1rem;
  font-family: system-ui, -apple-system, sans-serif;
}

.io-nav-sticky {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  padding: 1rem 1.5rem;
  margin: 0 -1.5rem 1rem;
}

.io-nav-logo {
  font-weight: 700;
  color: #7c9cff;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.io-nav-links {
  display: flex;
  gap: 1.5rem;
}

.io-nav-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.io-nav-links a:hover {
  color: #e2e8f0;
}

/* --- Layout --- */
.io-layout {
  margin: 1rem 0;
}

@media (max-width: 600px) {
  .io-layout {
    display: flex !important;
    flex-direction: column !important;
  }
}

/* --- Footer --- */
.io-footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid #1e1e30;
  margin-top: 1.5rem;
  font-family: system-ui, -apple-system, sans-serif;
}

.io-footer p {
  color: #555;
  font-size: 0.85rem;
}

.io-footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.io-footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 0.85rem;
}

.io-footer-links a:hover {
  color: #94a3b8;
}

/* --- Text --- */
.io-text {
  color: #cbd5e1;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

/* --- Heading --- */
.io-heading {
  color: #e2e8f0;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 600;
}

/* --- Button --- */
.io-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  background: #7c9cff;
  color: #0a0a0a;
  border: none;
  border-radius: 6px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.io-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(124, 156, 255, 0.25);
}

.io-btn.outline {
  background: transparent;
  color: #7c9cff;
  border: 1px solid #7c9cff;
}

.io-btn.ghost {
  background: transparent;
  color: #94a3b8;
}

/* --- Image --- */
.io-image {
  border-radius: 8px;
  display: block;
}

/* --- List --- */
.io-list {
  color: #cbd5e1;
  font-family: system-ui, -apple-system, sans-serif;
  padding-left: 1.5rem;
  line-height: 1.8;
}

/* --- Code Block --- */
.io-code {
  background: #0d0d14;
  border: 1px solid #1e1e30;
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
}

.io-code code {
  color: #a5b4c8;
  font-family: var(--font);
}

/* --- Section --- */
.io-section {
  padding: 2rem 0;
}

/* --- Built Container --- */
#io-built {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#io-built:empty {
  display: none;
}
