* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
}


html, body { height: 100%; overflow-y: auto; }


body {
  background: linear-gradient(180deg, #fefefe 0%, #f5f5f5 100%);
  color: #222;
  min-height: 100vh;
  text-align: center;
  padding: 0;
  margin: 0;
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.site-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.content h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

button.primary-btn {
  background-color: #0078ff;
  color: #fff;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

button.primary-btn:hover {
  transform: scale(1.05);
  background-color: #005bcc;
}

footer {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #888;
}

@media (max-width: 600px) {
  body {
    padding: 1.2rem;
  }
  button.primary-btn {
    width: 100%;
    font-size: 1rem;
  }
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  width: 100%;
}

.item-card {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.item-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.login-area {
  margin-top: 2rem;
  text-align: center;
}

.login-area .primary-btn {
  background-color: #444;
  font-size: 1rem;
  padding: 0.8rem 1.6rem;
}

.form-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 400px;
}

.form-block input,
.form-block textarea {
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.form-block textarea {
  resize: vertical;
  min-height: 100px;
}

/* Full-page card swiping layout */
.swipe-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: calc(100vh - 100px);
  overflow: hidden;
  position: relative;
  background-color: #f8f8f8;
}

.swipe-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 400px;
  height: 500px;
  margin: 10px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  animation: fadeIn 0.3s ease;
  user-select: none;
  will-change: transform, opacity;
  z-index: 2;
}

.swipe-card img.card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  z-index: 0;
}

/* Overlay orange info badge (top right corner) */
.info-badge {
  z-index: 20;
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ff7b00;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  text-align: right;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  min-width: 100px;
  pointer-events: none;
}

.info-badge h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.info-badge p {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}

@keyframes fadeInBadge {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Keep PASS/WANT overlays centered */
.center-hint.want {
  color: #4caf50;
}

.center-hint.pass {
  color: #ff4444;
}

.center-hint.visible {
  opacity: 1;
}

.card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.card-info .price {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #0078ff;
}

.card-info .desc {
  font-size: 0.9rem;
  color: #444;
  overflow-y: auto;
}

/* Bottom navigation bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 999;
}

.nav-btn {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  flex: 1;
}

.nav-btn img {
  width: 30px;
  height: 30px;
  opacity: 0.8;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-btn img:hover {
  transform: scale(1.15);
  opacity: 1;
}

.nav-btn.wallet img {
  width: 60px;
  height: 60px;
  border-radius: 10%;
  background: white;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transform: translateY(-15px);
  opacity: 1;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.swipe-hints {
  position: absolute;
  top: 40%;
  left: 0;
  width: 100%;
  text-align: center;
  pointer-events: none;
  z-index: 10;
}

.hint-left,
.hint-right {
  position: absolute;
  width: 100%;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 2px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: scale(0.9);
  user-select: none;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hint-left {
  color: #ff4b4b;
  transform: translateX(-40%) rotate(-10deg);
}

.hint-right {
  color: #2ecc71;
  transform: translateX(40%) rotate(10deg);
}

.hint-left.visible,
.hint-right.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.search-area {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 10px 0 15px 0;
}

#searchBox {
  width: 90%;
  max-width: 400px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  outline: none;
  transition: all 0.2s ease;
}

#searchBox:focus {
  border-color: #0078ff;
  box-shadow: 0 2px 10px rgba(0,120,255,0.2);
}

.loading {
  color: #555;
  font-size: 1rem;
  margin-top: 2rem;
}

/* Centered swipe feedback overlay */
.swipe-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.center-hint {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 1000;
}

.center-hint.visible {
  opacity: 1;
}

.center-hint.want {
  background: rgba(0, 180, 0, 0.8);
}

.center-hint.pass {
  background: rgba(255, 0, 0, 0.8);
}
