/* Widget container */
#wpwf-container {
  width: 100%;
  max-width: 1000px;
  margin: auto;
  font-family: system-ui, sans-serif;
  padding: 1rem;
}

/* Widget layout - side by side */
.wpwf-widget.wpwf-side {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: stretch;
}

/* Base tile style */
.wpwf-tile {
  background: #3C5759;
  color: var(--wpwf-custom-text, #ffffff);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 0 12px rgba(0,0,0,0.25);
}

/* First tile: fixed square box */
.wpwf-current {
  width: 160px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.wpwf-current img {
  width: 64px;
  height: 64px;
  filter: brightness(0) invert(1);
}

.wpwf-condition {
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

/* Second tile: flexible info panel */
.wpwf-details {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  gap: 1rem;
  position: relative;
}

.wpwf-col {
  flex: 1 1 120px;
  min-width: 120px;
  text-align: center;
}

.wpwf-city {
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 0.3rem;
}

.wpwf-temp {
  font-size: 2.5rem;
  font-weight: 700;
}

.wpwf-highlow {
  font-size: 0.95rem;
  opacity: 0.8;
}

.wpwf-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 0.15rem;
  display: block;
}

.wpwf-time {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.wpwf-tides {
  font-size: 0.9rem;
  line-height: 1.4;
}

.wpwf-moon-icon {
  width: 48px;
  height: 48px;
  margin: auto;
  filter: brightness(0) invert(1);
}

/* Theme classes */
.wpwf-theme-dark .wpwf-widget { --wpwf-bg: #1a1a1a; }
.wpwf-theme-light .wpwf-widget { --wpwf-bg: #f2f2f2; color: #222; }
.wpwf-theme-ocean .wpwf-widget { --wpwf-bg: #012a4a; }
.wpwf-theme-custom .wpwf-widget { --wpwf-bg: var(--wpwf-custom-bg, #3C5759); }

@media (max-width: 800px) {
  .wpwf-widget.wpwf-side {
    flex-direction: column;
    align-items: stretch;
  }
  .wpwf-current {
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: start;
    gap: 1rem;
  }
  .wpwf-current img {
    width: 48px;
    height: 48px;
  }
  .wpwf-details {
    flex-direction: column;
    align-items: center;
  }
  .wpwf-col {
    width: 100%;
  }
}