/* RESET */
* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
}

/* BACKGROUND */
body, html {
  margin: 0;
  height: 100%;
  background: #0f172a;
  color: #fff;
}

.app-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #334155, #020617);
  z-index: -1;
}

/* CONTAINER */
.app-container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* GLASS UI */
.glass-card, .glass-bar {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* LOGIN */
.login-card {
  max-width: 360px;
  margin: 15vh auto;
  text-align: center;
}

.login-card h2 {
  margin: 0;
}

.subtitle {
  opacity: 0.7;
  margin-bottom: 20px;
}

input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  margin-bottom: 12px;
}

button {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: #22c55e;
  color: #022c22;
  font-weight: bold;
  cursor: pointer;
}

.error {
  background: rgba(239,68,68,0.2);
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logout {
  color: #f87171;
  text-decoration: none;
}

/* CATEGORIES */
.categories {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  text-decoration: none;
  color: white;
  font-size: 14px;
}

.chip.active {
  background: #22c55e;
  color: #022c22;
}

/* GALLERY GRID */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
  transition: transform .2s ease;
}

.thumb:hover {
  transform: scale(1.03);
}

/* MOBILE */
@media (max-width: 600px) {
  .thumb {
    height: 130px;
  }
}
