/* 🎬 POPCORN JOURNAL - CLEANED STYLESHEET */

/* ===== BASE RESET ===== */
html {
  scroll-behavior: smooth;
}

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

/* ===== BODY BACKGROUNDS ===== */


body.landing-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;  /* centers horizontally */
  align-items: center;       /* centers vertically */
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("/images/background.png") no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  padding: 2rem;
  position: relative;
}

/* Optional soft gold glow overlay */
body.landing-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(250, 204, 21, 0.1), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body.landing-page.home-movie {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;         /* centers horizontally */
  justify-content: flex-start; /* keeps header at top, content below */
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("/images/background.png") no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  padding-top: 6rem;           /* pushes below header */
  padding-bottom: 3rem;
}

/* Optional: subtle glow overlay (cinema vibe) */
body.landing-page.home-movie::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(250, 204, 21, 0.1), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ===== LANDING CARD (Sign In / Sign Up) ===== */

.landing-card {
  background: rgba(35, 51, 78, 0.75); /* transparent navy with blur */
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  padding: 2.5rem 3rem;
  width: 90%;
  max-width: 450px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  color: #fff;
  z-index: 1; /* ensures it stays above the overlay */
}

.landing-card:hover {
  box-shadow: 0 15px 50px rgba(250, 204, 21, 0.25);
  transform: translateY(-4px);
}


.app-title {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: #f5c518;
  margin-bottom: 0.5rem;
}

.tagline {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: #b5c3d6;
  margin-bottom: 1.5rem;
  line-height: 1.4;
  font-style: italic;
}

/* ===== FORM ===== */
.auth-form {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 1rem;
  margin-bottom: 1rem;
}

.auth-form label {
  font-size: 1rem;
  color: #e2e8f0;
}

.auth-form input {
  padding: 0.6rem 0.8rem;
  border: none;
  outline: none;
  border-radius: 0.6rem;
  background-color: #334155;
  color: #fff;
  font-size: 1.1rem;
}

.auth-form input::placeholder {
  color: #94a3b8;
}

.auth-form input:focus {
  outline: 2px solid #facc15;
}

/* ===== BUTTONS ===== */
.btn {
  text-decoration: none;
  display: block;
  width: 100%;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn.sign-in {
  background-color: #eab308;
  color: #000;
}

.btn.sign-in:hover {
  background-color: #facc15;
  box-shadow: 0 10px 20px rgba(250, 204, 21, 0.4);
}

.btn.sign-up {
  background-color: transparent;
  color: #e2e8f0;
  border: 2px solid #475569;
}

.btn.sign-up:hover {
  background-color: #334155;
  color: #fff;
  border-color: #e2e8f0;
}

/* ===== SMALL TEXT ===== */
.small-text {
  font-size: 1rem;
  color: #94a3b8;
  text-align: center;
}

.small-text a {
  color: #facc15;
  text-decoration: none;
}

.small-text a:hover {
  text-decoration: underline;
}

/* ===== HEADER ===== */
.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  backdrop-filter: blur(12px) saturate(160%);
  background: rgba(35, 51, 78, 0.55);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: #facc15;
  text-decoration: none;
  border: 1px solid rgba(250, 204, 21, 0.7);
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: #facc15;
  color: #1e293b;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

/* ===== LANDING CONTENT ===== */

.landing-content {
  margin-top: 1rem;
  width: 90%;
  max-width: 1200px;
  margin-inline: auto;
  padding-bottom: 3rem;
}

/* ===== TABS ===== */
.content-header {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0 2rem;
}

.tab-link {
  color: #f5c518;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  opacity: 0.85;
}

.tab-link:hover {
  color: #fff;
  opacity: 1;
  transform: translateY(-2px);
}

.tab-link.active {
  color: #fff;
  opacity: 1;
}

.tab-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: #facc15;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.tab-link:hover::after,
.tab-link.active::after {
  transform: scaleX(1);
  opacity: 1;
}

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

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* wider cards */
  gap: 1rem; /* smaller gap between cards */
  justify-items: center;
  margin-top: 2rem;
  max-width: 1600px;
  margin-inline: auto;
}

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


.movie-card {
  background: rgba(30, 41, 59, 0.9);
  color: #f1f5f9;
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 260px; /* make each card wider */
}
.movie-card .btn {
  display: block;
  margin: 0.8rem auto 0 auto; /* centers horizontally */
  text-align: center;
  width: 80%;
  max-width: 200px;
  font-weight: 600;
  border: 1.5px solid #facc15;
  color: #facc15;
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
  background-color: transparent;
  transition: all 0.3s ease;
}

.movie-card .btn:hover {
  background-color: #facc15;
  color: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(250, 204, 21, 0.3);
}
.movie-card.watched {
  border-left: 4px solid #22c55e;
}

.movie-card.unwatched {
  border-left: 4px solid #f87171;
}


/* ===== MOVIE ACTIONS ===== */
.movie-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

/* Smaller, tidy buttons */
.movie-actions .btn.small {
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  border: 1.5px solid #facc15;
  border-radius: 6px;
  background-color: transparent;
  color: #facc15;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  width: auto; /* no stretching */
  min-width: 80px; /* just enough for text */
}

.movie-actions .btn.small:hover {
  background-color: #facc15;
  color: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.4);
}
/* ===== POSTER IMAGE ===== */

.movie-card img.movie-poster {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  background-color: #111;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.movie-card:hover img.movie-poster {
  transform: scale(1.03);
  box-shadow: 0 12px 25px rgba(250, 204, 21, 0.3);
}

/* ===== MOVIE INFO ===== */

.movie-title {
  font-size: 1.1rem;
  color: #facc15;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.movie-type {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

.movie-genre {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

/* ===== ADD BUTTON ===== */
.btn.small {
  background-color: transparent;
  border: 1.5px solid #facc15;
  color: #facc15;
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  transition: all 0.25s ease;
  text-decoration: none;
  width: 80%;
}

.btn.small:hover {
  background-color: #facc15;
  color: #1e293b;
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

/* ===== POPUP MODAL ===== */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
}

.popup.hidden {
  display: none;
}

.popup-content {
  background: #23334e;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  color: #facc15;
  box-shadow: 0 0 25px rgba(250, 204, 21, 0.3);
  position: relative;
  width: 300px;
}

.popup-content h3 {
  margin-bottom: 1rem;
  font-family: 'Cinzel Decorative', cursive;
}

.popup-btn {
  display: block;
  width: 100%;
  margin: 0.5rem 0;
  background: transparent;
  border: 2px solid #facc15;
  border-radius: 8px;
  color: #facc15;
  font-size: 1rem;
  padding: 0.5rem;
  transition: all 0.25s ease;
  cursor: pointer;
}

.popup-btn:hover {
  background: #facc15;
  color: #1e293b;
}

.popup-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  background: none;
  border: none;
  color: #facc15;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(250, 204, 21, 0.95);
  color: #1e293b;
  padding: 0.9rem 1.4rem;
  border-radius: 12px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.hidden {
  display: none;
}

/* ===== ERROR & SUCCESS MESSAGES ===== */
.error-message {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  font-family: 'Quicksand', sans-serif;
  margin-top: 1rem;
  animation: fadeIn 0.4s ease-in-out;
}

.success-message {
  background: rgba(132, 204, 22, 0.15);
  color: #a3e635;
  border: 1px solid rgba(132, 204, 22, 0.3);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  font-family: 'Quicksand', sans-serif;
  margin-top: 1rem;
  animation: fadeIn 0.4s ease-in-out;
}

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


/* 🎬 WATCHLIST PAGE LAYOUT FIX */


body.watchlist-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("/images/background.png") no-repeat center center fixed;
  background-size: cover;
}

/* Watchlist container */

body.watchlist-page .landing-card {
  background: rgba(35, 51, 78, 0.65); /* more transparent navy */
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 2px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem 3rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  text-align: center;
  color: #fff;
  width: 90%;
  max-width: 700px;
  transition: all 0.3s ease;
}

body.watchlist-page .landing-card:hover {
  box-shadow: 0 15px 50px rgba(250, 204, 21, 0.25);
  transform: translateY(-4px);
}


/* Buttons side by side instead of full width */
body.watchlist-page .auth-buttons {
  display: flex;
  flex-direction: column; /* stack vertically */
  align-items: center;
  gap: 1rem; /* space between buttons */
  margin: 1.5rem 0;
}

/* Refined gold-outlined buttons */
body.watchlist-page .btn {
  background: transparent;
  color: #facc15;
  border: 2px solid #facc15;
  border-radius: 12px;
  padding: 0.6rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 70%; /* slightly narrower than full width */
  max-width: 400px; /* keeps them centered on big screens */
  text-align: center;
}

body.watchlist-page .btn:hover {
  background-color: #facc15;
  color: #1e293b;
  transform: scale(1.03);
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.4);
}

/* Filter buttons in one clean row */
body.watchlist-page .filter-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

body.watchlist-page .filter-grid a {
  background: transparent;
  color: #facc15;
  border: 1.5px solid #facc15;
  border-radius: 10px;
  padding: 0.4rem 1rem;
  text-decoration: none;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
}

body.watchlist-page .filter-grid a:hover,
body.watchlist-page .filter-grid a.active {
  background-color: #facc15;
  color: #1e293b;
  transform: translateY(-2px);
}

.new-filters {
  margin-top: 0.8rem;
  animation: fadeIn 1.2s ease-in-out;
}

/* Smaller size for the new filter buttons */
.new-filters a {
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
  border-radius: 6px;
}

/* Optional: tighter spacing between small buttons */
.new-filters {
  gap: 0.5rem;
}

/* 🎞 Smooth fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Message style */
body.watchlist-page .tagline {
  font-family: 'Playfair Display', serif;
  color: #cbd5e1;
  font-size: 1.1rem;
  margin-top: 1.5rem;
  font-style: italic;
}

/* ===== CUSTOM SELECT DROPDOWN ===== */
select#type {
  background-color: #23334e;          /* dark navy background */
  color: #facc15;                     /* golden text */
  border: 2px solid #facc15;          /* golden border */
  border-radius: 10px;                /* rounded corners */
  padding: 10px 40px 10px 12px;       /* padding + room for arrow */
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  appearance: none;                   /* remove native browser arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23facc15' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  transition: all 0.3s ease;
}

/* Hover & focus glow */
select#type:hover {
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.3);
}

select#type:focus {
  border-color: #fff;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
  outline: none;
}

/* Dropdown options */
select#type option {
  background-color: #23334e;
  color: #facc15;
  font-family: 'Quicksand', sans-serif;
}

/* ===== WATCHED CHECKBOX STYLING ===== */
.checkbox-div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0.5rem;
  font-family: 'Quicksand', sans-serif;
  color: #facc15;
  font-weight: 600;
}

/* Hide the default checkbox and replace it with a custom one */
.checkbox-div input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #facc15;
  border-radius: 5px;
  background-color: transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
}

/* Add gold glow on hover */
.checkbox-div input[type="checkbox"]:hover {
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.4);
}

/* Checked state — gold fill + white checkmark */
.checkbox-div input[type="checkbox"]:checked {
  background-color: #facc15;
  border-color: #facc15;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

.checkbox-div input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  color: #1e293b; /* dark text inside gold box */
  font-size: 0.9rem;
  top: 1px;
  left: 4px;
  font-weight: bold;
}

/* 🎬 Poster Image URL (fully matches all other inputs) */
.form-group label[for="image"] {
  font-weight: bold;
  color: #e2e8f0;
  font-family: 'Quicksand', sans-serif;
  display: block;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

.form-group input#image {
  width: 100%;
  background-color: #334155; /* same as other inputs */
  color: #f8fafc;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  border: none !important;
  outline: none;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input#image::placeholder {
  color: #94a3b8;
  font-style: italic;
}

.form-group input#image:focus {
  outline: 2px solid #facc15;
  background-color: #3b4b68;
  box-shadow: 0 0 6px rgba(250, 204, 21, 0.3);
}



@media (max-width: 768px) {
  .app-title { font-size: 1.3rem; }
  .movie-card img.movie-poster { height: 240px; }
  .movie-grid { gap: 1.2rem; }
}

@media (max-width: 480px) {
  .landing-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .movie-card img.movie-poster {
    height: 200px;
  }

  .movie-title { font-size: 0.9rem; }
  .btn.small { font-size: 0.75rem; }
}




