/* =========================
   QWIPLUS SYSTEM CORE
   Sistema visual NOXO
========================= */

/* =========================
   RESET
========================= */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* =========================
   APP CONTAINER
========================= */

#app {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}

/* =========================
   PAGE
========================= */

.page {
  padding: 16px;
  padding-bottom: 120px;
  background: var(--bg);
  color: var(--text);
}

.home-section {
  padding: 16px;
}

/* =========================
   GRID
========================= */

.ads-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* =========================
   CARD
========================= */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: 0.18s ease;
}

.card:active {
  transform: scale(0.97);
}

.card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--card);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: var(--shadow-card);
  z-index: 10;
  pointer-events: all;
  cursor: pointer;
  transition: 0.2s;
}

.fav-btn:hover {
  border-color: var(--border-accent);
  color: var(--accent);
}

.fav-btn.active {
  background: var(--danger-dim);
  border-color: var(--danger);
  color: var(--danger);
}

.card-info {
  padding: 10px;
}

.card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.card-seller {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

/* =========================
   BOTTOM NAV
========================= */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-accent);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}

.nav-item {
  background: none;
  border: none;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 20px;
  cursor: pointer;
  transition: 0.2s;
}

.nav-item small {
  font-size: 11px;
}

.nav-item.active,
.nav-item:hover {
  color: var(--accent);
}

/* =========================
   AVATAR
========================= */

.avatar {
  border-radius: 50%;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-sm { width: 26px; height: 26px; }
.avatar-md { width: 40px; height: 40px; }
.avatar-lg { width: 40px; height: 40px; }

.avatar-placeholder {
  font-size: 13px;
  color: var(--muted);
}

/* =========================
   FAB
========================= */

.fab {
  position: fixed;
  bottom: 80px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-accent);
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

.fab:hover {
  box-shadow: 0 0 28px var(--accent-glow);
}

/* =========================
   FULLSCREEN ROUTES
========================= */

body.fullscreen header,
body.fullscreen .bottom-nav,
body.fullscreen .fab,
body.fullscreen .top-bar {
  display: none !important;
}

