/**
 * Vylepšené CSS pro supercharger detail layout a responzivitu
 * Přidejte do supercharger-detail.css
 */

/* === HLAVNÍ LAYOUT === */
.supercharger-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* === HORNÍ SEKCE - INFO CARDS GRID === */
.supercharger-top-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.supercharger-main-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.supercharger-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* === QUICK INFO GRID === */
.quick-info-grid {
  margin: 1.5rem 0;
}

.quick-info-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.info-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #0056b3);
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.info-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.info-content strong {
  display: block;
  font-size: 1.3rem;
  color: #007bff;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.info-content span {
  color: #6c757d;
  font-size: 0.95rem;
  font-weight: 500;
}

/* === TECHNICKÉ INFORMACE - DVOU-SLOUPCOVÝ LAYOUT === */
.technical-section {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
}

.technical-section .fieldset__legend {
  background: #f8f9fa;
  padding: 1rem 1.5rem;
  margin: 0;
  border-bottom: 1px solid #e9ecef;
  font-weight: 600;
  color: #495057;
}

.technical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0;
  padding: 0;
}

.tech-group {
  padding: 1.5rem;
  border-right: 1px solid #f8f9fa;
}

.tech-group:last-child {
  border-right: none;
}

.tech-group h4 {
  color: #007bff;
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-group h4::before {
  content: "⚙️";
  font-size: 1.2rem;
}

.tech-group dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  align-items: center;
}

.tech-group dt {
  font-weight: 500;
  color: #495057;
  font-size: 0.9rem;
}

.tech-group dd {
  margin: 0;
  color: #007bff;
  font-weight: 600;
}

/* === CHARGING INFO CARDS === */
.charging-info {
  margin-top: 1.5rem;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.info-card--positive {
  border-left: 4px solid #28a745;
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.info-card h5 {
  margin: 0 0 0.5rem 0;
  color: #155724;
  font-size: 1rem;
}

.info-card p {
  margin: 0;
  color: #155724;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* === SIDEBAR WIDGETS === */
.availability-widget,
.weather-widget {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
}

.availability-status,
.weather-info {
  padding: 1.25rem;
}

.availability-status h4,
.weather-info h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* === PRICING SECTION === */
.pricing-section {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.pricing-table-wrapper {
  overflow-x: auto;
  margin: 1rem 0;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.pricing-table th,
.pricing-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.pricing-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #495057;
}

.pricing-table tr:hover {
  background: #f8f9fa;
}

/* === FAQ SECTION === */
.faq-section {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.faq-item {
  border-bottom: 1px solid #f8f9fa;
  transition: all 0.2s ease;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  padding: 1rem 1.5rem;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  color: #007bff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.faq-question::after {
  content: "▼";
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(180deg);
}

.faq-question:hover {
  background: #f8f9fa;
  color: #0056b3;
}

.faq-answer {
  padding: 0 1.5rem 1rem 1.5rem;
  color: #495057;
  line-height: 1.6;
  border-top: 1px solid #f8f9fa;
}

/* === ACTIONS SECTION === */
.supercharger-actions {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.button {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.9rem;
}

.button--primary {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}

.button--primary:hover {
  background: #0056b3;
  border-color: #0056b3;
  text-decoration: none;
  color: #fff;
}

.button--secondary {
  background: #6c757d;
  color: #fff;
  border-color: #6c757d;
}

.button--secondary:hover {
  background: #5a6268;
  border-color: #5a6268;
  text-decoration: none;
  color: #fff;
}

/* === RESPONZIVNÍ DESIGN === */

/* Tablet layout (768px - 1023px) */
@media (max-width: 1023px) {
  .supercharger-top-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .quick-info-items {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .technical-grid {
    grid-template-columns: 1fr;
  }
  
  .tech-group {
    border-right: none;
    border-bottom: 1px solid #f8f9fa;
  }
  
  .tech-group:last-child {
    border-bottom: none;
  }
  
  .info-cards {
    grid-template-columns: 1fr;
  }
}

/* Mobile layout (max 767px) */
@media (max-width: 767px) {
  .supercharger-detail {
    padding: 0 0.75rem;
  }
  
  .quick-info-items {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .info-card {
    padding: 1rem;
  }
  
  .info-icon {
    font-size: 2rem;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .button {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
  
  .tech-group dl {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  
  .tech-group dt {
    font-weight: 600;
    color: #007bff;
  }
  
  .faq-question {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
  
  .faq-answer {
    padding: 0 1rem 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .pricing-table {
    font-size: 0.8rem;
  }
  
  .pricing-table th,
  .pricing-table td {
    padding: 0.5rem 0.25rem;
  }
}

/* Extra small mobile (max 480px) */
@media (max-width: 480px) {
  .supercharger-detail {
    padding: 0 0.5rem;
  }
  
  .info-card {
    padding: 0.75rem;
  }
  
  .technical-section,
  .pricing-section,
  .faq-section {
    margin: 1rem 0;
  }
  
  .tech-group,
  .availability-status,
  .weather-info {
    padding: 1rem;
  }
}

/* === PRINT STYLES === */
@media print {
  .supercharger-top-section {
    grid-template-columns: 1fr;
  }
  
  .quick-info-items {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .info-card {
    box-shadow: none;
    border: 1px solid #000;
  }
  
  .faq-answer {
    display: block !important;
  }
  
  .button,
  .availability-widget,
  .weather-widget {
    display: none;
  }
}

/* === HIGH CONTRAST MODE === */
@media (prefers-contrast: high) {
  .info-card,
  .technical-section,
  .pricing-section,
  .faq-section {
    border: 2px solid #000;
  }
  
  .button {
    border: 2px solid #000;
  }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  .info-card,
  .faq-question,
  .button {
    transition: none;
  }
  
  .info-card:hover {
    transform: none;
  }
}