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

:root {
  --bg: #0d0d0d;
  --surface: #171717;
  --surface-hover: #212121;
  --text: #ffffff;
  --text-muted: #a5a5a5;
  --border: #2b2b2b;
  --accent: #110049;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* background */

.background {
  position: fixed;
  inset: 0;
  background: radial-gradient(    circle at top,
    rgba(70, 203, 143, 0.08),
    transparent 40%
  );
  z-index: -1;
}

/* hero */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

/* clock */

.clock-section {
  text-align: center;

  margin-bottom: 55px;
}

#clock {
  font-size: clamp(5rem, 10vw, 8rem);
  font-weight: 700;
  letter-spacing: -5px;
  line-height: 1;
}

#date {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 1rem;
}

/* search */

.search-section {
  width: min(680px, 90vw);
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  height: 60px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: 0.25s;
}

.search-container:hover {
  border-color: #3a3a3a;
}

.search-container:focus-within {
  border-color: var(--accent);

  box-shadow: var(--shadow);
}

#engine-button {
  width: 58px;
  height: 58px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  transition: 0.2s;
}

#engine-button:hover {
  background: rgba(255, 255, 255, 0.05);
}

#engine-icon {
  width: 26px;
  height: 26px;
}

#search-input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  padding-right: 20px;
}

#search-input::placeholder {
  color: var(--text-muted);
}

/* favorites */

.favorites {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}


.favorite {
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.favorite i {
  width: 46px;
  height: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: 0.25s;
}


.favorite:hover i {
  transform: translateY(-4px);
  background: var(--surface-hover);
  border-color: var(--accent);
}

.favorite span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* responsive */

@media (max-width: 600px) {
  .favorites {
    gap: 18px;
  }

  .favorite i {
    width: 42px;
    height: 42px;
  }
}
