/* Lavender Sapphire Mist Color Palette */
/* Primary: #D3045D (Deep Magenta), #E484AC (Soft Rose) */
/* Secondary: #B3CED6 (Soft Blue-Gray), #927B67 (Warm Taupe) */
/* Accent: #740C08 (Dark Maroon), #523F2B (Dark Brown) */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #E0CDB2;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

.world-clock-heading {
  font-family: sans-serif;
  text-align: center;
  color: #424658;
}

.world-clock-heading a {
  margin-left: 0.5rem;
  font-family: sans-serif;
  font-size: 0.5em;
  font-style: italic;
  text-decoration: underline;
  color: #424658;
  transition: color 0.3s ease;
}

.world-clock-heading a:hover {
  color: rgb(0, 51, 255);
}

#app {
  background: #ffffff;
  margin-top: 40px;
  padding: 2rem 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(211, 4, 93, 0.15);
  text-align: center;
}

.clock-tile {
  background: #424658;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(116, 12, 8, 0.12);
  padding: 1.2rem 1rem;
  min-width: 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex: 1 1 150px;
  min-width: 130px;
  max-width: 240px;
  margin: 0.25rem;
  box-sizing: border-box;
  word-break: break-word;
  border: 1px solid rgba(211, 4, 93, 0.1);
}

.clock-tile:hover {
  transform: translateY(-4px);
}

.clock-select {
  margin-top: 0.5rem;
  width: 100%;
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid #B3CED6;
  padding: 0.4rem 0.5rem;
  background: #ffffff;
  color: #424658;
  font-size: 0.9rem;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.clock-select:hover {
  border-color: #523F2B;
}

.clock-search {
  margin-bottom: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #B3CED6;
  width: 100%;
  max-width: 100%;
  background: #ffffff;
  color: #523F2B;
  font-size: 0.9rem;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.clock-search:hover {
  border-color: #523F2B;
}

/* Responsive fixes for world clock layout */
@media (max-width: 480px) {
  #world-clock-app,
  #app {
    padding-top: 20px;
    box-sizing: border-box;
    width: 100%;
  }
}

.world-clock-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0 0.5rem;
  box-sizing: border-box;
  overflow: visible;
  margin-top: 2rem;
}

.clock-title {
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
  word-break: break-word;
  color: #E0CDB2;
  font-size: 1.5rem;
}

.clock-date {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-align: center;
  color: #B3CED6;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.clock-time-12 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  text-align: center;
  color: #E0CDB2;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.clock-time-24 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  text-align: center;
  color: #B3CED6;
  font-weight: 500;
  letter-spacing: 0.3px;
  opacity: 0.9;
}

/* Focus states for better accessibility */
.clock-search:focus,
.clock-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(211, 4, 93, 0.15);
}

/* Stack tiles vertically on very narrow screens */
@media (max-width: 340px) {
  .clock-tile {
    flex-basis: 100%;
    max-width: 100%;
  }

  .world-clock-row {
    gap: 0.6rem;
    padding: 0 0.4rem;
  }

  .clock-time-12 {
    font-size: 1.2rem;
  }

  .clock-time-24 {
    font-size: 0.9rem;
  }

  .clock-title {
    font-size: 0.95rem;
  }
}