/* Reset & base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #F5DEF3;
  color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
}

/* --- Landing page --- */
.landing {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: url('jessica.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.landing .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(20,10,30,0.6) 100%);
  backdrop-filter: blur(2px);
}
.landing .content {
  position: relative;
  text-align: center;
  z-index: 1;
  animation: fadeUp 1.2s ease-out;
}
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
.landing h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 0 30px rgba(0,0,0,0.8);
  margin-bottom: 1rem;
}
.landing p {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 2rem;
}
.btn-primary {
  display: inline-block;
  padding: 1rem 3rem;
  background: linear-gradient(45deg, #ff3366, #e91e63);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 25px rgba(233,30,99,0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(233,30,99,0.6);
}

/* --- Auth containers --- */
.auth-container {
  max-width: 420px;
  width: 95%;
  margin: 80px auto;
  padding: 2.5rem;
  background: rgba(255,205,249,0.5);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid #333;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.auth-container h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #e91e63
}
.input-group {
  margin-bottom: 1.2rem;
}
.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #908690;
}
.input-group input {
  width: 100%;
  padding: 0.9rem;
  background: #ffecfd;
  border: 1px solid #444;
  border-radius: 12px;
  color: #e91e63;
  font-size: 1rem;
  transition: border 0.2s;
}
.input-group input:focus {
  outline: none;
  border-color: #e91e63;
}
.btn-full {
  width: 100%;
  padding: 1rem;
  background: #e91e63;
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-full:hover { background: #ff3366; }
.auth-link {
  text-align: center;
  margin-top: 1rem;
  color: #908690;
}
.auth-link a { color: #e91e63; text-decoration: none; }

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  padding: 2rem;
}
.media-card {
  position: relative;
  background: #1e1e1e;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border 0.2s;
  border: 3px solid transparent;
}
.media-card.selected {
  border-color: #e91e63;
  transform: scale(1.02);
}
.media-card:hover { transform: translateY(-4px); }
.media-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 2;  /* blocks interactions with underlying img/video */
}
.media-card img, .media-card video {
  width: 100%;
  height: 170px;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.media-info {
  padding: 0.8rem;
}
.media-info h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.price {
  color: #e91e63;
  font-weight: bold;
}

/* Navigation bar (protected pages) */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(10,10,10,0.95);
  border-bottom: 1px solid #222;
}
.navbar a { color: white; text-decoration: none; }
.nav-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.nav-btn.cart {
  background: #e91e63;
  color: white;
}
.nav-btn.logout {
  background: #333;
  color: #ddd;
}

/* Checkout & success containers */
.container {
  max-width: 700px;
  width: 95%;
  margin: 40px auto;
  padding: 2rem;
  background: #1a1a1a;
  border-radius: 20px;
}
.checkout-item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid #333;
}
.total {
  font-size: 1.5rem;
  margin: 1.2rem 0;
  text-align: right;
}
.approx { color: #888; font-size: 0.9rem; }

/* Admin */
.admin-section {
  padding: 2rem;
}
.admin-section input,
.admin-section select,
.admin-section button {
  display: block;
  margin-bottom: 1rem;
  width: 100%;
  max-width: 400px;
}

/* Responsive */
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
