/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.specimen-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--sheet-border-subtle);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--sheet-muted);
}

.footer-left a,
.footer-mid a {
  color: var(--sheet-text);
  text-decoration: none;
  transition: color 0.15s ease;
  padding: 4px 0;
}

.footer-left a:hover,
.footer-mid a:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

.footer-mid {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   PROJECT DETAILS MODAL / DRAWER
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-sheet {
  background: var(--sheet-bg);
  border: 2px solid var(--sheet-border);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.75);
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2.25rem 2.5rem;
  position: relative;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-sheet {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: 1.5px solid var(--sheet-border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: var(--sheet-border);
  color: var(--sheet-bg);
}

.modal-specimen-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sheet-muted);
  margin-bottom: 0.65rem;
}

.modal-tech-tag {
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

.modal-title {
  font-family: var(--font-grotesque);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0.45rem;
}

.modal-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.modal-tech-pills:empty {
  display: none;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--sheet-border);
  border-radius: 9999px;
  background: #ffffff;
}

.modal-section-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sheet-muted);
  border-bottom: 1px solid var(--sheet-border-subtle);
  padding-bottom: 0.35rem;
  margin: 1.6rem 0 0.85rem;
}

.modal-desc {
  font-size: 1rem;
  line-height: 1.55;
  color: #222222;
  margin-bottom: 1rem;
}

.modal-feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.modal-feature-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #333333;
}

.modal-feature-list li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--sheet-border);
}

.modal-footer-actions {
  display: flex;
  gap: 0.85rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--sheet-border-subtle);
}

.modal-footer-actions #modal-github-link:not([hidden]) {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.1rem;
  border: 1px solid #141414;
  border-radius: 4px;
  background: #141414;
  color: #f4efe6;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
}

.modal-footer-actions #modal-github-link:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

.modal-dismiss-btn {
  background: #141414;
  color: #f4efe6;
  border-color: #141414;
  padding: 0.45rem 1.1rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
}

/* ==========================================================================
   SIMPLE / EDITORIAL VIEW MODE
   ========================================================================== */
body.mode-simple .hero-photo-card {
  box-shadow: 2px 2px 0px rgba(20, 20, 20, 0.08);
  border-radius: 4px;
}

body.mode-simple .specimen-sheet {
  box-shadow: 0 15px 40px -15px rgba(0,0,0,0.4);
  border-width: 1px;
}

/* ==========================================================================
   PRINT OPTIMIZATION
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    padding: 0 !important;
  }
  .specimen-loader,
  .top-system-bar,
  .modal-overlay {
    display: none !important;
  }
  .specimen-sheet {
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    padding: 1.2cm !important;
  }
}
