/* ===================================
   Atmosfera Module - E-ink Editorial Style
   Premium Immersive Design v2.0
   =================================== */

/* ===== Section Container ===== */
.atmosfera-eink {
  background: linear-gradient(180deg, var(--bg-light-primary, #F8F7F5) 0%, #F1F1F1 100%);
  min-height: 100vh;
  padding: 0;
  color: var(--text-light, #333333);
  font-family: var(--font-atmosfera, 'Manrope', sans-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* ===== Horizon Curve (decorative) ===== */
.atmosfera-horizon-curve {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 1px;
  background-color: rgba(51, 51, 51, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

/* ===== Main Container ===== */
.atmosfera-container {
  max-width: 400px;
  margin: 0 auto;
  padding: var(--space-8, 2rem) var(--space-6, 1.5rem);
  padding-bottom: calc(var(--space-12, 3rem) + 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-8, 2rem);
}

/* ===== Location Header ===== */
.atmosfera-location {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(51, 51, 51, 0.65);
  margin: 0;
}

.atmosfera-location .location-name-inline {
  font-weight: 500;
}

.atmosfera-location .location-elevation-inline {
  margin-left: var(--space-2, 0.5rem);
  opacity: 0.7;
}

/* ===== Weather Icon ===== */
.atmosfera-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
}

.atmosfera-icon-container .weather-icon-inline {
  font-size: 64px;
  font-weight: 100;
  color: rgba(51, 51, 51, 0.9);
  font-variation-settings: 'FILL' 0, 'wght' 100, 'GRAD' 0, 'opsz' 48;
}

/* ===== Atmospheric Headline ===== */
.atmosfera-headline {
  font-family: var(--font-atmosfera, 'Manrope', sans-serif);
  font-size: clamp(1.5rem, 5vw, 1.75rem);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: rgba(51, 51, 51, 0.95);
  margin: 0;
  max-width: 320px;
}

.atmosfera-subheadline {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(51, 51, 51, 0.6);
  margin: calc(-1 * var(--space-4, 1rem)) 0 0 0;
}

/* ===== Separator ===== */
.atmosfera-separator {
  width: 100%;
  height: 1px;
  background-color: rgba(51, 51, 51, 0.1);
}

/* ===== Temperature Block ===== */
.atmosfera-temp-block {
  padding: var(--space-6, 1.5rem) 0;
}

.atmosfera-temp-range {
  font-family: var(--font-mono, 'Roboto Mono', monospace);
  font-size: clamp(1.75rem, 6vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(51, 51, 51, 0.9);
}

/* ===== Sunrise / Sunset ===== */
.atmosfera-sun-times {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8, 2rem);
  padding-top: var(--space-2, 0.5rem);
}

.sun-time-item {
  display: flex;
  align-items: center;
  gap: var(--space-2, 0.5rem);
  font-family: var(--font-mono, 'Roboto Mono', monospace);
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(51, 51, 51, 0.65);
}

.sun-time-item .material-symbols-outlined {
  font-size: 14px;
  font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 20;
}

/* ===== Conditions Row ===== */
.atmosfera-conditions-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4, 1rem);
}

.condition-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1, 0.25rem);
  font-size: 0.6875rem;
  font-weight: 300;
  color: rgba(51, 51, 51, 0.65);
}

.condition-item .material-symbols-outlined {
  font-size: 14px;
  font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 20;
}

/* ===== Temperature Chart ===== */
.atmosfera-chart-container {
  width: 100%;
  padding-bottom: var(--space-4, 1rem);
}

.atmosfera-chart {
  position: relative;
  width: 100%;
  height: 64px;
}

.atmosfera-chart-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(51, 51, 51, 0.4);
}

.atmosfera-chart-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  font-family: var(--font-mono, 'Roboto Mono', monospace);
  font-size: 0.75rem;
  font-weight: 300;
  margin-top: calc(-1 * var(--space-2, 0.5rem));
}

.atmosfera-chart-labels .chart-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1, 0.25rem);
}

.atmosfera-chart-labels .chart-label-time {
  color: rgba(51, 51, 51, 0.8);
}

.atmosfera-chart-labels .chart-label-temp {
  color: rgba(51, 51, 51, 0.55);
}

/* ===== Hourly Forecast ===== */
.atmosfera-hourly-forecast {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
  gap: var(--space-2, 0.5rem);
}

.atmosfera-hourly-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2, 0.5rem);
}

.atmosfera-hourly-item .material-symbols-outlined {
  font-size: 20px;
  font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
  color: rgba(51, 51, 51, 0.8);
}

.atmosfera-hourly-item .hourly-time {
  font-family: var(--font-mono, 'Roboto Mono', monospace);
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(51, 51, 51, 0.8);
}

.atmosfera-hourly-item .hourly-temp {
  font-family: var(--font-mono, 'Roboto Mono', monospace);
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(51, 51, 51, 0.55);
}

/* ===== Closing Note ===== */
.atmosfera-closing-note {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(51, 51, 51, 0.8);
  max-width: 280px;
  margin: 0;
  padding: var(--space-6, 1.5rem) 0 var(--space-4, 1rem);
}

/* ===== Timestamp ===== */
.atmosfera-timestamp {
  font-family: var(--font-mono, 'Roboto Mono', monospace);
  font-size: 0.625rem;
  font-weight: 300;
  color: rgba(51, 51, 51, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== 14-Day Forecast Section ===== */
.atmosfera-forecast-section {
  width: 100%;
  padding-top: var(--space-8, 2rem);
}

.atmosfera-forecast-title {
  font-family: var(--font-atmosfera, 'Manrope', sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(51, 51, 51, 0.55);
  margin: 0 0 var(--space-4, 1rem) 0;
}

/* Forecast cards in E-ink style */
.atmosfera-eink .forecast-container {
  display: flex;
  gap: var(--space-3, 0.75rem);
  overflow-x: auto;
  padding: var(--space-2, 0.5rem) 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.atmosfera-eink .forecast-container::-webkit-scrollbar {
  display: none;
}

.atmosfera-eink .forecast-day-card {
  flex: 0 0 auto;
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2, 0.5rem);
  padding: var(--space-3, 0.75rem);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(51, 51, 51, 0.08);
  border-radius: var(--radius-md, 4px);
}

.atmosfera-eink .forecast-day-name {
  font-family: var(--font-mono, 'Roboto Mono', monospace);
  font-size: 0.625rem;
  font-weight: 400;
  color: rgba(51, 51, 51, 0.7);
  white-space: nowrap;
}

.atmosfera-eink .forecast-day-icon {
  font-size: 1.25rem;
}

.atmosfera-eink .forecast-day-temps {
  font-family: var(--font-mono, 'Roboto Mono', monospace);
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(51, 51, 51, 0.8);
}

.atmosfera-eink .forecast-day-rain,
.atmosfera-eink .forecast-day-wind {
  font-family: var(--font-mono, 'Roboto Mono', monospace);
  font-size: 0.625rem;
  font-weight: 300;
  color: rgba(51, 51, 51, 0.5);
  display: flex;
  align-items: center;
  gap: 2px;
}

.atmosfera-eink .forecast-day-rain svg,
.atmosfera-eink .forecast-day-wind svg {
  width: 10px;
  height: 10px;
}

/* ===== Other Locations Section ===== */
.atmosfera-other-locations {
  padding: var(--space-8, 2rem) var(--space-6, 1.5rem);
  padding-bottom: calc(var(--space-12, 3rem) + 80px);
}

.atmosfera-section-title {
  font-family: var(--font-atmosfera, 'Manrope', sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(51, 51, 51, 0.55);
  margin: 0 0 var(--space-4, 1rem) 0;
  text-align: center;
}

/* Weather list cards in E-ink style */
.atmosfera-eink .weather-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 0.75rem);
}

.atmosfera-eink .weather-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(51, 51, 51, 0.08);
  border-radius: var(--radius-md, 4px);
  padding: var(--space-4, 1rem);
}

.atmosfera-eink .weather-card .location-name {
  color: rgba(51, 51, 51, 0.9);
}

.atmosfera-eink .weather-card .weather-temp {
  color: rgba(51, 51, 51, 0.8);
  font-family: var(--font-mono, 'Roboto Mono', monospace);
}

/* ===== Loading State ===== */
.atmosfera-eink .loading-container {
  text-align: center;
  padding: var(--space-8, 2rem);
}

.atmosfera-eink .loading-pulse {
  color: rgba(51, 51, 51, 0.5);
  font-size: 0.875rem;
}
