/* ==========================================================================
   Mausam 3D Depth, Parallax Tilt & Offset-White Tactile Elements
   ========================================================================== */

/* Base 3D Card Architecture */
.card-3d {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.card-3d:hover {
  box-shadow: var(--shadow-card-hover);
}

/* Dynamic Specular Glare Reflection on 3D Tilt */
.card-glare {
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  mix-blend-mode: overlay;
  z-index: 10;
}

/* ==========================================================================
   3D HERO WEATHER CARD
   ========================================================================== */
.card-hero-3d {
  background: linear-gradient(145deg, #FFFFFF 0%, #F1F5F9 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  padding: 20px 18px 16px 18px;
  margin-bottom: 16px;
  box-shadow: 
    0 20px 40px -10px rgba(15, 23, 42, 0.08),
    0 1px 3px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3D Atmospheric Orb Canvas in Background */
.weather-orb-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.hero-location-wrap {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 4px 8px;
  margin-left: -8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.hero-location-wrap:hover {
  background: rgba(255, 255, 255, 0.6);
}

.hero-location-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-location-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-condition-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

/* Temperature Display */
.hero-temp-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.hero-temp-display {
  display: flex;
  align-items: flex-start;
  line-height: 0.9;
}

.temp-big {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-main);
  background: linear-gradient(180deg, #0F172A 30%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.temp-unit {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-sky);
  margin-top: 6px;
  margin-left: 2px;
}

.hero-temp-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.hero-feels {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-hl {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

/* Quick 4-Grid Micro Stats */
.hero-quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  position: relative;
  z-index: 2;
}

.weather-stat-box {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.03);
  transition: all var(--transition-fast);
}

.weather-stat-box:hover {
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.stat-ico {
  margin-bottom: 2px;
}

.stat-v {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
}

.stat-l {
  font-size: 9px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ==========================================================================
   MULTI-CARD GRIDS
   ========================================================================== */
.grid-2-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.grid-3-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.mini-stat-card {
  margin-bottom: 0;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
}

.mini-card-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}

.mini-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.mini-val {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 3px;
  font-family: var(--font-display);
}

.mini-subtext {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.3;
}

.mini-foot {
  font-size: 9.5px;
  color: var(--brand-blue);
  margin-top: 4px;
  font-weight: 500;
}

/* Live Pulse Indicator */
.status-indicator-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-emerald);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-indicator-live::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--brand-emerald);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--brand-emerald);
  animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
}
