/* ==========================================================================
   DOGUS IPEKSAC — /assets/ GAME, 3D MODEL & UNITY ASSET HUB STYLES
   Shares palette tokens with /assets/styles.css
   ========================================================================== */

.ah-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Nav extensions for subpage */
.nav-brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-brand-sep {
  color: var(--text3);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.9rem;
}

.nav-brand-sub {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent4);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 0.18rem 0.55rem;
  border-radius: 7px;
}

/* Hero */
.ah-hero {
  position: relative;
  padding: 8.5rem 2rem 3.5rem;
  overflow: hidden;
}

.ah-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.ah-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(28, 28, 40, 0.72);
  border: 1px solid var(--border);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent4);
  margin-bottom: 1.3rem;
}

.ah-title {
  font-family: var(--display);
  font-size: clamp(2.35rem, 5vw, 3.85rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}

.ah-sub {
  color: var(--text2);
  font-size: 1.04rem;
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 1.85rem;
}

.ah-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.8rem;
}

.ah-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.4rem;
  border-radius: 11px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s, background 0.2s;
}

.ah-btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  color: #fff;
  box-shadow: 0 8px 28px var(--accent-glow);
}

.ah-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px var(--accent-glow);
}

.ah-btn.secondary {
  background: rgba(28, 28, 40, 0.72);
  border-color: var(--border);
  color: var(--text2);
}

.ah-btn.secondary:hover {
  color: var(--text);
  border-color: var(--accent2);
  transform: translateY(-2px);
}

.ah-btn.sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
  border-radius: 9px;
}

/* Hero visual right panel */
.ah-vault-card {
  position: relative;
  background: linear-gradient(155deg, rgba(28, 28, 40, 0.85), rgba(17, 17, 24, 0.92));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
}

.ah-vault-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.45), rgba(56, 189, 248, 0.25), rgba(236, 72, 153, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.ah-vault-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.95rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.78rem;
  color: var(--text3);
}

.ah-dots {
  display: inline-flex;
  gap: 6px;
}

.ah-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
}

.ah-dots span:nth-child(1) { background: #ef4444; }
.ah-dots span:nth-child(2) { background: #f59e0b; }
.ah-dots span:nth-child(3) { background: #10b981; }

.ah-tree {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--text2);
}

.ah-tree-dir { color: var(--accent4); font-weight: 600; }
.ah-tree-accent { color: var(--accent2); }
.ah-tree-muted { color: var(--text3); }

.ah-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.ah-stat {
  background: rgba(10, 10, 15, 0.55);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
}

.ah-stat-val {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.ah-section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.ah-section-head .section-sub {
  margin: 0.25rem 0 0;
}

.ah-stat-lbl {
  font-size: 0.72rem;
  color: var(--text3);
}

/* Catalog Section */
.ah-section {
  padding: 3rem 2rem 4.5rem;
}

.ah-section.alt {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ah-toolbar {
  background: rgba(28, 28, 40, 0.65);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  backdrop-filter: blur(10px);
}

.ah-toolbar-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
}

.ah-search-wrap {
  position: relative;
  flex: 1 1 280px;
  max-width: 440px;
}

.ah-search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  font-size: 0.9rem;
  pointer-events: none;
}

.ah-search {
  width: 100%;
  padding: 0.72rem 1rem 0.72rem 2.45rem;
  background: rgba(10, 10, 15, 0.75);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ah-search:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.16);
}

.ah-search::placeholder {
  color: var(--text3);
}

.ah-pipelines {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.ah-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ah-pill {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(17, 17, 24, 0.75);
  color: var(--text2);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s var(--ease);
}

.ah-pill:hover {
  color: var(--text);
  border-color: var(--accent2);
}

.ah-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px var(--accent-glow);
}

.ah-pill.pipe {
  padding: 0.36rem 0.75rem;
  font-size: 0.76rem;
  font-family: var(--mono, ui-monospace, monospace);
}

.ah-pill.pipe.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--accent4);
  color: var(--accent4);
  box-shadow: none;
}

.ah-results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  color: var(--text3);
  font-size: 0.85rem;
}

/* Asset Grid */
.ah-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.35rem;
}

.asset-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s var(--ease), border-color 0.28s, box-shadow 0.28s;
}

.asset-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent2);
  box-shadow: 0 18px 46px rgba(124, 58, 237, 0.18);
}

.asset-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: radial-gradient(circle at 25% 20%, rgba(124, 58, 237, 0.28), transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.2), transparent 60%),
              var(--bg3);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.asset-thumb-fallback {
  font-size: 2.75rem;
  opacity: 0.9;
}

.asset-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  pointer-events: none;
}

.asset-badge {
  padding: 0.25rem 0.62rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(10, 10, 15, 0.82);
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.asset-badge.free {
  border-color: rgba(16, 185, 129, 0.45);
  color: var(--green);
}

.asset-badge.featured {
  border-color: rgba(168, 85, 247, 0.5);
  color: #e9d5ff;
}

.asset-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.asset-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--accent4);
  font-family: var(--mono, ui-monospace, monospace);
}

.asset-title {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.asset-desc {
  color: var(--text2);
  font-size: 0.88rem;
  line-height: 1.6;
  flex: 1;
}

.asset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.asset-chip {
  font-size: 0.72rem;
  padding: 0.22rem 0.58rem;
  border-radius: 6px;
  background: rgba(10, 10, 15, 0.55);
  border: 1px solid var(--border);
  color: var(--text2);
}

.asset-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.35rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.asset-actions .ah-btn {
  flex: 1;
}

/* Empty & Upcoming Tracks */
.ah-empty-banner {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(56, 189, 248, 0.08));
  border: 1px dashed rgba(168, 85, 247, 0.45);
  border-radius: 20px;
  padding: 2.25rem;
  text-align: center;
  margin-bottom: 1.75rem;
}

.ah-empty-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.ah-empty-banner h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.ah-empty-banner p {
  color: var(--text2);
  max-width: 640px;
  margin: 0 auto 1.25rem;
  font-size: 0.95rem;
}

.ah-slot-card {
  background: rgba(28, 28, 40, 0.55);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ah-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ah-slot-emoji {
  font-size: 1.65rem;
}

.ah-slot-status {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.7rem;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: var(--accent2);
}

.ah-slot-title {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
}

.ah-slot-desc {
  color: var(--text2);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* Standards / Specs Grid */
.ah-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.ah-spec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem;
}

.ah-spec-card h3 {
  font-family: var(--display);
  font-size: 1.02rem;
  margin: 0.6rem 0 0.45rem;
}

.ah-spec-card p {
  color: var(--text2);
  font-size: 0.86rem;
  line-height: 1.6;
}

/* Developer Guide Code Box */
.ah-guide {
  margin-top: 2rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.ah-guide summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--text);
}

.ah-guide summary::-webkit-details-marker {
  display: none;
}

.ah-guide-body {
  padding: 0 1.4rem 1.4rem;
  border-top: 1px solid var(--border);
}

.ah-code {
  margin-top: 1rem;
  background: #07070c;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.78rem;
  line-height: 1.65;
  color: #d6deeb;
  overflow-x: auto;
  white-space: pre;
}

/* Modal */
.ah-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(5, 5, 10, 0.78);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.ah-modal-backdrop.open {
  display: flex;
}

.ah-modal {
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.65rem;
  position: relative;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
}

.ah-modal-close {
  position: sticky;
  float: right;
  top: 0;
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

.ah-modal-close:hover {
  border-color: var(--accent2);
}

.ah-spec-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin: 1.15rem 0;
}

.ah-spec-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
}

.ah-spec-row span {
  display: block;
  font-size: 0.72rem;
  color: var(--text3);
}

.ah-spec-row strong {
  font-size: 0.88rem;
  color: var(--text);
}

.ah-content-list {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin: 0.75rem 0 1.25rem;
}

.ah-content-list li {
  color: var(--text2);
  font-size: 0.88rem;
  padding-left: 1.25rem;
  position: relative;
}

.ah-content-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.ah-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface2);
  border: 1px solid var(--accent2);
  color: var(--text);
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  z-index: 600;
  transition: opacity 0.25s, transform 0.25s;
}

.ah-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 920px) {
  .ah-hero-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ah-container,
  .ah-hero,
  .ah-section {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
  .ah-spec-table {
    grid-template-columns: 1fr;
  }
  .ah-grid {
    grid-template-columns: 1fr;
  }
}
