:root {
  --bg: #0f1117;
  --panel: #161a22;
  --text: #e6e6e6;
  --muted: #9aa0a6;
  --accent: #4da3ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top bar */
.top-bar {
  background: #0c0e13;
  border-bottom: 1px solid #222;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.brand {
  font-weight: 700;
  font-size: 18px;
}

.nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
}

/* Sections */
.section {
  padding: 64px 0;
}

.section h2 {
  margin-bottom: 12px;
}

.section-desc {
  color: var(--muted);
  margin-bottom: 32px;
}

/* Asset grid (placeholder) */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.asset-card {
  background: var(--panel);
  border: 1px solid #222;
  border-radius: 8px;
  padding: 16px;
}

.asset-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
  background: #222;
}

/* Footer */
.footer {
  text-align: center;
  padding: 24px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid #222;
}

/* Modal */
.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.modal-content {
  position: relative;
  background: var(--panel);
  max-width: 800px;
  margin: 5vh auto;
  padding: 24px;
  border-radius: 10px;
  max-height: 90vh;
  overflow-y: auto;
}

#modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
}

.modal-content img {
  width: 100%;
  border-radius: 6px;
  margin: 12px 0;
}

.modal-links a {
  display: inline-block;
  margin-right: 16px;
  margin-top: 12px;
  color: var(--accent);
  text-decoration: none;
}

/* Slider */
.slider {
  position: relative;
  width: 100%;
  max-height: 260px;
  overflow: hidden;
  margin: 16px 0;
}

.slider-track {
  display: flex;
  transition: transform 0.3s ease;
}

.slide {
  min-width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 6px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  border: none;
  color: white;
  font-size: 28px;
  padding: 6px 12px;
  cursor: pointer;
  z-index: 2;
}

.slider-btn.left { left: 8px; }
.slider-btn.right { right: 8px; }

/* Modal animation + scroll lock */
body.modal-open {
  overflow: hidden;
}

.modal {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  transform: scale(0.96);
  transition: transform 0.2s ease;
}

.modal:not(.hidden) .modal-content {
  transform: scale(1);
}

/* Slider dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #555;
}

.slider-dot.active {
  background: var(--accent);
}


/* Asset filters */
.asset-filters {
  margin-bottom: 24px;
}

.asset-filters button {
  margin-right: 12px;
  padding: 6px 12px;
  background: #1c2230;
  border: 1px solid #2a2f3a;
  color: var(--muted);
  cursor: pointer;
}

.asset-filters button.active {
  color: var(--text);
  border-color: var(--accent);
}
