/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.5s ease-in-out;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* ===== Dark Mode (default) ===== */
@media (prefers-color-scheme: dark) {
  body {
    background: #0a0a0a;
    color: #ffffff;
  }

  .content p,
  .hint-arrow,
  .description p {
    color: #888;
  }

  .glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 4px 20px rgba(0, 0, 0, 0.3);
  }

  .glass:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),
      0 6px 25px rgba(0, 0, 0, 0.4);
  }

  .calendar {
    background: white;
    color: #333;
  }

  .calendar-date {
    color: #333;
  }
}

/* ===== Light Mode ===== */
@media (prefers-color-scheme: light) {
  body {
    background: #f9f9f9;
    color: #111;
  }

  .content p,
  .hint-arrow,
  .description p {
    color: #444;
  }

  .glass {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8),
      0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .glass:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 6px 25px rgba(0, 0, 0, 0.15);
  }

  .calendar {
    background: #333;
    color: #f1f1f1;
  }

  .calendar-date {
    color: #f1f1f1;
  }
}

main {
  min-height: 100vh;
  padding: 80px 40px 40px;
  position: relative;
}

.content {
  max-width: 600px;
}

.content h1 {
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 0.9;
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
}

.content p {
  font-size: 1.1rem;
  color: #888;
  font-weight: 400;
  line-height: 1.5;
}

.hint-arrow {
  position: fixed;
  bottom: 180px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 0.8rem;
  font-weight: 400;
  text-align: center;
  line-height: 1.2;
  animation: float 3s ease-in-out infinite;
  transition: opacity 0.3s ease;
  z-index: 50;
  pointer-events: none;
}

@keyframes float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0px);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

svg#filters {
  position: absolute;
  width: 0;
  height: 0;
}

.glass {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  height: 80px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: url("#SphereMapTest");
  -webkit-backdrop-filter: url("#SphereMapTest");
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  cursor: grab;
  z-index: 1000;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  will-change: transform;
}

.glass:hover {
  transform: translateX(-50%) scale(1.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 6px 25px rgba(0, 0, 0, 0.4);
}

.glass.grabbing {
  cursor: grabbing;
  transform: translateX(-50%) scale(0.98);
  transition: none;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 24px;
  flex-shrink: 0;

  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.25);
}

.finder {
  background: linear-gradient(135deg, #4a9eff 0%, #1976d2 100%);
  color: white;
}

.apps {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  color: white;
}

.editor {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.calendar {
  background: white;
  color: #333;
  flex-direction: column;
  font-weight: 600;
  padding: 6px;
}

.calendar i {
  font-size: 16px;
  color: #ff3b30;
  margin-bottom: 8px;
}

.calendar-date {
  font-size: 12px;
  line-height: 1;
  color: #333;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.description {
  position: fixed;
  bottom: 40px;
  left: 40px;
  right: 40px;
  max-width: 500px;
  z-index: 10;
}

.description p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
  font-weight: 400;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

/* Mobile */
@media (max-width: 768px) {
  main {
    padding: 60px 20px 20px;
  }

  .content h1 {
    font-size: 3.5rem;
  }

  .content p {
    font-size: 1rem;
  }

  .app-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .calendar i {
    font-size: 14px;
  }

  .calendar-date {
    font-size: 16px;
    bottom: 6px;
  }

  .description {
    position: static;
    margin-top: 60px;
    max-width: none;
  }

  .hint-arrow {
    bottom: 140px;
  }
}

@media (max-width: 480px) {
  .content h1 {
    font-size: 2.8rem;
  }

  .glass {
    height: 70px;
    gap: 4px;
    padding: 8px 10px;
  }

  .app-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .calendar i {
    font-size: 12px;
  }

  .calendar-date {
    font-size: 14px;
    bottom: 5px;
  }
}
