
:root {
  --primary: #ff6b9d;
  --primary-light: #ffb3d1;
  --secondary: #ffa94d;
  --accent: #4dabf7;
  --bg-base: #fef9f3;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.8);
  --text-main: #2d3142;
  --text-sub: #6b7280;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 8px 30px rgba(255, 107, 157, 0.18);
  --shadow-hover: 0 16px 40px rgba(255, 107, 157, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', 'Noto Sans SC', sans-serif;
  background: linear-gradient(135deg, #fff5f7 0%, #fff0e0 50%, #fff8e7 100%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

.aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  filter: blur(90px);
  opacity: 0.7;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  animation: float 18s infinite alternate ease-in-out;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, #ffb3d1, transparent);
}

.blob-2 {
  bottom: -15%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, #ffd8a8, transparent);
  animation-delay: -6s;
}

.blob-3 {
  top: 40%;
  left: 30%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, #b3e0ff, transparent);
  animation-delay: -12s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-40px, 80px) scale(0.95); }
}

.app-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.logo-box {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 20px rgba(255, 107, 157, 0.35));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-box:hover {
  transform: scale(1.08) rotate(8deg);
}

.logo-svg {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.gradient-text {
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff6b9d, #ffa94d, #ff6b9d);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
  animation: shine 4s ease-in-out infinite;
}

@keyframes shine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.subtitle {
  color: var(--text-sub);
  font-size: 1.05rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 107, 157, 0.3);
  font-size: 0.85rem;
  color: var(--primary);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.15);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #ff6b9d;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff6b9d;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.search-glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.search-glass-card:focus-within {
  border-color: rgba(255, 107, 157, 0.5);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.engine-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.engine-btn {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 107, 157, 0.2);
  color: var(--text-sub);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.engine-btn.active, .engine-btn:hover {
  background: linear-gradient(135deg, #ff6b9d, #ffa94d);
  color: white;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.5);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 107, 157, 0.15);
}

.search-icon {
  color: var(--primary);
  font-size: 1.1rem;
}

#search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 1rem;
  font-family: inherit;
}

#search-input::placeholder {
  color: var(--text-sub);
}

.search-btn {
  background: linear-gradient(135deg, #ff6b9d, #ffa94d);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.search-btn:hover {
  transform: scale(1.08) rotate(15deg);
}

.category-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 107, 157, 0.2);
  color: var(--text-sub);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.tab-btn.active, .tab-btn:hover {
  background: linear-gradient(135deg, #ff6b9d, #ffa94d);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 157, 0.3);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.nav-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  perspective: 1000px;
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.08);
}

.nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6b9d, #ffa94d, #4dabf7);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.nav-card:hover::before {
  transform: scaleX(1);
}

.nav-card:hover {
  transform: translateY(-6px) scale(1.02);
  background: var(--bg-card-hover);
  border-color: rgba(255, 107, 157, 0.3);
  box-shadow: var(--shadow-hover);
}

.card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #ff6b9d, #ffa94d);
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  flex-shrink: 0;
  transition: transform 0.3s;
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.nav-card:hover .card-icon-box {
  transform: scale(1.1) rotate(8deg);
}

.card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-main);
}

.card-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(255, 169, 77, 0.2));
  color: var(--primary);
  border: 1px solid rgba(255, 107, 157, 0.3);
  font-weight: 500;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.3;
}

.footer {
  text-align: center;
  color: var(--text-sub);
  font-size: 0.85rem;
  padding-top: 20px;
}
