/* Kalkulačka nabíjení elektroaut - styly */

.charging-calculator-wrapper {
   display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 20px;
  box-sizing: border-box;
}

/* SEO úvodní sekce */
.seo-intro-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid #0284c7;
}

.seo-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.seo-description {
  color: #334155;
  line-height: 1.6;
  font-size: 1rem;
}

.seo-description p {
  margin-bottom: 1rem;
}

.seo-description p:last-child {
  margin-bottom: 0;
}

.seo-description strong {
  color: #0369a1;
  font-weight: 600;
}

/* Header sekce */
.charging-calculator-header {
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
}

.calculator-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.calculator-description {
  font-size: 1.1rem;
  color: #64748b;
  line-height: 1.6;
}

/* Hlavní kalkulačka */
.charging-calculator-main {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  width: 100%;
}

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: end;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-label {
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.car-select,
.km-input,
.price-input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  transition: border-color 0.2s ease;
  background: white;
}

.car-select {
  padding-right: 2.5rem;
}

.car-select:focus,
.km-input:focus,
.price-input:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.input-unit {
  position: absolute;
  right: 1rem;
  color: #6b7280;
  font-weight: 500;
  font-size: 0.9rem;
}

.calculate-button {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  align-self: flex-start;
}

.calculate-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(2, 132, 199, 0.4);
}

.calculate-button:active {
  transform: translateY(0);
}

.calculate-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Výsledky */
.calculator-results {
  margin-top: 2rem;
  animation: fadeIn 0.5s ease;
}

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

.car-info {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  text-align: center;
}

.car-info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

.car-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  font-size: 0.95rem;
  color: #475569;
}

.stat strong {
  color: #0369a1;
}

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

.charging-option {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.charging-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

.home-charging {
  border-color: #10b981;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.home-charging h4 {
  color: #059669;
}

.public-charging {
  border-color: #0284c7;
}

.public-charging h4 {
  color: #0369a1;
}

.expensive {
  border-color: #dc2626;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.expensive h4 {
  color: #dc2626;
}

.charging-option h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-display {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.annual-cost {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
}

.monthly-cost {
  font-size: 1rem;
  color: #64748b;
}

.per-100km {
  font-size: 0.9rem;
  color: #94a3b8;
}

.savings-summary {
  margin-top: 2rem;
}

.savings-card {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.savings-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.savings-amount {
  font-size: 1.1rem;
  opacity: 0.95;
}

.savings-amount strong {
  font-size: 1.3rem;
  font-weight: 700;
}

/* Informační sekce */
.charging-info-section {
  margin-top: 3rem;
  width: 100%;
}

.info-section {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.5rem;
  text-align: center;
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.provider-info {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.provider-info h4 {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.provider-info p {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

.usage-tips {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.usage-tips h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

.tips-content ul, .exp-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tips-content li, .exp-content li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
  line-height: 1.6;
}

.tips-content li:last-child,
.exp-content li:last-child {
  border-bottom: none;
}

.tips-content li strong,
.exp-content li strong {
  color: #0369a1;
  font-weight: 600;
}

.tips-content li::before {
  content: "💡";
  margin-right: 0.5rem;
}

.exp-content li::before {
  content: "✍️";
  margin-right: 0.5rem;
}

/* Chybové zprávy */
.error-message {
  background: #fef2f2;
  color: #dc2626;
  padding: 0.75rem;
  border-radius: 6px;
  margin-top: 1rem;
  font-size: 0.9rem;
  border-left: 4px solid #dc2626;
}

/* Responzivní design */
@media (max-width: 768px) {
  .charging-calculator-wrapper {
    padding: 1rem;
  }
  
  .seo-title {
    font-size: 1.5rem;
  }
  
  .calculator-title {
    font-size: 1.6rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .car-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
  }
  
  .providers-grid {
    grid-template-columns: 1fr;
  }
  
  .calculate-button {
    width: 100%;
    justify-content: center;
  }
}