/* ===================================
   Atmosfera Module Styles
   Premium Immersive Design v2.0
   E-ink Inspired Weather Panel
   =================================== */

/* Module container - Light mode by default */
#module-atmosfera {
  min-height: calc(100vh - 120px);
  background: linear-gradient(180deg, #F8F7F5 0%, #F1F1F1 100%);
  color: var(--text-light-primary);
}

/* Dark mode variant */
#module-atmosfera.atmosfera--dark {
  background: var(--bg-dark-primary);
  color: var(--text-dark-primary);
}

/* ===== Main Container ===== */
.atmosfera-container {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: var(--space-6);
  overflow: hidden;
}

@media (min-width: 640px) {
  .atmosfera-container {
    padding: var(--space-8);
  }
}

@media (min-width: 768px) {
  .atmosfera-container {
    padding: var(--space-12);
  }
}

/* ===== Horizon Curve Decoration ===== */
.atmosfera-horizon {
  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;
}

.atmosfera--dark .atmosfera-horizon {
  background-color: rgba(224, 224, 224, 0.08);
}

/* ===== Content Wrapper ===== */
.atmosfera-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  max-width: 384px;
  margin: 0 auto;
  gap: var(--space-12);
}

/* ===== Location Header ===== */
.atmosfera-location {
  font-family: var(--font-atmosfera);
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  color: rgba(51, 51, 51, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

.atmosfera--dark .atmosfera-location {
  color: rgba(224, 224, 224, 0.65);
}

/* ===== Main Weather Section ===== */
.atmosfera-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
  width: 100%;
}

/* Weather Icon */
.atmosfera-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  font-size: 64px;
  color: var(--text-light-primary);
}

.atmosfera--dark .atmosfera-icon {
  color: var(--text-dark-primary);
}

/* Weather Description */
.atmosfera-description {
  font-family: var(--font-atmosfera);
  font-size: var(--text-2xl);
  font-weight: var(--weight-light);
  color: var(--text-light-primary);
  line-height: var(--leading-snug);
  letter-spacing: 0.02em;
}

.atmosfera--dark .atmosfera-description {
  color: var(--text-dark-primary);
}

.atmosfera-subtext {
  font-family: var(--font-atmosfera);
  font-size: var(--text-sm);
  font-weight: var(--weight-light);
  color: rgba(51, 51, 51, 0.65);
  margin-top: calc(-1 * var(--space-3));
}

.atmosfera--dark .atmosfera-subtext {
  color: rgba(224, 224, 224, 0.65);
}

/* ===== Temperature Display ===== */
.atmosfera-temp {
  padding: var(--space-8) 0;
}

.atmosfera-temp-value {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: var(--weight-light);
  color: rgba(51, 51, 51, 0.9);
  letter-spacing: 0.05em;
}

.atmosfera--dark .atmosfera-temp-value {
  color: rgba(224, 224, 224, 0.9);
}

/* ===== Sun Times ===== */
.atmosfera-sun {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-top: var(--space-2);
}

.atmosfera-sun-item {
  display: flex;
  align-items: center;
  gap: var(--space-1-5);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-light);
  color: rgba(51, 51, 51, 0.65);
}

.atmosfera--dark .atmosfera-sun-item {
  color: rgba(224, 224, 224, 0.65);
}

.atmosfera-sun-icon {
  font-size: var(--text-sm);
}

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

.atmosfera--dark .atmosfera-separator {
  background-color: rgba(224, 224, 224, 0.1);
}

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

.atmosfera-condition {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-atmosfera);
  font-size: var(--text-xs);
  font-weight: var(--weight-light);
  color: rgba(51, 51, 51, 0.65);
}

.atmosfera--dark .atmosfera-condition {
  color: rgba(224, 224, 224, 0.65);
}

.atmosfera-condition-icon {
  font-size: 14px;
}

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

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

.atmosfera-chart-path {
  stroke: currentColor;
  stroke-width: 1;
  fill: none;
}

/* Chart Time Labels */
.atmosfera-chart-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  margin-top: calc(-1 * var(--space-2));
}

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

.atmosfera-chart-time {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-light);
  color: var(--text-light-primary);
}

.atmosfera--dark .atmosfera-chart-time {
  color: var(--text-dark-primary);
}

.atmosfera-chart-temp {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-light);
  color: rgba(51, 51, 51, 0.65);
}

.atmosfera--dark .atmosfera-chart-temp {
  color: rgba(224, 224, 224, 0.65);
}

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

.atmosfera-hour {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.atmosfera-hour-icon {
  font-size: 20px;
}

.atmosfera-hour-time {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-light);
}

.atmosfera-hour-temp {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-light);
  color: rgba(51, 51, 51, 0.65);
}

.atmosfera--dark .atmosfera-hour-temp {
  color: rgba(224, 224, 224, 0.65);
}

/* ===== Footer Note ===== */
.atmosfera-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding-top: 0;
  padding-bottom: var(--space-12);
  width: 100%;
}

.atmosfera-note {
  font-family: var(--font-atmosfera);
  font-size: var(--text-sm);
  font-weight: var(--weight-light);
  color: var(--text-light-primary);
  text-align: center;
  padding-top: var(--space-8);
}

.atmosfera--dark .atmosfera-note {
  color: var(--text-dark-primary);
}

/* ===== Coming Soon State ===== */
.atmosfera-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: var(--space-8);
  text-align: center;
}

.atmosfera-coming-soon-icon {
  font-size: 64px;
  margin-bottom: var(--space-6);
  opacity: 0.6;
}

.atmosfera-coming-soon-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-regular);
  color: var(--text-light-primary);
  margin-bottom: var(--space-2);
}

.atmosfera--dark .atmosfera-coming-soon-title {
  color: var(--text-dark-primary);
}

.atmosfera-coming-soon-text {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: var(--weight-light);
  color: rgba(51, 51, 51, 0.65);
  max-width: 300px;
  line-height: var(--leading-relaxed);
}

.atmosfera--dark .atmosfera-coming-soon-text {
  color: var(--text-dark-muted);
}

.atmosfera-coming-soon-eta {
  margin-top: var(--space-6);
  padding: var(--space-2) var(--space-4);
  background: rgba(18, 55, 42, 0.1);
  border: 1px solid rgba(18, 55, 42, 0.2);
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: #12372A;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.atmosfera--dark .atmosfera-coming-soon-eta {
  background: rgba(17, 212, 115, 0.1);
  border-color: rgba(17, 212, 115, 0.2);
  color: var(--brand-green);
}

