/* ==========================================================================
   LibyaPress Premium - Widgets Stylesheet
   ========================================================================== */

.widgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.widget-card {
  background: rgba(10, 74, 130, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.widget-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #d4af37, #0ea5e9);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.widget-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  background: rgba(10, 74, 130, 0.3);
}

.widget-card:hover::before {
  opacity: 1;
}

.widget-card h3 {
  font-size: 1.3rem;
  color: #f8fafc;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.8rem;
}

.widget-value {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.widget-detail {
  font-size: 1rem;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.widget-detail:last-child {
  border-bottom: none;
}

.widget-error {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.city-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #38bdf8;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 2rem;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.1);
}

.refresh-time {
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: 3rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

/* Sidebar Specific Styles */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar .widget-card {
  padding: 1.2rem;
}

.sidebar .widget-card h3 {
  font-size: 1.1rem;
}

.sidebar .widget-value {
  font-size: 1.5rem;
}

.sidebar-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #f8fafc;
}
