/* ============================================
   ARMADIO SIDEBAR WIDGETS — CSS
   ============================================ */

.armadio-sw {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.armadio-sw:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.14);
}

/* Headers */
.armadio-sw__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.armadio-sw__header-icon { font-size: 18px; }
.armadio-sw__header-title { flex: 1; }
.armadio-sw__header-city {
  background: rgba(255,255,255,0.25);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* Header colors */
.armadio-sw__header--blue   { background: linear-gradient(135deg, #2196F3, #42A5F5); }
.armadio-sw__header--purple { background: linear-gradient(135deg, #7B1FA2, #AB47BC); }
.armadio-sw__header--pink   { background: linear-gradient(135deg, #C2185B, #E91E63); }
.armadio-sw__header--green  { background: linear-gradient(135deg, #2d875c, #4caf7d); }
.armadio-sw__header--amber  { background: linear-gradient(135deg, #F57C00, #FFA726); }
.armadio-sw__header--dark   { background: linear-gradient(135deg, #1a1a2e, #16213e); }

/* Body */
.armadio-sw__body {
  padding: 16px;
  background: #fff;
}
.armadio-sw__body--dark {
  background: #1a1a2e;
  color: #e0e0e0;
}

/* === WEATHER === */
.armadio-sw__weather-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.armadio-sw__weather-temp {
  font-size: 36px;
  font-weight: 800;
  color: #1a3a2a;
  line-height: 1;
}
.armadio-sw__weather-icon {
  font-size: 42px;
}
.armadio-sw__weather-desc {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}
.armadio-sw__weather-details {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #777;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}
.armadio-sw__weather-loading,
.armadio-sw__weather-err {
  text-align: center;
  color: #999;
  font-size: 13px;
  padding: 12px 0;
}

/* === HOLIDAY === */
.armadio-sw__date {
  font-size: 14px;
  color: #7B1FA2;
  font-weight: 600;
  margin-bottom: 6px;
}
.armadio-sw__holiday-name {
  font-size: 17px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.3;
}
.armadio-sw__holiday-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

/* === NAME DAYS === */
.armadio-sw__names {
  font-size: 15px;
  font-weight: 600;
  color: #C2185B;
  line-height: 1.6;
  margin-bottom: 8px;
}
.armadio-sw__names-hint {
  font-size: 12px;
  color: #999;
}

/* === WISH === */
.armadio-sw__wish-text {
  font-size: 15px;
  font-style: italic;
  color: #333;
  line-height: 1.6;
  margin-bottom: 12px;
  min-height: 48px;
  transition: opacity 0.2s ease;
}
.armadio-sw__wish-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #F57C00, #FFA726);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}
.armadio-sw__wish-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 124, 0, 0.35);
}

/* === MOON === */
.armadio-sw__moon-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 8px;
}
.armadio-sw__moon-name {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.armadio-sw__moon-age {
  text-align: center;
  font-size: 13px;
  color: #a0a0c0;
  margin-bottom: 8px;
}
.armadio-sw__moon-desc {
  text-align: center;
  font-size: 13px;
  color: #b0b0d0;
  margin-bottom: 14px;
  line-height: 1.5;
}
.armadio-sw__moon-phases {
  display: flex;
  justify-content: center;
  gap: 4px;
  font-size: 18px;
}
.armadio-sw__moon-phase {
  opacity: 0.3;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.armadio-sw__moon-phase--active {
  opacity: 1;
  transform: scale(1.4);
}

/* === CURRENCY === */
.armadio-sw__currency-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.armadio-sw__currency-table td {
  padding: 8px 4px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
}
.armadio-sw__currency-table tr:last-child td {
  border-bottom: none;
}
.armadio-sw__currency-rate {
  text-align: right;
  font-weight: 700;
  color: #2d875c;
  font-size: 15px;
}
.armadio-sw__currency-date {
  text-align: center;
  font-size: 11px;
  color: #aaa;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

/* === CATEGORIES WIDGET (28 Categories in Sidebar) === */
.armadio-sw__badge {
  background: rgba(255,255,255,0.25);
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 700;
}
.armadio-sw__cat-filter {
  width: 100%;
  padding: 7px 12px;
  font-size: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  margin-bottom: 10px;
  outline: none;
  box-sizing: border-box;
}
.armadio-sw__cat-filter:focus {
  border-color: #2d875c;
}
.armadio-sw__cat-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}
.armadio-sw__cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 6px;
  text-decoration: none;
  color: #334155;
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.armadio-sw__cat-link:hover {
  background: #e8f5e9;
  border-color: #bbf7d0;
  color: #2d875c;
  transform: translateX(3px);
}
.armadio-sw__cat-name {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.armadio-sw__cat-num {
  font-size: 11px;
  color: #94a3b8;
  background: #ffffff;
  padding: 1px 6px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

/* === Mobile === */
@media (max-width: 768px) {
  .armadio-sw {
    border-radius: 10px;
    margin-bottom: 16px;
  }
  .armadio-sw__header {
    padding: 10px 14px;
    font-size: 13px;
  }
  .armadio-sw__body {
    padding: 14px;
  }
}
