/* Kalkulačka dojezdu elektroaut - základní styly */

.ev-calculator-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ev-calculator-header {
  text-align: center;
  margin-bottom: 2rem;
}

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

.calculator-description {
  font-size: 1.1rem;
  color: #4a5568;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.ev-calculator-main {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

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

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

.input-label,
.select-label {
  font-weight: 600;
  color: #2d3748;
  font-size: 0.9rem;
}

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

.range-input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  font-size: 1.1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

.range-input:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.input-unit {
  position: absolute;
  right: 1rem;
  color: #718096;
  font-weight: 500;
}

.conversion-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: end;
}

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

.standard-select {
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  transition: border-color 0.2s ease;
}

.standard-select:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.conversion-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #edf2f7;
  border-radius: 50%;
  color: #4a5568;
}

.calculate-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 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;
}

.calculate-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(102, 126, 234, 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); }
}

.calculator-result {
  margin-top: 1.5rem;
  animation: fadeIn 0.5s ease;
}

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

.result-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.result-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.result-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.result-number {
  font-size: 2.5rem;
  font-weight: 700;
}

.result-unit {
  font-size: 1.2rem;
  opacity: 0.8;
}

.result-details {
  opacity: 0.9;
  font-size: 0.95rem;
}

.ev-calculator-info {
  margin-top: 2rem;
}

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

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

.standard-info {
  background: #f7fafc;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.standard-info h4 {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.standard-info p {
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.4;
}

.calculator-additional-content {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.content-placeholder {
  min-height: 200px;
  background: #f7fafc;
  border: 2px dashed #cbd5e0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  font-style: italic;
}

/* Blokový styl kalkulačky */
.ev-calculator-block {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calculator-block-header {
  margin-bottom: 1rem;
}

.block-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
}

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

.compact-input-group input {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.95rem;
}

.compact-selects {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.standard-select.compact {
  flex: 1;
  padding: 0.6rem;
  font-size: 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.compact-arrow {
  font-size: 1.2rem;
  color: #718096;
  font-weight: bold;
}

.calculate-button.compact {
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
}

.compact-result {
  text-align: center;
  padding: 1rem;
  background: #edf2f7;
  border-radius: 6px;
}

.result-number {
  display: block;
  font-size: 1.3rem;
  color: #2d3748;
}

.result-note {
  color: #718096;
  font-size: 0.8rem;
}

.calculator-block-footer {
  margin-top: 1rem;
  text-align: center;
}

.full-calculator-link {
  color: #3182ce;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.full-calculator-link:hover {
  text-decoration: underline;
}

/* Responzivní design */
@media (max-width: 768px) {
  .ev-calculator-wrapper {
    padding: 1rem;
  }
  
  .calculator-title {
    font-size: 1.6rem;
  }
  
  .conversion-controls {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .conversion-arrow {
    display: none;
  }
  
  .calculator-additional-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .standards-grid {
    grid-template-columns: 1fr;
  }
}