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

body {
  background-color: #0f172a;
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  padding: 2rem 1rem;
}

.header {
  margin-bottom: 3rem;
  padding: 2rem 0;
  border-bottom: 2px solid #334155;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.5) 100%);
  margin-left: -2rem;
  margin-right: -2rem;
  padding-left: 2rem;
  padding-right: 2rem;
  margin-top: -2rem;
}

.header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.header p {
  color: #94a3b8;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.tiles-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1400px;
}

.tile {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #1e293b;
  border: 1px solid #334155;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.tile:hover {
  border-color: #64748b;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.tile-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 0;
  min-height: 80px;
  text-align: center;
}

.tile-image-wrapper {
  position: relative;
  width: 100%;
  height: 80px;
  overflow: hidden;
  background-color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

.tile-image {
  max-width: 100%;
  max-height: 50px;
  width: auto;
  height: auto;
  transition: transform 0.3s ease;
}

.tile:hover .tile-image {
  transform: scale(1.15);
}

.tile-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.tile-description {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.drawer-section {
  margin-bottom: 2rem;
}

.drawer-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  user-select: none;
}

.drawer-header h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0;
}

.drawer-toggle {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  text-align: center;
  line-height: 1.5rem;
  color: #94a3b8;
  font-weight: bold;
  transition: transform 0.2s ease;
  transform: rotate(0deg);
}

.drawer-section input[type="checkbox"] {
  display: none;
}

.drawer-content {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.drawer-section input[type="checkbox"]:checked ~ .drawer-content {
  display: grid;
}

.drawer-section input[type="checkbox"]:checked ~ .drawer-header .drawer-toggle {
  transform: rotate(90deg);
}

.tile-link {
  font-size: 0.75rem;
  color: #64b5f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.tile-link:hover {
  color: #90caf9;
  text-decoration: underline;
}

.content {
  max-width: 900px;
  margin: 0 auto;
}

.guide-section {
  margin-bottom: 2rem;
}

.guide-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 1rem;
  border-bottom: 1px solid #334155;
  padding-bottom: 0.5rem;
}

.guide-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.guide-section p {
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.guide-section ul,
.guide-section ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: #cbd5e1;
  line-height: 1.8;
}

.guide-section li {
  margin-bottom: 0.5rem;
}

.guide-section code {
  background-color: #1e293b;
  color: #64b5f6;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: #64b5f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #90caf9;
  text-decoration: underline;
}

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

  .tile {
    width: 100%;
    max-width: 180px;
  }

  .header h1 {
    font-size: 1.8rem;
  }

  .content {
    padding: 0;
  }
}
