/* Reset and base */
body {
  margin: 0; padding: 10px;
  background: transparent;
  font-family: 'Satoshi', sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 100vh;
}

/* Widget */
.widget {
  background-color: #f4dfeb;
  border-radius: 22px;

  padding: 12px;

  width: 320px;
  height: auto;

  box-shadow:
    0 12px 30px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.4);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-sizing: border-box;

  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  gap: 6px;

  text-align: center;
  color: #000;
  font-size: 0.8rem;
  text-transform: lowercase;

  user-select: none;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
  theme-color: #ffffff;
}
.widget:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.5);
}

/* Theme colors */
.widget.pink { background-color: #f4dfeb; color: #60355c; }
.widget.beige { background-color: #faebdd; color: #5d4c3a; }
.widget.blue { background-color: #ddebf1; color: #4b5c74; }
.widget.green { background-color: #ddedea; color: #5b6c5a; }
.widget.black { background-color: #17171a; color: #f5f3f1; }
.widget.white { background-color: #f8f6f3; color: #252225; }

.hidden {
  display: none !important;
}

.usage-tip {
  font-size: 12px;
  line-height: 1.4;

  width: 260px;

  background: rgba(255,255,255,0.75);

  padding: 14px;

  border-radius: 16px;

  box-shadow: 0 10px 24px rgba(0,0,0,0.08);

  text-align: center;
}

/* Buttons base */
.btn {
  cursor: pointer;

  width: 56px;
  height: 56px;

  border-radius: 18px;

  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);

  box-shadow: 0 10px 22px rgba(0,0,0,0.08);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 4px;

  transition: transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.05);
}
.top-left-controls {
  position: relative; /* 🔥 THIS IS WHAT YOU WERE MISSING */
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;

  margin: 10px 0 6px;
}
/* Location button - solid white circle */
.location-btn {
  background: white;
  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.location-btn svg {
  width: 18px;
  height: 18px;
  fill: #000;
}

/* Theme toggle button - transparent circle with white border */
.theme-toggle-btn {
  width: 20px;
  height: 20px;

  border: 2px solid white;

  background-color: var(--theme-color, #f4dfeb);

  border-radius: 50%;

  box-sizing: border-box;
}

/* Theme options dropdown container */
.theme-options {
  position: absolute;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 12px;

  padding: 16px;

  border-radius: 18px;

  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);

  box-shadow: 0 18px 40px rgba(0,0,0,0.12);

  z-index: 20;
}

/* title inside popup */
.theme-options::before {
  content: "select theme";
  font-size: 11px;
  opacity: 0.6;
}

/* row of circles */
.theme-options .themes-row {
  display: flex;
  gap: 10px;
}

/* circles */
.theme-circle {
  width: 22px;
  height: 22px;

  border-radius: 50%;

  cursor: pointer;

  border: 2px solid rgba(0,0,0,0.08);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-circle:hover {
  transform: scale(1.25);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}
.theme-circle.pink {
  background-color: #f4dfeb;
}

.theme-circle.beige {
  background-color: #faebdd;
}

.theme-circle.blue {
  background-color: #ddebf1;
}

.theme-circle.green {
  background-color: #ddedea;
}

.theme-circle.black {
  background: #17171a;
}

.theme-circle.white {
  background: #f8f6f3;
  border: 1px solid rgba(0,0,0,0.08);
}
.theme-circle.active {
  border: 2px solid #333;
  transform: scale(1.15);
}

.builder-ui {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 10px;
}

.weather-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 2px;

  width: 100%;
}

/* Weather icon */
#weatherIcon {
  width: 72px;
  height: 72px;

  border-radius: 16px;

  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.15));

  transform: scale(1);
}

/* Text styling */
#locationName {
  font-weight: 600;
  font-size: 0.85rem;
  opacity: 0.75;
  letter-spacing: 0.4px;
  margin: 0;
}

#temperature {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

#description {
  font-size: 0.75rem;
  opacity: 0.65;
  margin: 0;
}

/* City input styling */
.city-input {
  position: absolute;
  top: 10px;
  left: 50px;
  width: 100px;
  padding: 4px 6px;
  font-size: 0.75rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  color: #333;
  outline: none;
  user-select: auto;
  transition: opacity 0.25s ease;
  z-index: 11;
}
.setup-area {
  margin-top: 10px;
  text-align: center;
}

.copy-btn {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  background: #ffffff;
  color: #444;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}

.copy-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.copy-message {
  margin-top: 6px;
  font-size: 12px;
  color: #888;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.copy-message.show {
  opacity: 1;
}

.hidden {
  display: none;
}
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.location-popup {
  position: absolute;
  top: 70px;
  left: 0;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 8px;

  padding: 14px;
  width: 180px;

  border-radius: 18px;

  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);

  box-shadow: 0 18px 40px rgba(0,0,0,0.12);

  z-index: 50;
}

.location-title {
  font-size: 10px;
  opacity: 0.6;
  text-transform: lowercase;
}

.location-popup .city-input {
  position: static;
  width: 100%;
  text-align: center;

  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1);

  padding: 6px;
}
.widget-header {
  font-size: 15px;
  font-weight: 600;

  letter-spacing: 0.6px;

  padding: 8px 16px;

  border-radius: 999px;

  background: linear-gradient(
    to right,
    rgba(255,255,255,0.9),
    rgba(255,255,255,0.7)
  );

  backdrop-filter: blur(14px);

  box-shadow: 0 10px 24px rgba(0,0,0,0.08);

  text-align: center;

  color: #444;

  margin-bottom: 8px;
}

.footer-links {
  margin-top: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  font-size: 11px;

  opacity: 0.65;
}

.footer-link {
  text-decoration: none;
  color: inherit;

  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.divider {
  opacity: 0.4;
}

.font-option {
  font-size: 12px;
  padding: 6px 10px;

  border-radius: 10px;

  cursor: pointer;

  background: rgba(255,255,255,0.6);

  transition: all 0.2s ease;
}

.font-option:hover {
  transform: scale(1.05);
  background: rgba(255,255,255,0.9);
}
.font-option[data-font="default"] {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.font-option[data-font="serif"] {
  font-family: Georgia, serif;
}

.font-option[data-font="mono"] {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.widget.font-default {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.widget.font-serif {
  font-family: Georgia, serif;
}

.widget.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.weekly-widget {
  width: 320px;   /* ✨ wider = room for 7 days */
  height: auto;   /* ✨ let it grow naturally */

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 10px;

  padding: 14px;
  box-sizing: border-box;
}

/* location */
#locationName {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.75;
  margin: 0;
  text-transform: lowercase;
}

.weekly-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;

  width: 100%;
}
.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 3px;

  padding: 6px 4px;

  border-radius: 12px;

  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(10px);

  transition: all 0.2s ease;
}

.day:hover {
  transform: scale(1.05);
}

.day {
  padding: 3px;
  gap: 1px;
}

.day-name {
  font-size: 0.5rem;
}

.day-temp {
  font-size: 0.6rem;
}

.day-icon {
  width: 16px;
  height: 16px;
}
.today {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.9);

  transform: scale(1.08);

  box-shadow:
    0 6px 16px rgba(0,0,0,0.15),
    0 0 12px rgba(255,255,255,0.5);
}
.location-block {
  width: 100%;
  text-align: left;

  display: flex;
  flex-direction: column;
  gap: 2px;

  padding: 2px 4px;
}

#cityName {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0;
}

#stateName {
  font-size: 0.6rem;
  opacity: 0.6;
  margin: 0;
  text-transform: lowercase;
}

.location-divider {
  width: 100%;
  height: 1px;

  margin-top: 4px;
  margin-bottom: 6px;

  background: rgba(0,0,0,0.08);
}

.widget.pink .location-divider {
  background: linear-gradient(to right, #ffb6d5, transparent);
}

.widget.blue .location-divider {
  background: linear-gradient(to right, #9fd3ff, transparent);
}

.widget.green .location-divider {
  background: linear-gradient(to right, #a8e6cf, transparent);
}

.widget.beige .location-divider {
  background: linear-gradient(to right, #f3d1a7, transparent);
}

.live-date {
  font-size: 12px;
  opacity: 0.7;
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.copy-message.hidden {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.copy-message.show {
  opacity: 1;
  transform: translateY(0);
  transition: 0.25s ease;
}
