/* =====================================================
   favorites.css — favorites page (redesign)
   ===================================================== */

:root {
  --bg: #08090c;
  --bg-gradient-top: #142042;
  --bg-elevated: rgba(255, 255, 255, 0.03);
  --bg-elevated-hover: rgba(255, 255, 255, 0.05);

  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);

  --text: #f5f6f8;
  --text-muted: #8a92a8;
  --text-dim: #4f6080;

  --gold: #d4af6a;
  --gold-bright: #e8c47e;
  --blue-bright: #6b94ff;
  --red-bright: #ff7878;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;

  /* Safe area tokens */
  --tg-safe-area-inset-top: 0px;
  --tg-content-safe-area-inset-top: 0px;
  --tg-safe-area-inset-bottom: 0px;
  --tg-content-safe-area-inset-bottom: 0px;
  --app-safe-area-top: max(
    env(safe-area-inset-top, 0px),
    var(--tg-safe-area-inset-top, 0px),
    var(--tg-content-safe-area-inset-top, 0px)
  );
  --app-safe-area-bottom: max(
    env(safe-area-inset-bottom, 0px),
    var(--tg-safe-area-inset-bottom, 0px),
    var(--tg-content-safe-area-inset-bottom, 0px)
  );
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "ss02";
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

/* ============ PHONE SHELL ============ */
.phone {
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  background: radial-gradient(ellipse at top, var(--bg-gradient-top) 0%, var(--bg) 60%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(95px + var(--app-safe-area-bottom));
}

.phone::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  z-index: 1;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px var(--app-header-bottom-padding);
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.topbar-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.topbar-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ============ CONTENT ============ */
.content {
  flex: 1;
  position: relative;
  z-index: 2;
  padding-bottom: 20px;
}

/* ============ NOTIFICATION HINT ============ */
.notify-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 32px 0;
  padding: 10px 14px;
  background: linear-gradient(160deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.015) 50%, rgba(255,255,255,0.005) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(0,0,0,0.25);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25), 0 1px 0 rgba(255,255,255,0.06) inset, 0 -1px 0 rgba(0,0,0,0.12) inset;
}

.notify-hint svg {
  width: 16px;
  height: 16px;
  color: var(--gold-bright);
  flex-shrink: 0;
}

.notify-hint-text {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
  text-align: center;
}

/* ============ GAMES GRID ============ */
.games-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 16px 0;
}

/* ============ EMPTY STATE ============ */
@keyframes emptyHeartFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes emptyHeartGlow {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(255,90,90,0.4)) drop-shadow(0 0 8px rgba(255,60,60,0.25)); }
  50% { filter: drop-shadow(0 0 28px rgba(255,90,90,0.6)) drop-shadow(0 0 14px rgba(255,60,60,0.4)); }
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px 40px;
  text-align: center;
}

.empty-icon {
  width: 96px;
  height: 96px;
  margin-bottom: 24px;
  animation: emptyHeartFloat 3s ease-in-out infinite, emptyHeartGlow 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(255,90,90,0.4)) drop-shadow(0 0 8px rgba(255,60,60,0.25));
}

.empty-icon path {
  fill: url(#heartGrad);
  stroke: url(#heartStroke);
  stroke-width: 0.8;
}

.empty-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.empty-text {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 28px;
}

.empty-text svg {
  display: inline-block;
  vertical-align: -3px;
  width: 15px;
  height: 15px;
}

.empty-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(160deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.015) 50%, rgba(255,255,255,0.005) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(0,0,0,0.25);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25), 0 1px 0 rgba(255,255,255,0.06) inset, 0 -1px 0 rgba(0,0,0,0.12) inset;
}

.empty-hint svg {
  width: 16px;
  height: 16px;
  color: var(--gold-bright);
  flex-shrink: 0;
}

.empty-hint span {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

