/**
 * LocalCN Trip - Favorites UI Styles
 * Sci-fi themed favorites button & page
 */

/* ── Favorites Button (inline) ────────────────────── */
.fav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex-shrink: 0;
  position: relative;
}

.fav-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.fav-btn--active {
  color: #ff4757;
  border-color: rgba(255, 71, 87, 0.4);
  background: rgba(255, 71, 87, 0.1);
}

.fav-btn--active:hover {
  color: #ff6b81;
  border-color: rgba(255, 107, 129, 0.5);
  background: rgba(255, 71, 87, 0.15);
}

.fav-btn--animating {
  animation: favPulse 0.4s ease;
}

@keyframes favPulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* ── Floating Action Button ───────────────────────── */
.fav-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.fav-fab:hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 212, 255, 0.15);
}

.fav-fab--animating {
  animation: favFabBounce 0.5s ease;
}

@keyframes favFabBounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.4) rotate(15deg); }
  60% { transform: scale(0.85) rotate(-5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* ── Favorites Page Grid ──────────────────────────── */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.fav-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.fav-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 212, 255, 0.1);
}

.fav-card__thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: rgba(0, 212, 255, 0.1);
}

.fav-card__body {
  padding: 16px;
}

.fav-card__title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.4;
}

.fav-card__title a {
  color: inherit;
  text-decoration: none;
}

.fav-card__title a:hover {
  color: #00d4ff;
}

.fav-card__category {
  font-size: 12px;
  color: #00d4ff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.fav-card__date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.fav-card__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.fav-card__remove:hover {
  background: rgba(255, 71, 87, 0.8);
  color: #fff;
}

/* ── Empty state ──────────────────────────────────── */
.favorites-empty {
  text-align: center;
  padding: 80px 20px;
}

.favorites-empty__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
}

.favorites-empty__text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 24px;
}

/* ── Nav search icon ──────────────────────────────── */
.nav-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.nav-search-btn:hover {
  border-color: rgba(0, 212, 255, 0.4);
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
}

/* ── Search highlight in nav ──────────────────────── */
.navbar__links .nav-search-btn {
  margin-left: 8px;
}
