/* VDAI Swiss Edition · Layout & Component Styles
   Pure CSS, zero framework overhead.
*/

/* 1. Page Shell */
.vdai-swiss .v-shell {
  width: 100%;
  max-width: var(--v-shell-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--v-gutter);
  padding-right: var(--v-gutter);
}

/* 2. Dual Sticky Header */
.vdai-swiss .v-top {
  position: sticky;
  top: 0;
  height: var(--v-top-height);
  background: var(--v-bg);
  border-bottom: 2px solid var(--v-ink-pure);
  z-index: 50;
}

.vdai-swiss .v-top__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.vdai-swiss .v-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--v-brand-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--v-ink-pure);
  text-decoration: none;
  white-space: nowrap;
}

.vdai-swiss .v-brand__dot {
  color: var(--v-acid);
}

.vdai-swiss .v-global-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.vdai-swiss .v-global-nav a {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--v-muted);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.15s ease;
}

.vdai-swiss .v-global-nav a:hover,
.vdai-swiss .v-global-nav a.is-active {
  color: var(--v-ink-pure);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.vdai-swiss .v-nav-sep {
  color: var(--v-border-soft);
  font-weight: 400;
}

.vdai-swiss .v-top__action {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Level 2: Section Tabs Scrollspy */
.vdai-swiss .v-tabs {
  position: sticky;
  top: var(--v-top-height);
  height: var(--v-tabs-height);
  background: var(--v-bg);
  border-bottom: 1px solid var(--v-border-soft);
  z-index: 49;
  overflow-x: auto;
  scrollbar-width: none;
}

.vdai-swiss .v-tabs::-webkit-scrollbar {
  display: none;
}

.vdai-swiss .v-tabs__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
}

.vdai-swiss .v-tabs a {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 12px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--v-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.vdai-swiss .v-tabs a:hover {
  color: var(--v-ink-pure);
  background: var(--v-paper);
}

.vdai-swiss .v-tabs a.is-current {
  color: var(--v-ink-pure);
  font-weight: 700;
  border-bottom-color: var(--v-ink-pure);
}

/* 3. Sections & Editorial Headings */
.vdai-swiss section {
  padding: clamp(48px, 5.5vw, 80px) 0;
  scroll-margin-top: calc(var(--v-top-height) + var(--v-tabs-height) + 18px);
}

.vdai-swiss .v-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--v-hair);
  padding-bottom: 12px;
}

.vdai-swiss .v-badge-acid {
  display: inline-block;
  padding: 3px 8px 2px;
  background: var(--v-acid);
  color: var(--v-acid-ink);
  font-size: var(--v-size-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vdai-swiss .v-sec-meta {
  font-size: var(--v-size-xs);
  color: var(--v-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vdai-swiss h1 {
  font-size: var(--v-size-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 16px 0;
  max-width: 820px;
}

.vdai-swiss h2 {
  font-size: var(--v-size-xl);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 14px 0;
  max-width: 740px;
}

.vdai-swiss h3 {
  font-size: var(--v-size-base);
  font-weight: 650;
  line-height: 1.35;
  margin: 0 0 6px 0;
}

.vdai-swiss p {
  margin: 0 0 14px 0;
  max-width: 660px;
}

.vdai-swiss .v-lead {
  font-size: var(--v-size-md);
  line-height: 1.65;
  color: var(--v-ink-soft);
  max-width: 720px;
}

.vdai-swiss .v-muted {
  color: var(--v-muted);
}

/* 4. Hairline Data Rows (Swiss Grid) */
.vdai-swiss .v-rows {
  border-top: 1px solid var(--v-ink-pure);
  margin-top: 20px;
}

.vdai-swiss .v-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 14px 4px;
  border-bottom: 1px solid var(--v-hair);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.vdai-swiss .v-row:hover {
  background: var(--v-paper);
}

.vdai-swiss .v-row__key {
  font-size: var(--v-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--v-muted);
}

.vdai-swiss .v-row__key.is-live {
  color: var(--v-ink-pure);
  font-weight: 700;
}

.vdai-swiss .v-row__key.is-live::before {
  content: "●";
  color: var(--v-acid);
  margin-right: 6px;
  display: inline-block;
  animation: v-pulse 2.2s infinite;
}

@keyframes v-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.9); }
}

.vdai-swiss .v-row__body p {
  margin: 0;
  font-size: var(--v-size-base);
  color: var(--v-ink-soft);
}

.vdai-swiss .v-row__action {
  font-size: var(--v-size-sm);
  color: var(--v-muted);
  white-space: nowrap;
}

.vdai-swiss .v-row:hover .v-row__action {
  color: var(--v-ink-pure);
}

/* 5. Editorial Cards & Grids */
.vdai-swiss .v-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--v-gap);
}

.vdai-swiss .v-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--v-gap);
}

.vdai-swiss .v-card {
  background: var(--v-paper);
  border: 1px solid var(--v-hair);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.vdai-swiss .v-card:hover {
  box-shadow: var(--v-shadow-brutal);
  transform: translate(-2px, -2px);
  border-color: var(--v-ink-pure);
}

.vdai-swiss .v-card__tag {
  font-size: var(--v-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--v-muted);
  margin-bottom: 12px;
}

.vdai-swiss .v-card h3 {
  font-size: var(--v-size-lg);
  margin-bottom: 10px;
}

.vdai-swiss .v-card p {
  font-size: var(--v-size-base);
  color: var(--v-ink-soft);
  margin-bottom: 16px;
}

.vdai-swiss .v-card__foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--v-border-soft);
  font-size: var(--v-size-xs);
  color: var(--v-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 6. Buttons & Inputs */
.vdai-swiss .v-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--v-ink-pure);
  color: var(--v-bg);
  font-family: var(--v-mono);
  font-size: var(--v-size-base);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--v-ink-pure);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vdai-swiss .v-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--v-shadow-brutal);
}

.vdai-swiss .v-btn--compact {
  padding: 6px 12px;
  font-size: var(--v-size-sm);
}

.vdai-swiss .v-btn--ghost {
  background: transparent;
  color: var(--v-ink-pure);
  border-color: var(--v-ink-pure);
}

.vdai-swiss .v-btn--ghost:hover {
  background: var(--v-paper);
}

.vdai-swiss .v-input,
.vdai-swiss .v-textarea {
  width: 100%;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--v-ink-pure);
  font-family: var(--v-mono);
  font-size: var(--v-size-base);
  color: var(--v-ink-pure);
  border-radius: 0;
}

.vdai-swiss .v-textarea {
  min-height: 110px;
  resize: vertical;
}

/* 7. Footer */
.vdai-swiss .v-footer {
  border-top: 2px solid var(--v-ink-pure);
  background: var(--v-paper);
  padding: 40px 0 60px;
  margin-top: 60px;
}

.vdai-swiss .v-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 20px;
  font-size: var(--v-size-sm);
  color: var(--v-muted);
}

.vdai-swiss .v-footer a {
  color: var(--v-ink-pure);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 8. Mobile & Responsive (Down to 390px) */
@media (max-width: 860px) {
  :root {
    --v-top-height: 84px;
  }

  .vdai-swiss .v-top__inner {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    padding: 8px var(--v-gutter);
  }

  .vdai-swiss .v-global-nav {
    position: static;
    transform: none;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 12px;
  }

  .vdai-swiss .v-global-nav::-webkit-scrollbar {
    display: none;
  }

  .vdai-swiss .v-top__action {
    display: none; /* In mobile, action moved to page sections */
  }

  .vdai-swiss .v-grid-2,
  .vdai-swiss .v-grid-3 {
    grid-template-columns: 1fr;
  }

  .vdai-swiss .v-row {
    grid-template-columns: 100px 1fr auto;
    gap: 10px;
  }
}

@media (max-width: 540px) {
  .vdai-swiss .v-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .vdai-swiss .v-row__action {
    display: none;
  }
}

/* 9. Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .vdai-swiss,
  .vdai-swiss *,
  .vdai-swiss *::before,
  .vdai-swiss *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
