/* ===== MITSUKI LABS DESIGN GUIDE ===== */

/* Root Variables */

:root {
  --black: #000000;
  --white: #ffffff;
  --font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-hero: 'Outfit', 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Reset and Base */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Top Bar - Back to Home */

.top-bar {
  background: var(--black);
  border-bottom: 2px solid var(--white);
  padding: 1rem 0;
}

.top-bar-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.back-home:hover {
  color: var(--white);
}

.back-home svg {
  width: 20px;
  height: 20px;
}

/* Header */

.labs-header {
  background: var(--black);
  border-bottom: 4px solid var(--white);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.labs-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  pointer-events: none;
}

.header-content {
  position: relative;
  z-index: 1;
}

.header-content h1 {
  font-family: var(--font-hero);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.header-subtitle {
  color: var(--white);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.header-description {
  color: var(--white);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

/* Navigation */

.labs-nav {
  background: var(--black);
  padding: 1rem 2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--white);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.labs-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 0.6rem 1rem;
  border: 2px solid var(--white);
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.labs-nav a:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--white);
}

.labs-nav a.active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* Main Content */

.labs-main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

.labs-section {
  margin-bottom: 6rem;
  scroll-margin-top: 80px;
}

.section-title {
  font-family: var(--font-hero);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 4px solid var(--white);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100px;
  height: 4px;
  background: var(--white);
}

.section-description {
  color: var(--white);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.section-note {
  background: transparent;
  border: 2px solid var(--white);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  color: var(--white);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.subsection {
  margin-top: 3rem;
}

.subsection h3 {
  font-family: var(--font-hero);
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

/* Overview Section */

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.overview-card {
  background: var(--black-lighter);
  border: 2px solid var(--white-faint);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.2s ease;
}

.overview-card:hover {
  border-color: var(--pink);
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 var(--pink-darker);
}

.overview-card h3 {
  font-family: var(--font-hero);
  font-size: 1.5rem;
  color: var(--pink);
  margin-bottom: 1rem;
  font-weight: 700;
}

.overview-card p {
  color: var(--white-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.overview-card ul {
  list-style: none;
  padding: 0;
}

.overview-card ul li {
  color: var(--white-dim);
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.overview-card ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: bold;
}

/* Color Section */

.color-category {
  margin-bottom: 3rem;
}

.color-category h3 {
  font-family: var(--font-hero);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  font-weight: 700;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.color-card {
  background: var(--black);
  border: 2px solid var(--white);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
}

.color-card:hover {
  transform: translateY(-4px);
  border-color: var(--white);
  box-shadow: 6px 6px 0 var(--white);
}

.color-swatch {
  height: 140px;
  width: 100%;
  position: relative;
}

.color-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.color-name {
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
}

.color-hex {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--white);
  font-weight: 600;
}

.color-usage {
  font-size: 0.85rem;
  color: var(--white);
  font-style: italic;
}

/* Gradients */

.gradient-showcase {
  margin-top: 3rem;
}

.gradient-showcase h3 {
  font-family: var(--font-hero);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.gradient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.gradient-card {
  background: var(--black);
  border: 2px solid var(--white);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.gradient-card:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 var(--white);
}

.gradient-swatch {
  height: 180px;
  width: 100%;
}

.gradient-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gradient-name {
  font-weight: 700;
  color: var(--white);
  font-size: 1.1rem;
}

code {
  font-family: var(--font-mono);
  background: var(--black);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--white);
  border: 1px solid var(--white);
  display: block;
  word-break: break-all;
  line-height: 1.5;
}

/* Typography */

.typography-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.font-card {
  background: var(--black);
  border: 2px solid var(--white);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.2s ease;
}

.font-card:hover {
  border-color: var(--white);
  box-shadow: 6px 6px 0 var(--white);
}

.font-sample {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.font-label {
  font-size: 0.85rem;
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.font-demo-large {
  font-size: 2.5rem;
  color: var(--white);
  font-weight: 800;
  line-height: 1.1;
}

.font-demo-text {
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.5;
}

.font-demo-small {
  font-size: 0.9rem;
  color: var(--white);
  letter-spacing: 0.05em;
}

.font-usage {
  color: var(--white);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Image Gallery */

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.image-grid.icon-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.image-grid.feature-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.image-grid.web-grid {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.image-card {
  background: var(--black);
  border: 2px solid var(--white);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.image-card:hover {
  transform: translateY(-6px);
  border-color: var(--white);
  box-shadow: 8px 8px 0 var(--white);
}

.image-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.3s ease;
}

.image-card:hover img {
  transform: scale(1.05);
}

.image-label {
  display: block;
  padding: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  background: var(--black);
  text-align: center;
}

.image-card.full-width {
  grid-column: 1 / -1;
}

.image-card.mobile-view {
  max-width: 400px;
  margin: 0 auto;
}

/* Design Notes */

.design-notes {
  background: var(--black-lighter);
  border: 2px solid var(--blue);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 3rem;
}

.design-notes h3 {
  font-family: var(--font-hero);
  font-size: 1.5rem;
  color: var(--blue);
  margin-bottom: 1rem;
  font-weight: 700;
}

.design-notes ul {
  list-style: none;
  padding: 0;
}

.design-notes ul li {
  color: var(--white-dim);
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.design-notes ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: bold;
}

/* Guidelines */

.guidelines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.guideline-card {
  background: var(--black-lighter);
  border: 2px solid var(--white-faint);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.2s ease;
}

.guideline-card:hover {
  border-color: var(--pink);
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 var(--pink-darker);
}

.guideline-card h3 {
  font-family: var(--font-hero);
  font-size: 1.5rem;
  color: var(--pink);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.guideline-card ul {
  list-style: none;
  padding: 0;
}

.guideline-card ul li {
  color: var(--white-dim);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.guideline-card ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 0.8rem;
}

.guideline-card ul li strong {
  color: var(--white);
}

/* Deliverables */

.deliverables-section {
  background: linear-gradient(135deg, rgba(145, 225, 255, 0.03), rgba(255, 158, 228, 0.03));
  border: 3px solid var(--pink);
  border-radius: 16px;
  padding: 3rem 2rem;
}

.deliverables-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.deliverable-item {
  background: var(--black-lighter);
  border: 2px solid var(--white-faint);
  border-radius: 12px;
  padding: 2rem;
}

.deliverable-item h3 {
  font-family: var(--font-hero);
  font-size: 1.5rem;
  color: var(--blue);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.deliverable-item ul {
  list-style: none;
  padding: 0;
}

.deliverable-item ul li {
  color: var(--white-dim);
  margin-bottom: 0.75rem;
  padding-left: 2rem;
  position: relative;
}

.deliverable-item ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--pink);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Footer */

.labs-footer {
  background: var(--black);
  border-top: 4px solid var(--white);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

.footer-content p {
  color: var(--white);
  margin: 0.5rem 0;
}

.footer-content p strong {
  color: var(--white);
}

.footer-note {
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 1rem !important;
}

/* Back to Top Button */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--white);
  border: 3px solid var(--white);
  border-radius: 8px;
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 4px 4px 0 var(--white);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--white);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* Responsive */

@media (max-width: 1200px) {
  .guidelines-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

@media (max-width: 768px) {
  .labs-header {
    padding: 2rem 1rem;
  }
}

@media (max-width: 768px) {
  .labs-nav {
    padding: 1rem;
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .labs-nav a {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 768px) {
  .labs-main {
    padding: 2rem 1rem 4rem;
  }
}

@media (max-width: 768px) {
  .overview-grid, .typography-grid, .guidelines-grid, .deliverables-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .color-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .image-grid, .image-grid.feature-grid, .image-grid.web-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .gradient-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .labs-nav a {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
  }
}

@media (max-width: 480px) {
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 1rem;
    right: 1rem;
  }
}

/* Scrollbar */

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--white);
  border-radius: 10px;
  border: 3px solid var(--black);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--white);
}

/* Print Styles */

