/* ===== cooking corner: retro filing cabinet drawers ===== */

.cooking-page .page-window {
  width: min(820px, 94%);
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 20px;
  margin: 26px 4px 16px;
}

.folder {
  position: relative;
  height: 120px;
  cursor: pointer;
  perspective: 400px;
}

/* Dark internal cavity revealed when drawer pulls forward */
.folder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #111;
  border-radius: 2px;
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.9);
}

.drawer-front {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #bdc3c7, #8d99ae);
  border: 2px solid;
  border-color: #e0e0e0 #555 #555 #e0e0e0; /* Win95 classic bevel */
  box-shadow: 0 4px 6px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 6px;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease;
}

/* Brass metal handle */
.drawer-handle {
  width: 44px;
  height: 10px;
  background: linear-gradient(to bottom, #d4af37, #8a7322);
  border: 1px solid #4a3e10;
  border-radius: 2px;
  box-shadow: 0 2px 3px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.4);
}

/* Paper label holder slot */
.folder-label {
  background: #fdfbf7;
  border: 2px solid #6c757d;
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.3);
  padding: 4px 8px;
  width: 85%;
  text-align: center;
  font-family: monospace;
  font-size: 11px;
  font-weight: bold;
  color: #1a1a1a;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.folder-label .pixel-icon-inline {
  color: #2a2a2a;
}

/* Hover & Open States */
.folder:hover .drawer-front {
  transform: translateY(-8px) translateZ(10px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.5);
}

.folder.open .drawer-front {
  transform: translateY(-18px) translateZ(20px);
  background: linear-gradient(to bottom, #d1d5db, #9ca3af);
  border-color: #ffffff #374151 #374151 #ffffff;
  box-shadow: 0 12px 16px rgba(0,0,0,0.6);
}

/* ===== post-it board ===== */

.postit-board {
  display: none;
  flex-wrap: wrap;
  gap: 22px;
  padding: 24px 10px 8px;
  margin-bottom: 10px;
  justify-content: center;
}

.postit-board.open {
  display: flex;
  animation: board-in 0.25s ease;
}

@keyframes board-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.postit {
  width: 190px;
  min-height: 150px;
  padding: 14px;
  font-family: 'Kalam', cursive;
  color: #3a3a3a;
  box-shadow: 3px 4px 8px rgba(0,0,0,0.3);
  position: relative;
}

.postit h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  line-height: 1.2;
}

.postit p {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
}

.postit-yellow { background: #fff59d; }
.postit-pink   { background: #f8bbd0; }
.postit-blue   { background: #90caf9; }

.rot-1 { transform: rotate(-3deg); }
.rot-2 { transform: rotate(2.5deg); }

.postit:hover {
  transform: scale(1.04) rotate(0deg);
  z-index: 5;
  transition: transform 0.15s ease;
}

@media (max-width: 600px) {
  .folder-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
  .folder {
    height: 100px;
  }
}