@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

.time-in-page {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  color: #172033;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.time-in-page,
.time-in-page * {
  box-sizing: border-box;
}

.time-in-page h1,
.time-in-page h2,
.time-in-page p {
  margin: 0;
}

.time-in-page .time-in-header {
  text-align: center;
  margin: 0 auto;
}

.time-in-page h1 {
  color: #111827;
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: 0;
}

.time-in-page .time-in-subtitle {
  max-width: 720px;
  margin: 14px auto 0;
  color: #526071;
  line-height: 1.6;
  font-weight: 450;
}

.time-in-page .time-in-tool {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #d9e2ef;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(255, 255, 255, 0.98)),
    #ffffff;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12), 0 2px 10px rgba(15, 23, 42, 0.05);
  animation: time-in-reveal 480ms ease-out both;
}

.time-in-page .time-in-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.time-in-page .time-in-location-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
}

.time-in-page .time-in-location {
  color: #172033;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: 0;
}

.time-in-page .time-in-helper {
  margin-top: 4px;
  color: #68768a;
  font-size: 0.92rem;
  line-height: 1.4;
}

.time-in-page .time-in-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.time-in-page .time-in-icon-pin {
  width: 42px;
  height: 42px;
  margin-right: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: #eff6ff;
}

.time-in-page .time-in-icon-pin::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 3px solid #2563eb;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.time-in-page .time-in-format-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  padding: 5px;
  border: 1px solid #d8e2ee;
  border-radius: 999px;
  background: #f8fafc;
}

.time-in-page .time-in-toggle,
.time-in-page .time-in-button {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.time-in-page .time-in-toggle {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  background: transparent;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 720;
  line-height: 1;
}

.time-in-page .time-in-toggle-active {
  background: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.24);
}

.time-in-page .time-in-toggle:focus-visible,
.time-in-page .time-in-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.32);
  outline-offset: 3px;
}

.time-in-page .time-in-clock-panel {
  position: relative;
  margin-top: 28px;
  padding: 30px 22px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #ffffff;
  text-align: center;
}

.time-in-page .time-in-icon-clock {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border: 2px solid #2563eb;
  border-radius: 50%;
  background: #eff6ff;
}

.time-in-page .time-in-icon-clock::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 13px;
  background: #2563eb;
  transform: translateY(-5px);
}

.time-in-page .time-in-icon-clock::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 2px;
  background: #2563eb;
  transform: translate(5px, 4px);
}

.time-in-page .time-in-clock {
  display: block;
  max-width: 100%;
  color: #0f172a;
  font-weight: 820;
  line-height: 1;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.time-in-page .time-in-date {
  margin-top: 12px;
  color: #475569;
  font-weight: 560;
  line-height: 1.45;
}

.time-in-page .time-in-error {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 14px;
  background: #fff1f2;
  color: #9f1239;
  line-height: 1.5;
  text-align: center;
}

.time-in-page .time-in-meta-grid {
  display: grid;
  margin-top: 22px;
}

.time-in-page .time-in-meta-item {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fbfdff;
}

.time-in-page .time-in-icon-globe,
.time-in-page .time-in-icon-calendar,
.time-in-page .time-in-icon-utc {
  width: 36px;
  height: 36px;
  margin-right: 12px;
  border-radius: 12px;
  background: #eef6ff;
  color: #1d4ed8;
}

.time-in-page .time-in-icon-globe {
  border: 2px solid #60a5fa;
  border-radius: 50%;
}

.time-in-page .time-in-icon-globe::before {
  content: "";
  width: 20px;
  height: 8px;
  border-top: 2px solid #60a5fa;
  border-bottom: 2px solid #60a5fa;
}

.time-in-page .time-in-icon-calendar::before {
  content: "";
  width: 18px;
  height: 16px;
  border: 2px solid #2563eb;
  border-top-width: 5px;
  border-radius: 4px;
}

.time-in-page .time-in-icon-utc {
  border: 1px solid #bfdbfe;
  font-size: 0.66rem;
  font-weight: 820;
  letter-spacing: 0;
}

.time-in-page .time-in-meta-label,
.time-in-page .time-in-meta-value {
  display: block;
}

.time-in-page .time-in-meta-label {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.time-in-page .time-in-meta-value {
  margin-top: 6px;
  color: #172033;
  font-weight: 720;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.time-in-page .time-in-compare {
  display: grid;
  align-items: center;
  margin-top: 22px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: #f8fbff;
}

.time-in-page .time-in-compare-item {
  min-width: 0;
}

.time-in-page .time-in-compare-label,
.time-in-page .time-in-compare-value {
  display: block;
}

.time-in-page .time-in-compare-label {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.time-in-page .time-in-compare-value {
  margin-top: 7px;
  color: #172033;
  font-weight: 760;
  line-height: 1.35;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.time-in-page .time-in-compare-divider {
  background: #dbeafe;
}

.time-in-page .time-in-actions {
  display: flex;
  align-items: center;
  margin-top: 22px;
}

.time-in-page .time-in-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 760;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.time-in-page .time-in-copy-icon {
  width: 15px;
  height: 18px;
  margin-right: 9px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.time-in-page .time-in-copy-icon::before {
  content: "";
  display: block;
  width: 15px;
  height: 18px;
  margin: -7px 0 0 5px;
  border: 2px solid currentColor;
  border-radius: 4px;
  opacity: 0.55;
}

.time-in-page .time-in-status {
  min-width: 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.45;
}

@keyframes time-in-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .time-in-page .time-in-tool {
    animation: none;
  }
}

@media (min-width: 320px) and (max-width: 374px) {
  .time-in-page {
    padding: 28px 12px;
  }

  .time-in-page h1 {
    font-size: clamp(2rem, 11vw, 2.45rem);
  }

  .time-in-page .time-in-subtitle {
    font-size: 0.96rem;
  }

  .time-in-page .time-in-tool {
    margin-top: 24px;
    padding: 16px;
    border-radius: 18px;
  }

  .time-in-page .time-in-topline,
  .time-in-page .time-in-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .time-in-page .time-in-location {
    font-size: 1.05rem;
  }

  .time-in-page .time-in-format-toggle,
  .time-in-page .time-in-button {
    width: 100%;
  }

  .time-in-page .time-in-toggle {
    flex: 1 1 0;
    min-height: 42px;
    padding: 0 10px;
  }

  .time-in-page .time-in-clock-panel {
    padding: 24px 12px;
  }

  .time-in-page .time-in-clock {
    font-size: clamp(2.35rem, 15vw, 3.1rem);
  }

  .time-in-page .time-in-date {
    font-size: 1rem;
  }

  .time-in-page .time-in-meta-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .time-in-page .time-in-meta-value {
    font-size: 0.96rem;
  }

  .time-in-page .time-in-compare {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 14px;
  }

  .time-in-page .time-in-compare-divider {
    width: 100%;
    height: 1px;
    margin: 13px 0;
  }

  .time-in-page .time-in-status {
    min-height: 22px;
    text-align: center;
  }
}

@media (min-width: 375px) and (max-width: 429px) {
  .time-in-page {
    padding: 34px 16px;
  }

  .time-in-page h1 {
    font-size: clamp(2.25rem, 10vw, 2.8rem);
  }

  .time-in-page .time-in-subtitle {
    font-size: 1rem;
  }

  .time-in-page .time-in-tool {
    margin-top: 26px;
    padding: 18px;
    border-radius: 20px;
  }

  .time-in-page .time-in-topline,
  .time-in-page .time-in-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .time-in-page .time-in-location {
    font-size: 1.1rem;
  }

  .time-in-page .time-in-format-toggle,
  .time-in-page .time-in-button {
    width: 100%;
  }

  .time-in-page .time-in-toggle {
    flex: 1 1 0;
    min-height: 43px;
  }

  .time-in-page .time-in-clock-panel {
    padding: 26px 14px;
  }

  .time-in-page .time-in-clock {
    font-size: clamp(2.8rem, 14vw, 3.7rem);
  }

  .time-in-page .time-in-date {
    font-size: 1.05rem;
  }

  .time-in-page .time-in-meta-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .time-in-page .time-in-meta-value {
    font-size: 1rem;
  }

  .time-in-page .time-in-compare {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .time-in-page .time-in-compare-divider {
    width: 100%;
    height: 1px;
    margin: 14px 0;
  }

  .time-in-page .time-in-status {
    min-height: 22px;
    text-align: center;
  }
}

@media (min-width: 430px) and (max-width: 767px) {
  .time-in-page {
    padding: 42px 20px;
  }

  .time-in-page h1 {
    font-size: clamp(2.55rem, 8vw, 3.35rem);
  }

  .time-in-page .time-in-subtitle {
    font-size: 1.05rem;
  }

  .time-in-page .time-in-tool {
    margin-top: 30px;
    padding: 22px;
    border-radius: 22px;
  }

  .time-in-page .time-in-topline,
  .time-in-page .time-in-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .time-in-page .time-in-location {
    font-size: 1.18rem;
  }

  .time-in-page .time-in-format-toggle,
  .time-in-page .time-in-button {
    width: 100%;
  }

  .time-in-page .time-in-toggle {
    flex: 1 1 0;
    min-height: 44px;
  }

  .time-in-page .time-in-clock-panel {
    padding: 30px 16px;
  }

  .time-in-page .time-in-clock {
    font-size: clamp(3.25rem, 12vw, 4.5rem);
  }

  .time-in-page .time-in-date {
    font-size: 1.12rem;
  }

  .time-in-page .time-in-meta-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .time-in-page .time-in-meta-value {
    font-size: 1.02rem;
  }

  .time-in-page .time-in-compare {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .time-in-page .time-in-compare-divider {
    width: 100%;
    height: 1px;
    margin: 15px 0;
  }

  .time-in-page .time-in-status {
    min-height: 22px;
    text-align: center;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .time-in-page {
    padding: 56px 28px;
  }

  .time-in-page h1 {
    font-size: 3.4rem;
  }

  .time-in-page .time-in-subtitle {
    font-size: 1.12rem;
  }

  .time-in-page .time-in-tool {
    margin-top: 34px;
    padding: 28px;
  }

  .time-in-page .time-in-topline {
    gap: 22px;
  }

  .time-in-page .time-in-location {
    font-size: 1.28rem;
  }

  .time-in-page .time-in-clock {
    font-size: 5.2rem;
  }

  .time-in-page .time-in-date {
    font-size: 1.2rem;
  }

  .time-in-page .time-in-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .time-in-page .time-in-meta-value {
    font-size: 1rem;
  }

  .time-in-page .time-in-compare {
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
  }

  .time-in-page .time-in-compare-divider {
    width: 1px;
    height: 100%;
  }

  .time-in-page .time-in-actions {
    justify-content: space-between;
    gap: 18px;
  }

  .time-in-page .time-in-button {
    flex: 0 0 auto;
  }

  .time-in-page .time-in-status {
    flex: 1 1 auto;
    text-align: right;
  }
}

@media (min-width: 1024px) {
  .time-in-page {
    padding: 70px 32px;
  }

  .time-in-page h1 {
    font-size: 4rem;
  }

  .time-in-page .time-in-subtitle {
    font-size: 1.15rem;
  }

  .time-in-page .time-in-tool {
    margin-top: 38px;
    padding: 32px;
  }

  .time-in-page .time-in-topline {
    gap: 26px;
  }

  .time-in-page .time-in-location {
    font-size: 1.34rem;
  }

  .time-in-page .time-in-clock {
    font-size: 6rem;
  }

  .time-in-page .time-in-date {
    font-size: 1.25rem;
  }

  .time-in-page .time-in-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .time-in-page .time-in-meta-value {
    font-size: 1.04rem;
  }

  .time-in-page .time-in-compare {
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    gap: 22px;
    padding: 20px;
  }

  .time-in-page .time-in-compare-divider {
    width: 1px;
    height: 100%;
  }

  .time-in-page .time-in-actions {
    justify-content: space-between;
    gap: 22px;
  }

  .time-in-page .time-in-button {
    flex: 0 0 auto;
  }

  .time-in-page .time-in-status {
    flex: 1 1 auto;
    text-align: right;
  }
}