/* File: /app/assets/css/app.css — SelfEco v4 (Web3+ Enhanced)
   Updated: 2025-10-07 (Bangkok)
   Visual companion for app.js v4
*/

/* -------- Root Palette -------- */
:root {
  --bg-main: #0B0F11;
  --bg-card: rgba(255,255,255,0.03);
  --accent: #00FFC6;
  --accent2: #00E0FF;
  --text-main: #EFFFF9;
  --text-dim: rgba(255,255,255,0.7);
  --radius: 18px;
  --shadow-glow: 0 0 15px rgba(0,255,198,0.3);
}

/* -------- Base Layout -------- */
body {
  background: radial-gradient(circle at 25% 20%, #0F2027, #09141A 60%, #000);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding-top: 80px;
  padding-bottom: 70px;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 70% 25%, rgba(0,255,198,0.08), transparent 70%),
    radial-gradient(circle at 30% 80%, rgba(0,224,255,0.06), transparent 70%);
  z-index: 0;
  animation: pulse 12s ease-in-out infinite alternate;
}
@keyframes pulse { from {opacity:.7;} to {opacity:1;} }

/* -------- Top Searchbar -------- */
.top-searchbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15,20,20,0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 12px rgba(0,255,198,0.25);
  padding: 10px 12px;
  text-align: center;
  z-index: 999;
}
.top-searchbar input {
  width: 90%;
  max-width: 420px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 8px 14px;
  color: var(--text-main);
  font-size: 15px;
  outline: none;
}
.top-searchbar input::placeholder { color: var(--text-dim); }
.top-searchbar .hero-line {
  margin-top: 6px;
  font-family: 'Merriweather', serif;
  font-size: 15px;
  color: var(--accent2);
  text-shadow: 0 0 6px rgba(0,224,255,0.3);
}

/* -------- Filter Bar -------- */
.filters {
  position: sticky;
  top: 75px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,255,198,0.25);
  border-radius: 16px;
  margin: 12px auto;
  padding: 6px 10px;
  width: 94%;
  box-shadow: 0 0 10px rgba(0,255,198,0.15);
}
.filters label {
  color: var(--text-dim);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.filters input[type=range] {
  accent-color: var(--accent);
  width: 100px;
  cursor: pointer;
  margin-top: 4px;
}

/* -------- Food Grid -------- */
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px,1fr));
  gap: 14px;
  padding: 10px;
  z-index: 1;
}
.food-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,255,198,0.2);
  transition: transform .2s ease, box-shadow .3s ease;
  position: relative;
}
.food-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(0,255,198,0.4);
}
.food-card .photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.food-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.food-card .info {
  padding: 8px 10px 10px;
}
.food-card .title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}
.food-card .meta {
  color: var(--accent2);
  font-size: 12px;
}
.food-card .desc {
  font-size: 12px;
  color: var(--text-dim);
}

/* -------- Bottom Navigation -------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  background: rgba(15,20,20,0.9);
  border-top: 1px solid rgba(0,255,198,0.2);
  backdrop-filter: blur(10px);
  padding: 6px 0;
  z-index: 999;
}
.bottom-nav button {
  flex: 1;
  border: none;
  background: none;
  color: var(--text-dim);
  font-size: 11.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: color .2s, transform .2s;
}
.bottom-nav button .icon {
  font-size: 20px;
  margin-bottom: 2px;
}
.bottom-nav button.active {
  color: var(--accent);
  transform: translateY(-2px);
  text-shadow: 0 0 6px rgba(0,255,198,0.4);
}
.bottom-nav button:active { transform: scale(0.95); }

/* -------- Scrollbar polish -------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}
