:root {
  --background: #000000;
  --background-alt: #111111;
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --accent: #00ffcc;
  --accent-dark: #00ccaa;
  --header-height: 60px;
  --footer-height: 60px;
}

/* Animações */
@keyframes neonPulse {
  0% {
    box-shadow: 0 0 5px var(--accent), 0 0 10px var(--accent);
  }
  50% {
    box-shadow: 0 0 15px var(--accent), 0 0 20px var(--accent), 0 0 30px var(--accent);
  }
  100% {
    box-shadow: 0 0 5px var(--accent), 0 0 10px var(--accent);
  }
}

@keyframes clockGlow {
  0% {
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(0, 255, 204, 0.8), 0 0 30px rgba(0, 255, 204, 0.5);
  }
  100% {
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: var(--background);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: var(--background-alt);
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}

.sync-status {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Main Content */
main {
  flex: 1;
  padding-top: calc(var(--header-height) + 20px);
  padding-bottom: calc(var(--footer-height) + 20px);
}

.main-clock-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.clock-container {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.main-clock {
  font-family: "Roboto Mono", monospace;
  font-size: 8rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
  letter-spacing: -2px;
  line-height: 1;
}

.milliseconds {
  font-family: "Roboto Mono", monospace;
  font-size: 3rem;
  font-weight: 400;
  color: var(--accent);
  opacity: 0.7;
  margin-left: 10px;
}

.date-display {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin: 20px 0 30px;
  text-align: center;
}

.mint-button {
  background-color: var(--accent);
  color: var(--background);
  font-weight: 700;
  padding: 15px 40px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  animation: neonPulse 2s infinite;
}

.mint-button:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 204, 0.3);
}

/* World Clocks */
.world-clocks {
  margin-top: 40px;
}

.world-clocks h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
  color: var(--text-secondary);
}

.clocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.city-clock {
  background-color: var(--background-alt);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.city-name {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.city-time {
  font-family: "Roboto Mono", monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

/* City Selector */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.city-selector-toggle {
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.city-selector-toggle:hover {
  background-color: rgba(0, 255, 204, 0.1);
}

.city-selector {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--background-alt);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.city-selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.city-selector-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.2rem;
}

.close-selector {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.city-selector-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.city-option {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.city-option input[type="checkbox"] {
  margin-right: 10px;
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

.city-option label {
  color: var(--text);
  cursor: pointer;
}

.city-selector-footer {
  padding: 15px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
}

/* Footer */
footer {
  background-color: var(--background-alt);
  height: var(--footer-height);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.social-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.timezone-info {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.timezone-info span {
  margin: 0 5px;
}

/* Floating Mint Button */
.floating-mint {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  transition: all 0.3s ease;
}

.mint-button-small {
  background-color: var(--accent);
  color: var(--background);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: neonPulse 2s infinite;
}

.mint-button-small:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
}

.hidden {
  opacity: 0;
  visibility: hidden;
  display: none;
}

/* Adicionar classe para o efeito de brilho do relógio */
.main-clock.glow {
  animation: clockGlow 1s ease-out;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .main-clock {
    font-size: 5rem;
  }

  .milliseconds {
    font-size: 2rem;
  }

  .date-display {
    font-size: 1rem;
  }

  .mint-button {
    padding: 12px 30px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .city-selector-content {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .city-selector-toggle {
    align-self: flex-end;
  }

  .main-clock {
    font-size: 3.5rem;
  }

  .milliseconds {
    font-size: 1.5rem;
  }

  .clocks-grid {
    grid-template-columns: 1fr;
  }

  .city-time {
    font-size: 1.5rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .sync-status {
    font-size: 0.8rem;
  }
}
