.af-weather-wrapper {
  font-family: 'Vazir', Tahoma, sans-serif;
  max-width: 100%;
  width: 100%;
  margin: 40px auto;
  padding: 0 10px;
  direction: rtl;
  box-sizing: border-box;
}

.af-card {
  display: flex;
  flex-direction: row;
  background: #f6f7f9;
  border-radius: 14px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.04);
  margin-bottom: 25px;
  overflow: hidden;
  position: relative;
  width: 100%;
  min-height: 240px;
}

.af-col {
  flex: 1;
  padding: 20px;
  box-sizing: border-box;
  border-left: 1px solid #e0e0e0;
  min-width: 0;
}

.af-col:last-child {
  border-left: none;
}

.af-col:nth-child(2) {
  background: #fdfdfd;
}

.af-col:nth-child(3) {
  background: #f3f3f3;
  font-size: 13.5px;
}

.af-col h4 {
  font-size: 15px;
  margin-bottom: 15px;
  color: #333;
  border-bottom: 1px solid #ccc;
  padding-bottom: 6px;
}

.af-metric {
  font-size: 14px;
  margin-bottom: 8px;
  border-bottom: 1px dashed #ddd;
  padding-bottom: 4px;
  color: #444;
}

.af-hour {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 10px;
  padding: 0 5px;
}

.af-icon {
  width: 60px;
  height: 60px;
}

.af-temp {
  font-size: 28px;
  font-weight: bold;
  margin: 10px 0;
  color: #ffffff;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.85);
}

.af-desc {
  font-size: 14px;
  color: #e0e0e0;
  margin-top: 5px;
  text-shadow: 0 0 3px rgba(0,0,0,0.7);
}

/* فونت تاریخ با هاله زرد نرم و خوانا */
.af-date-text {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 4px 0;
  text-align: center;
  user-select: none;
  text-shadow:
    0 0 5px #f1c40f,
    0 0 10px #f1c40f,
    0 0 15px #f1c40f,
    0 0 20px #f39c12,
    0 0 30px #f39c12;
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
  .af-card {
    flex-direction: column;
    width: 100%;
    margin: auto;
  }
  .af-col {
    border-left: none;
    border-top: 1px solid #eee;
    padding: 15px 12px;
  }
  .af-col:first-child {
    border-top: none;
  }
  .af-hour {
    justify-content: flex-start;
    gap: 12px;
  }
  .af-temp {
    font-size: 24px;
  }
  .af-metric {
    font-size: 13.5px;
  }
  .af-col h4 {
    text-align: right;
    font-size: 14px;
  }
  .af-icon {
    width: 40px;
    height: 40px;
  }
}

.af-col.af-visual {
  background-size: cover;
  background-position: center;
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.af-col.af-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.af-col.af-visual * {
  position: relative;
  z-index: 2;
  text-shadow: 0 0 5px rgba(0,0,0,0.9);
}

/* تصاویر پس‌زمینه آب و هوا برای هر نوع */
.weather-01d { background-image: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb'); }
.weather-01n { background-image: url('https://images.unsplash.com/photo-1503264116251-35a269479413'); }
.weather-02d { background-image: url('https://images.unsplash.com/photo-1527766833261-b09c3163a791'); }
.weather-02n { background-image: url('https://images.unsplash.com/photo-1534296000163-8a6f15a6c6df'); }
.weather-03d, .weather-03n { background-image: url('https://images.unsplash.com/photo-1501630834273-4b5604d2ee31'); }
.weather-09d, .weather-09n, .weather-10d, .weather-10n { background-image: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d'); }
.weather-13d, .weather-13n { background-image: url('https://images.unsplash.com/photo-1516455590571-18256e5bb9ff'); }
.weather-50d, .weather-50n { background-image: url('https://images.unsplash.com/photo-1533575252238-267f0dc94959'); }

/* انیمیشن آیکن */
.animated-icon {
  animation: floaty 3s ease-in-out infinite;
}

@keyframes floaty {
  0%   { transform: translateY(0px); opacity: 0.95; }
  50%  { transform: translateY(-6px); opacity: 1; }
  100% { transform: translateY(0px); opacity: 0.95; }
}

/* افکت بارش برف */
.af-col.af-visual.weather-13d::after,
.af-col.af-visual.weather-13n::after,
.af-col.af-visual.weather-09d::after,
.af-col.af-visual.weather-09n::after,
.af-col.af-visual.weather-10d::after,
.af-col.af-visual.weather-10n::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('https://assets.codepen.io/1462889/snow-fall.gif');
  background-repeat: repeat;
  background-size: cover;
  opacity: 0.3;
  z-index: 2;
  pointer-events: none;
}
