/**
 * Estilos para los widgets de Argentina
 */

/* Estilos comunes */
.argentina-dollar-container,
.argentina-weather-container {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f8f8;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  max-width: 900px;
  width: 100%;
  font-size: 14px;
}

.argentina-dollar-container {
  margin-bottom: 10px;
}

.argentina-weather-container {
  margin-bottom: 15px;
}

/* Estilos del widget de dólar */
.dollar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #f2f2f2;
  border-bottom: 1px solid #e5e5e5;
}

.dollar-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.dollar-updated {
  font-size: 12px;
  color: #666;
}

.dollar-rates {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 15px;
  background-color: #fff;
}

.dollar-rate {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dollar-divider {
  width: 1px;
  height: 40px;
  background-color: #e5e5e5;
}

.rate-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

.rate-value {
  font-size: 20px;
  font-weight: 600;
  color: #28a745;
}

/* Estilos del widget de clima */
.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #f2f2f2;
  border-bottom: 1px solid #e5e5e5;
}

.weather-location {
  display: flex;
  flex-direction: column;
}

.weather-location h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.weather-subtitle {
  font-size: 10px;
  color: #666;
  text-transform: uppercase;
}

.weather-current {
  display: flex;
  align-items: center;
}

.weather-icon {
  width: 40px;
  height: 40px;
  margin-right: 8px;
}

.weather-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.weather-temp {
  display: flex;
  align-items: baseline;
  margin-right: 8px;
}

.temp-value {
  font-size: 24px;
  font-weight: 600;
  color: #333;
}

.temp-unit {
  font-size: 14px;
  color: #666;
  margin-left: 2px;
}

.weather-desc {
  font-size: 12px;
  color: #666;
  max-width: 80px;
}

.weather-forecast {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  background-color: #fff;
}

.weather-day {
  flex: 1;
  text-align: center;
  padding: 5px 2px;
}

.day-name {
  font-size: 12px;
  font-weight: 500;
  color: #333;
  margin-bottom: 5px;
}

.day-icon {
  width: 24px;
  height: 24px;
  margin: 0 auto 5px;
}

.day-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.day-temps {
  display: flex;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
}

.temp-max {
  color: #e53935;
  font-weight: 500;
}

.temp-min {
  color: #1e88e5;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .argentina-dollar-container,
  .argentina-weather-container {
    max-width: 100%;
    margin-left: 10px;
    margin-right: 10px;
  }
  
  .dollar-header,
  .weather-header {
    padding: 8px 10px;
  }
  
  .dollar-title h3,
  .weather-location h3 {
    font-size: 14px;
  }
  
  .dollar-updated {
    font-size: 10px;
  }
  
  .rate-value {
    font-size: 18px;
  }
  
  .weather-subtitle {
    font-size: 9px;
  }
  
  .weather-icon {
    width: 32px;
    height: 32px;
  }
  
  .temp-value {
    font-size: 20px;
  }
  
  .temp-unit {
    font-size: 12px;
  }
  
  .weather-desc {
    font-size: 10px;
    max-width: 60px;
  }
}

@media (max-width: 576px) {
  .dollar-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .dollar-updated {
    margin-top: 5px;
  }
  
  .weather-forecast {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 5px;
  }
  
  .weather-day {
    min-width: 50px;
  }
  
  .day-name {
    font-size: 11px;
  }
  
  .day-temps {
    font-size: 11px;
  }
}

/* Compatibilidad con Woodmart */
.woodmart-footer .argentina-dollar-container,
.woodmart-footer .argentina-weather-container {
  margin-bottom: 10px;
  background-color: transparent;
  box-shadow: none;
}

.woodmart-footer .dollar-header,
.woodmart-footer .weather-header {
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.woodmart-footer .dollar-title h3,
.woodmart-footer .weather-location h3 {
  color: #fff;
}

.woodmart-footer .dollar-updated,
.woodmart-footer .weather-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.woodmart-footer .dollar-rates,
.woodmart-footer .weather-forecast {
  background-color: transparent;
}

.woodmart-footer .rate-label {
  color: rgba(255, 255, 255, 0.7);
}

.woodmart-footer .rate-value {
  color: #4cd964;
}

.woodmart-footer .dollar-divider {
  background-color: rgba(255, 255, 255, 0.1);
}

.woodmart-footer .temp-value {
  color: #fff;
}

.woodmart-footer .temp-unit {
  color: rgba(255, 255, 255, 0.6);
}

.woodmart-footer .weather-desc {
  color: rgba(255, 255, 255, 0.8);
}

.woodmart-footer .day-name {
  color: #fff;
}

.woodmart-footer .temp-max {
  color: #ff7675;
}

.woodmart-footer .temp-min {
  color: #74b9ff;
}