/* ==========================================================================
   CABINET MENU — styles
   
   The commercial space of the workshop. Styled to match the olive-metal
   patina of the file cabinet image. Large, readable, dignified.
   ========================================================================== */


/* The overlay — dark wash behind the menu */
.cabinet-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(5, 3, 2, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cabinet-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}


/* The menu panel — metal cabinet aesthetic */
.cabinet-menu {
  width: min(750px, 92vw);
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(
    180deg,
    #5a5848 0%,
    #504e40 30%,
    #484638 60%,
    #3e3c30 100%
  );
  border: 1px solid rgba(180, 170, 140, 0.15);
  border-radius: 4px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 2px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Subtle noise texture via SVG — gives the metal surface grain */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

.cabinet-overlay.visible .cabinet-menu {
  transform: translateY(0);
}

/* Custom scrollbar to match aesthetic */
.cabinet-menu::-webkit-scrollbar {
  width: 6px;
}

.cabinet-menu::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.cabinet-menu::-webkit-scrollbar-thumb {
  background: rgba(180, 170, 140, 0.3);
  border-radius: 3px;
}


/* Menu header */
.cabinet-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.8rem 1rem;
  border-bottom: 1px solid rgba(180, 170, 140, 0.12);
}

.cabinet-menu-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: 1.3rem;
  color: #e8d5b0;
  letter-spacing: 0.06em;
}

.cabinet-menu-close {
  background: none;
  border: none;
  color: #b0a080;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  line-height: 1;
  border-radius: 2px;
  transition: color 0.2s ease, background 0.2s ease;
}

.cabinet-menu-close:hover {
  color: #e8d5b0;
  background: rgba(255, 255, 255, 0.06);
}


/* Individual drawer entries */
.cabinet-entry {
  border-bottom: 1px solid rgba(180, 170, 140, 0.08);
}

.cabinet-entry:last-child {
  border-bottom: none;
}

.cabinet-entry-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.8rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cabinet-entry-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* The small drawer handle icon */
.cabinet-entry-handle {
  width: 28px;
  height: 8px;
  background: linear-gradient(
    180deg,
    #8a8570 0%,
    #6e6a58 100%
  );
  border-radius: 2px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.cabinet-entry-labels {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cabinet-entry-label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: #e8d5b0;
  letter-spacing: 0.03em;
}

.cabinet-entry-sublabel {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: 0.9rem;
  color: #b0a080;
  letter-spacing: 0.02em;
}

.cabinet-entry-soon {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  font-style: italic;
  color: #8a8068;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  flex-shrink: 0;
}

.cabinet-entry-chevron {
  color: #8a8068;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.cabinet-entry.open .cabinet-entry-chevron {
  transform: rotate(180deg);
}


/* Expanded content area */
.cabinet-entry-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cabinet-entry.open .cabinet-entry-content {
  max-height: 4000px;
  overflow-y: auto;
  padding: 0 1.8rem 1.4rem 4.6rem; /* indent to align with labels */
}


/* Content card styling */
.cabinet-card-body {
  padding-top: 0.2rem;
}

.cabinet-card-description {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #d4c4a0;
  margin-bottom: 0.8rem;
}

.cabinet-card-description:last-child {
  margin-bottom: 0;
}

.cabinet-card-coming {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.9rem;
  font-style: italic;
  color: #a09070;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.cabinet-card-note {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  color: #8a7a60;
  font-style: italic;
  margin-top: 0.6rem;
}


/* Download link — the one call to action */
.cabinet-download-link {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: #e8c477;
  text-decoration: none;
  padding: 0.6rem 1.6rem;
  border: 1px solid rgba(232, 196, 119, 0.35);
  border-radius: 3px;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
  margin-top: 0.3rem;
}

.cabinet-download-link:hover {
  background: rgba(232, 196, 119, 0.1);
  border-color: rgba(232, 196, 119, 0.6);
  color: #f0d898;
}


/* Email notify form */
.cabinet-notify-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.cabinet-notify-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(180, 170, 140, 0.2);
  border-radius: 3px;
  padding: 0.5rem 0.8rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  color: #d4c4a0;
  outline: none;
  transition: border-color 0.2s ease;
}

.cabinet-notify-input::placeholder {
  color: #7a7060;
  font-style: italic;
}

.cabinet-notify-input:focus {
  border-color: rgba(232, 196, 119, 0.4);
}

.cabinet-notify-button {
  background: rgba(232, 196, 119, 0.12);
  border: 1px solid rgba(232, 196, 119, 0.3);
  border-radius: 3px;
  padding: 0.5rem 1rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #e8c477;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cabinet-notify-button:hover {
  background: rgba(232, 196, 119, 0.2);
  border-color: rgba(232, 196, 119, 0.5);
}


/* Empty drawer — the unlabeled fifth */
.cabinet-entry--empty {
  padding: 0.8rem 1.8rem;
  opacity: 0.3;
  cursor: default;
}

.cabinet-entry--empty .cabinet-entry-handle {
  opacity: 0.5;
}


/* Responsive */
/* Wider content for the Bee Hive drawer */
.cabinet-card-wide .cabinet-card-description {
  max-width: 100%;
}

/* Download section */
.cabinet-download-section {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(180, 170, 140, 0.15);
}

.cabinet-invitation {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: #e8c477;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.cabinet-key-input {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.cabinet-key-field {
  flex: 1;
  min-width: 180px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(232, 196, 119, 0.3);
  border-radius: 3px;
  padding: 0.6rem 1rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  color: #d4c4a0;
  letter-spacing: 0.08em;
  outline: none;
  transition: border-color 0.2s ease;
}

.cabinet-key-field::placeholder {
  color: #7a7060;
  font-style: italic;
  letter-spacing: 0.03em;
}

.cabinet-key-field:focus {
  border-color: rgba(232, 196, 119, 0.5);
}

.cabinet-platform-buttons {
  display: flex;
  gap: 0.4rem;
}

.cabinet-platform-btn {
  background: rgba(232, 196, 119, 0.12);
  border: 1px solid rgba(232, 196, 119, 0.3);
  border-radius: 3px;
  padding: 0.6rem 1.2rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #e8c477;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cabinet-platform-btn:hover {
  background: rgba(232, 196, 119, 0.22);
  border-color: rgba(232, 196, 119, 0.5);
}

.cabinet-waitlist-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.85rem;
  font-style: italic;
  color: #a09070;
  margin-bottom: 0.5rem;
}


/* Screenshots section */
.cabinet-screenshots {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(180, 170, 140, 0.15);
}

.cabinet-screenshots-label {
  font-family: 'Indie Flower', cursive;
  font-size: 1.1rem;
  color: #b0a080;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.cabinet-screenshots-row {
  display: flex;
  gap: 0.8rem;
}

.cabinet-screenshot {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cabinet-screenshot img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.cabinet-screenshot img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.cabinet-screenshot-caption {
  font-family: 'Indie Flower', cursive;
  font-size: 0.8rem;
  color: #8a7a5a;
  text-align: center;
}


/* Responsive */
@media (max-width: 480px) {
  .cabinet-screenshots-row {
    flex-direction: column;
  }

  .cabinet-key-input {
    flex-direction: column;
  }

  .cabinet-platform-buttons {
    width: 100%;
  }

  .cabinet-platform-btn {
    flex: 1;
  }
}


/* Screenshot lightbox — full-size view */
.screenshot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 3, 2, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.screenshot-lightbox.visible {
  opacity: 1;
  pointer-events: auto;
}

.screenshot-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}


/* End of cabinet styles */
