/* Simulator Specific Styles */

/* Tutorial Grid */
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.tutorial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  overflow: hidden;
}

.tutorial-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.tutorial-header {
  padding: 2rem 2rem 1rem 2rem;
  text-align: center;
}

.tutorial-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.tutorial-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.tutorial-content {
  padding: 0 2rem 2rem 2rem;
}

.tutorial-description {
  font-size: 1.25rem;
  color: var(--soft);
  margin-bottom: 1.5rem;
  text-align: center;
}

.tutorial-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.feature-tag {
  background: var(--soft-blue);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.tutorial-button {
  width: 100%;
  min-height: 4rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tutorial-button:hover {
  background: hsl(210, 50%, 35%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Tips Section */
.tips-section {
  background: var(--soft-green);
  padding: 2rem;
  border-radius: var(--radius);
}

.tips-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
}

.tips-content {
  display: grid;
  gap: 1.5rem;
}

.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tip-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.tip-text h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tip-text p {
  font-size: 1rem;
  color: var(--soft);
}

/* Simulator Modal */
.simulator-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.simulator-modal.hidden {
  display: none;
}

.simulator-container {
  background: white;
  border-radius: var(--radius);
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.simulator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--primary);
  color: white;
}

.simulator-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.close-button {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.close-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.simulator-content {
  padding: 2rem;
  max-height: calc(90vh - 100px);
  overflow-y: auto;
}

.simulator-screen {
  background: #f8f9fa;
  border: 2px solid #ddd;
  border-radius: 1rem;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

.step-content {
  padding: 2rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.step-instruction {
  font-size: 1.25rem;
  color: var(--soft);
  margin-bottom: 2rem;
}

.step-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.option-button {
  min-height: 5rem;
  background: white;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.option-button:hover {
  border-color: var(--primary);
  background: var(--soft-blue);
  transform: scale(1.02);
}

.option-button .option-label {
  font-weight: 600;
}

.option-button .option-price {
  font-size: 0.9rem;
  color: var(--soft);
}

.next-button {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 2rem;
  transition: all 0.2s ease;
}

.next-button:hover {
  background: hsl(210, 50%, 35%);
  transform: translateY(-2px);
}

.order-summary {
  background: var(--soft-blue);
  padding: 1.5rem;
  border-radius: 0.75rem;
  max-width: 400px;
  margin: 0 auto 2rem auto;
}

.order-summary h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.order-total {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0 0.5rem 0;
  border-top: 2px solid var(--primary);
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.completion-message {
  text-align: center;
  padding: 2rem;
}

.completion-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.completion-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.completion-description {
  font-size: 1.25rem;
  color: var(--soft);
  margin-bottom: 2rem;
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-description {
  font-size: 1.5rem;
  color: var(--soft);
  max-width: 800px;
  margin: 0 auto;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .tutorial-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tutorial-header {
    padding: 1.5rem;
  }

  .tutorial-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
  }

  .tutorial-icon {
    font-size: 3rem;
  }

  .tutorial-title {
    font-size: 1.5rem;
  }

  .simulator-container {
    width: 95%;
    margin: 1rem;
  }

  .simulator-content {
    padding: 1rem;
  }

  .step-content {
    padding: 1rem;
  }

  .step-title {
    font-size: 1.5rem;
  }

  .step-instruction {
    font-size: 1rem;
  }

  .step-options {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .option-button {
    min-height: 4rem;
    font-size: 1rem;
  }

  .tips-content {
    gap: 1rem;
  }

  .tip-item {
    padding: 1rem;
  }

  .tip-icon {
    font-size: 1.5rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .page-description {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .simulator-header {
    padding: 0.75rem 1rem;
  }

  .simulator-header h3 {
    font-size: 1.25rem;
  }

  .close-button {
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .step-title {
    font-size: 1.25rem;
  }

  .tutorial-features {
    gap: 0.25rem;
  }

  .feature-tag {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }
}