@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:ital,wght@0,400;1,600&display=swap";

/* static/css/app.css */
:root {
  color-scheme: light dark;
  --bg-page: light-dark(#ffffff, #0f172a);
  --bg-pattern: light-dark(#e5e7eb, #334155);
  --text-main: light-dark(#1e293b, #f1f5f9);
  --text-title: light-dark(#0f172a, #f8fafc);
  --bg-list: light-dark(#fefce8, #1e293b);
  --border-list: light-dark(#94a3b8, #334155);
  --bg-item: light-dark(#ffffff, #334155);
  --border-item: light-dark(#e2e8f0, #475569);
  --text-muted: light-dark(#64748b, #94a3b8);
  --space-0: 0;
  --space-px: 1px;
  --space-1: clamp(0.1875rem, 0.16rem + 0.13vw, 0.25rem);
  --space-2: clamp(0.375rem, 0.33rem + 0.25vw, 0.5rem);
  --space-3: clamp(0.5rem, 0.41rem + 0.45vw, 0.75rem);
  --space-4: clamp(0.75rem, 0.66rem + 0.45vw, 1rem);
  --space-5: clamp(0.875rem, 0.74rem + 0.68vw, 1.25rem);
  --space-6: clamp(1rem, 0.82rem + 0.9vw, 1.5rem);
  --space-8: clamp(1.25rem, 0.98rem + 1.36vw, 2rem);
  --space-10: clamp(1.5rem, 1.14rem + 1.82vw, 2.5rem);
  --space-12: clamp(1.75rem, 1.3rem + 2.27vw, 3rem);
  --space-16: clamp(2rem, 1.27rem + 3.64vw, 4rem);
  --text-xs: clamp(0.75rem, 0.71rem + 0.2vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.28vw, 1rem);
  --text-base-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.38vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);
  --text-3xl: clamp(1.875rem, 1.65rem + 1.13vw, 2.25rem);
  --text-4xl: clamp(2.25rem, 1.95rem + 1.5vw, 3rem);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
}
* {
  box-sizing: border-box;
}
body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  background-image: radial-gradient(var(--bg-pattern) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.main {
  position: relative;
  container-type: inline-size;
  container-name: iphone;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  .main__title {
    font-family: "Playfair Display", serif;
    padding: var(--space-4) var(--space-6);
    width: 100%;
    text-align: left;
    margin: 0;
    font-weight: 600;
    font-style: italic;
    color: var(--text-title);
  }
}
.theme-toggle {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 1000;
  background: var(--bg-item);
  border: 1px solid var(--border-item);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-md);
  opacity: 0.9;
  line-height: 1;
}
.theme-toggle:hover {
  opacity: 1;
  transform: scale(1.1) rotate(-15deg);
  background: var(--bg-list);
  border-color: var(--text-muted);
}
.theme-toggle:active {
  transform: scale(0.95);
}
.content {
  width: 100%;
  height: inherit;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: center;
  overflow-y: auto;
  padding-bottom: var(--space-16);
}
.aside__list {
  width: 100%;
  max-width: 32rem;
  min-height: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
  list-style: none;
  background-color: var(--bg-list);
  overflow-x: auto;
  padding: var(--space-4);
  margin: 0;
  border: 1px solid var(--border-list);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  scrollbar-width: thin;
  .element_list {
    flex-shrink: 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-item);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    font-weight: 500;
    text-align: center;
    display: flex;
    gap: var(--space-2);
    align-items: center;
    background: var(--bg-item);
    transition: transform 0.1s ease, border-color 0.1s ease;
    cursor: pointer;
    color: var(--text-main);
    &:hover {
      transform: translateY(-1px);
      border-color: var(--text-muted);
    }
    &.active {
      border-color: var(--text-main);
      background: var(--bg-page);
      font-weight: 600;
    }
    .mood-circle {
      width: 0.75rem;
      height: 0.75rem;
      border-radius: 50%;
      display: inline-block;
      border: 1px solid rgb(0 0 0 / 0.1);
    }
  }
}
.timeline-section {
  width: 100%;
  margin-top: 0.5rem;
  max-width: 32rem;
  background-color: var(--bg-item);
  border: 1px solid var(--border-item);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
}
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  &.expanded .hidden-day {
    display: flex !important;
    animation: fadeIn 0.3s ease-out forwards;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hidden-day {
  display: none !important;
}
.expand-button {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: var(--space-3);
  background: var(--bg-list);
  border: 1px dashed var(--border-list);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  margin-top: var(--space-2);
  transition: all 0.2s ease;
  &:hover {
    background: var(--bg-item);
    color: var(--text-main);
    border-style: solid;
  }
}
.timeline-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3);
  background: var(--bg-page);
  border: 1px solid var(--border-item);
  border-radius: var(--radius-md);
  transition: transform 0.1s;
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: var(--text-main);
  &:hover {
    transform: translateX(4px);
    border-color: var(--text-muted);
  }
}
.timeline-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3rem;
  border-right: 1px solid var(--border-item);
  padding-right: var(--space-3);
  .timeline-day {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-title);
  }
  .timeline-weekday {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
  }
}
.timeline-mood {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
  .mood-bubble {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 1px solid rgb(0 0 0 / 0.1);
    &.empty {
      background: transparent;
      border: 1px dashed var(--border-item);
    }
  }
  .mood-label {
    font-size: var(--text-sm);
    color: var(--text-main);
    &.empty {
      color: var(--text-muted);
      font-style: italic;
    }
  }
}
.note-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  color: var(--text-muted);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  &:hover {
    color: var(--text-main);
    background: var(--bg-list);
    transform: scale(1.1);
  }
  svg {
    display: block;
  }
}
@container iphone (max-width: 500px) {
  .aside__list {
    min-height: 3rem;
    .element_list {
      font-size: var(--text-xs);
    }
  }
}
.tooltip {
  position: fixed;
  background: var(--bg-item);
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-item);
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
}
.tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}
.social-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-item);
  padding: 14px 24px;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 200;
}
.social-toast.visible {
  transform: translateY(0);
  opacity: 1;
}
.social-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.bookmark-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--text-title);
  color: var(--bg-page);
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 1000;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bookmark-toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.instruction-badge {
  background: var(--bg-list);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-list);
  font-size: var(--text-sm);
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}
.mobile-only {
  display: none !important;
}
@media screen and (max-width: 1024px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: inline-block !important;
  }
}
.note-popover {
  position: absolute;
  opacity: 0;
  background: var(--bg-item);
  padding: 16px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  width: 280px;
  max-width: 90vw;
  z-index: 500;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
  transform: translateY(-5px);
  border: 1px solid var(--border-item);
}
.note-popover::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: var(--arrow-left, 50%);
  transform: translateX(-50%) rotate(45deg);
  width: 16px;
  height: 16px;
  background: var(--bg-item);
  border-bottom: 1px solid var(--border-item);
  border-right: 1px solid var(--border-item);
}
.note-popover.bottom::after {
  bottom: auto;
  top: -8px;
  transform: translateX(-50%) rotate(-135deg);
  border-bottom: none;
  border-right: none;
  border-top: 1px solid var(--border-item);
  border-left: 1px solid var(--border-item);
}
.popover-actions button[type=submit] {
  background: var(--text-title);
  color: var(--bg-page);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform 0.1s;
}
.popover-actions button[type=submit]:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}
.note-popover.visible {
  opacity: 1;
  transform: translateY(0);
}
.note-popover.auth-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.note-popover.auth-modal.visible {
  opacity: 1;
}
.note-popover.auth-modal::after {
  display: none;
}
.click-outside-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 499;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(2px);
}
.theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  opacity: 0.6;
  line-height: 1;
}
.theme-toggle:hover {
  opacity: 1;
  background: var(--bg-list);
  transform: scale(1.1);
}
/*# sourceMappingURL=styles.css.map */
