/* =========================================
   LAYOUT
   ========================================= */

.desktop {
  display: flex;
  min-height: 100vh;
  align-items: flex-start;
  gap: 24px;
  padding: 32px;
  position: relative;
  background-image: url(images/noise_light.gif);
  background-size: 35% auto;
  background-repeat: repeat;
}

/* =========================================
   GLASS PANEL (base)
   ========================================= */

.panel {
  background-color: rgba(0, 0, 0, 0.60);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f0f0f0;
}

/* =========================================
   SIDEBAR
   ========================================= */

.sidebar {
  display: flex;
  flex-direction: column;
  width: 300px;
  flex-shrink: 0;
  gap: 16px;
  align-self: stretch;
}

/* --- Header panel --- */

.header-panel {
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header-name {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.header-sub {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.50);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- Projects panel --- */

.projects-panel {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow-y: auto;
}

.projects-label {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.40);
  padding: 0 4px 4px;
}

/* =========================================
   PROJECT CARDS (sidebar)
   ========================================= */

.project-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  text-align: left;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
  position: relative;
}

.project-card:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.project-card.active {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}

.project-card--tbd {
  opacity: 0.55;
}

.project-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-card__logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.project-card__name {
  font-family: 'Prata', serif;
  font-size: 15px;
  line-height: 1;
  color: #fff;
}

.project-card__desc {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

.project-card__badge {
  font-family: 'Roboto', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 20px;
  width: fit-content;
  margin-top: 2px;
}

.badge--public {
  background-color: rgba(80, 200, 120, 0.18);
  color: #6ddc96;
  border: 1px solid rgba(80, 200, 120, 0.35);
}

.badge--private {
  background-color: rgba(200, 160, 80, 0.15);
  color: #e0be6a;
  border: 1px solid rgba(200, 160, 80, 0.30);
}

/* =========================================
   YAVAI LOGO
   ========================================= */

.yavai-logo {
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 20px;
  line-height: 1;
}

.yavai-y  { color: #e7e7e7; }
.yavai-av { color: #2594bf; }
.yavai-ai { color: #e7e7e7; }

/* =========================================
   TBD
   ========================================= */

.tbd-name {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.50);
}

/* =========================================
   KO12 NAME
   ========================================= */

.ko12-name {
  font-family: 'Prata', serif;
  color: #c8a882;
}

/* =========================================
   MAIN PANEL
   ========================================= */

.main {
  flex: 1;
  align-self: stretch;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

/* =========================================
   CONTENT PAGES
   ========================================= */

.content-page {
  position: absolute;
  inset: 0;
  padding: 40px 48px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  overflow-y: auto;
}

.content-page[data-active="true"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* =========================================
   WELCOME SCREEN
   ========================================= */

.welcome {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  min-height: 320px;
  gap: 16px;
}

.welcome__title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 42px;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.90);
}

.welcome__accent {
  color: #fff;
  opacity: 1;
}

.welcome__text {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.welcome__hint {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.30);
  margin-top: 8px;
  letter-spacing: 0.03em;
}

/* =========================================
   PROJECT PAGE (main content)
   ========================================= */

.project-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-page__hero {
  display: flex;
  align-items: center;
  gap: 20px;
}

.project-page__logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.4));
}

.project-page__title {
  font-size: 32px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.project-page__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-page__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 1px;
}

.project-page__desc {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.70);
}

.project-page__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-page__note {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  color: rgba(200, 160, 80, 0.80);
  background-color: rgba(200, 160, 80, 0.08);
  border: 1px solid rgba(200, 160, 80, 0.20);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 4px;
}

/* =========================================
   TAGS
   ========================================= */

.tag {
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 20px;
}

.tag--genre {
  background: rgba(120, 160, 255, 0.15);
  color: #99b8ff;
  border: 1px solid rgba(120, 160, 255, 0.28);
}

.tag--type {
  background: rgba(180, 120, 255, 0.15);
  color: #c99fff;
  border: 1px solid rgba(180, 120, 255, 0.28);
}

.tag--wip {
  background: rgba(255, 200, 80, 0.13);
  color: #ffd666;
  border: 1px solid rgba(255, 200, 80, 0.28);
}

.tag--concept {
  background: rgba(255, 160, 80, 0.13);
  color: #ffb366;
  border: 1px solid rgba(255, 160, 80, 0.28);
}

.tag--vis {
  background: rgba(80, 200, 120, 0.15);
  color: #6ddc96;
  border: 1px solid rgba(80, 200, 120, 0.28);
}

.tag--private-vis {
  background: rgba(200, 160, 80, 0.12);
  color: #e0be6a;
  border: 1px solid rgba(200, 160, 80, 0.25);
}

.tag--tech {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* =========================================
   BUTTON
   ========================================= */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background-color 0.18s, border-color 0.18s, transform 0.15s;
  width: fit-content;
  margin-top: 4px;
}

.btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

/* =========================================
   RESPONSIVE — MOBILE
   ========================================= */

@media (max-width: 720px) {
  .desktop {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
    align-items: stretch;
  }

  .sidebar {
    width: 100%;
  }

  .projects-panel {
    flex-direction: row;
    flex-wrap: wrap;
    overflow-x: auto;
    overflow-y: visible;
  }

  .project-card {
    width: auto;
    min-width: 180px;
    flex: 1;
  }

  .main {
    min-height: 480px;
  }

  .content-page {
    padding: 24px 20px;
  }

  .welcome__title {
    font-size: 28px;
  }

  .project-page__title {
    font-size: 24px;
  }

  .project-page__logo {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 480px) {
  .projects-panel {
    flex-direction: column;
  }

  .project-card {
    min-width: unset;
    width: 100%;
  }
}
