/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { 
  height: 100%; 
  overflow: hidden;
  background: #0a0a0f; 
  color: #fff; 
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
}

/* Scrollbar Hidden */
::-webkit-scrollbar { display: none; }
* { -ms-overflow-style: none; scrollbar-width: none; }

/* Material Icons configuration */
.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  transition: all 0.3s ease;
}

.material-symbols-rounded.filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Liquid Glass */
.glass { 
  background: rgba(255,255,255,0.04); 
  backdrop-filter: blur(20px); 
  -webkit-backdrop-filter: blur(20px); 
  border: 1px solid rgba(255,255,255,0.08); 
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05); 
}
.glass-strong {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Skeleton Preloader */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

/* Snap Scroll Container */
.snap-container {
  height: 100vh;
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding-bottom: calc(56px + env(safe-area-inset-bottom));
}
.snap-item {
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
}

/* Content Card */
.content-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.15;
  background: radial-gradient(circle at center, var(--card-color, #0090ea) 0%, transparent 70%);
}

.content-card-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) 20px calc(80px + env(safe-area-inset-bottom)) 20px;
}

.content-gradient-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(10,10,15,0.8) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.content-gradient-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(10,10,15,1) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.content-text {
  flex-grow: 1;
  overflow-y: auto;
  font-size: 1.1rem;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  margin-top: auto;
  margin-bottom: 20px;
  max-height: 50vh;
}

/* Heatmap Grid */
.heatmap-grid { 
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  grid-auto-flow: column;
  gap: 3px; 
  overflow-x: auto;
  padding-bottom: 10px;
}
.heatmap-cell { width: 12px; height: 12px; border-radius: 2px; position: relative; }
.heatmap-cell.empty { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.04); }
.heatmap-cell.level-1 { background: rgba(0,144,234,0.3); }
.heatmap-cell.level-2 { background: rgba(0,144,234,0.5); }
.heatmap-cell.level-3 { background: rgba(0,144,234,0.7); }
.heatmap-cell.level-4 { background: #0090EA; box-shadow: 0 0 8px rgba(0,144,234,0.5); }

/* Heatmap Tooltip */
.heatmap-cell:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #1a1a25;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Toast */
.toast {
  transform: translateY(-150%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Like Animation */
@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.like-btn.active {
  color: #ff3366;
}
.like-btn.active .material-symbols-rounded {
  animation: heartPop 0.3s ease-out forwards;
}

/* Forms */
.input-field {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  transition: all 0.3s;
}
.input-field:focus {
  outline: none;
  border-color: #0090EA;
  box-shadow: 0 0 12px rgba(0,144,234,0.3);
  background: rgba(255,255,255,0.08);
}

.btn-primary {
  background: linear-gradient(135deg, #0090EA, #4A9CC2);
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 144, 234, 0.4);
}
.btn-primary:active {
  transform: scale(0.98);
}

/* Interest Chips */
.interest-chip {
  transition: all 0.3s;
  cursor: pointer;
}
.interest-chip.selected {
  background: rgba(0,144,234,0.2);
  border-color: #0090EA;
  box-shadow: 0 0 15px rgba(0,144,234,0.2);
}

/* Page Transitions */
.page-enter {
  opacity: 0;
  transform: scale(0.98) translateY(10px);
}
.page-enter-active {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: opacity 300ms, transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.page-exit {
  opacity: 1;
}
.page-exit-active {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 200ms, transform 200ms ease-in;
}
