/**
 * Technical Details Section - Modern Design
 * Beautiful card-based layout for materials, equipment, and safety
 */

/* ============================================
   SECTION
   ============================================ */

.technical-details-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

[data-theme="dark"] .technical-details-section {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
}

.technical-details-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   SECTION HEADER
   ============================================ */

.technical-details-header {
  text-align: center;
  margin-bottom: 48px;
}

.technical-details-title {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

[data-theme="dark"] .technical-details-title {
  color: #f8fafc;
}

.technical-details-subtitle {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
}

[data-theme="dark"] .technical-details-subtitle {
  color: #94a3b8;
}

/* ============================================
   GRID LAYOUT
   ============================================ */

.technical-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

@media (min-width: 1024px) {
  .technical-details-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

/* ============================================
   CARD
   ============================================ */

.technical-card {
  position: relative;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.technical-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--card-color-start), var(--card-color-end));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.technical-card:hover::before {
  transform: scaleX(1);
}

.technical-card:hover {
  border-color: var(--card-color-start);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

[data-theme="dark"] .technical-card {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .technical-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Color variants */
.technical-card--materials {
  --card-color-start: #8b5cf6;
  --card-color-end: #7c3aed;
}

.technical-card--equipment {
  --card-color-start: #3b82f6;
  --card-color-end: #2563eb;
}

.technical-card--safety {
  --card-color-start: #f59e0b;
  --card-color-end: #d97706;
}

/* ============================================
   CARD HEADER
   ============================================ */

.technical-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f3f4f6;
}

[data-theme="dark"] .technical-card__header {
  border-bottom-color: #334155;
}

.technical-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 32px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.technical-card:hover .technical-card__icon {
  transform: scale(1.05) rotate(-5deg);
}

.technical-card--materials .technical-card__icon {
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
}

.technical-card--equipment .technical-card__icon {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.technical-card--safety .technical-card__icon {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

[data-theme="dark"] .technical-card--materials .technical-card__icon {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(124, 58, 237, 0.08) 100%);
}

[data-theme="dark"] .technical-card--equipment .technical-card__icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.08) 100%);
}

[data-theme="dark"] .technical-card--safety .technical-card__icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.08) 100%);
}

.technical-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .technical-card__title {
  color: #f8fafc;
}

/* ============================================
   ITEMS LIST
   ============================================ */

.technical-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.technical-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f9fafb;
  transition: all 0.2s ease;
}

.technical-item:hover {
  background: #f3f4f6;
  transform: translateX(4px);
}

[data-theme="dark"] .technical-item {
  background: rgba(51, 65, 85, 0.3);
}

[data-theme="dark"] .technical-item:hover {
  background: rgba(51, 65, 85, 0.5);
}

.technical-item__bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--card-color-start);
  margin-top: 8px;
  flex-shrink: 0;
}

.technical-item__text {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

[data-theme="dark"] .technical-item__text {
  color: #cbd5e1;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.technical-card {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.technical-card:nth-child(1) { animation-delay: 0.1s; }
.technical-card:nth-child(2) { animation-delay: 0.2s; }
.technical-card:nth-child(3) { animation-delay: 0.3s; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 640px) {
  .technical-details-section {
    padding: 60px 0;
  }

  .technical-details-header {
    margin-bottom: 32px;
  }

  .technical-details-title {
    font-size: 24px;
  }

  .technical-details-subtitle {
    font-size: 14px;
  }

  .technical-card {
    padding: 24px;
  }

  .technical-card__icon {
    width: 56px;
    height: 56px;
    font-size: 28px;
  }

  .technical-card__title {
    font-size: 18px;
  }

  .technical-item__text {
    font-size: 13px;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .technical-card {
    animation: none;
    opacity: 1;
  }

  .technical-card:hover,
  .technical-card__icon:hover,
  .technical-item:hover {
    transform: none;
  }
}

/* ============================================
   PRINT
   ============================================ */

@media print {
  .technical-details-section {
    background: white;
    padding: 20px 0;
  }

  .technical-card {
    border: 1px solid #000;
    box-shadow: none;
    page-break-inside: avoid;
  }

  .technical-card::before {
    display: none;
  }
}
