@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville&display=swap');
@import url("https://use.typekit.net/aag4yyo.css");
@import url('https://fonts.googleapis.com/css2?family=Staatliches&display=swap');
/* Reset and general layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  min-height: 100vh;
  font-family: 'Mestiza', serif;
  background-color: #EDE6D5;
  color: #161515;
}

body::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 300px;
  background: url('/images/siteimages/popcorn-footer.png') repeat-x bottom center;
  background-size: contain;
  opacity: 0.15;
  pointer-events: none; /* allows clicks to go through */
  z-index: 9999;
}


.logo-container {
  padding-bottom: 2rem;
  padding-top: 1rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  text-align: center;
}

.main-logo {
  max-width: 100%;
  height: auto;
  display: block;
}


/* Navigation sidebar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 20%;
  height: 100vh;
  background-color: #161515;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 1000; /* Optional: keeps it on top */
}

nav h2 {
  color: #EDE6D5;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

nav ul {
  list-style: none;
}

nav li {
  margin-bottom: 0.75rem;
}

nav a {
  text-decoration: none;
  font-size: 1rem;
  display: block;
}

nav .nav-heading {
  color: #EDE6D5;
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  border-bottom: none;
}


nav .decade-link {
  color: #D7C8A6;
  padding-left: 1rem;
  font-size: 0.95rem;
}

nav a.section-link {
  color: #EDE6D5;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #3a3a3a;
  padding-bottom: 0.5rem;
  transition: color 0.2s ease;
}


nav a.section-link:hover {
  color: #D7C8A6;
}

nav a.decade-link {
  color: #D7C8A6;
  padding-left: 1rem;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

nav a.decade-link:hover {
  color: #ffffff;
}


main {
  margin-left: 20%;
  width: 80%;
  padding: 2rem;
  background-color: #EDE6D5;
}


main h1 {
  color: #733931;
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Optional: style links in main */
main a {
  color: #733931;
  text-decoration: underline;
}



.mobile-branding {
  display: none;
}

@media screen and (max-width: 768px) {
  .mobile-branding {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: #161515;
  color: #EDE6D5;
  padding: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2001;
}


  .burger {
    font-size: 2rem;
    margin-right: 1rem;
    background: none;
    border: none;
    color: #EDE6D5;
    cursor: pointer;
  }

  .site-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #EDE6D5;
  }

  nav {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 70%; /* Wider for mobile */
    padding-top: 4rem;
    background-color: #161515;
  }

  nav.open {
    transform: translateX(0);
  }

  main {
    margin: 0;
    width: 100%;
    padding-top: 6rem; /* offset for fixed header */
  }
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.movie-card {
  background-color: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.movie-card img {
  max-width: 100%;
  height: auto;
  border-radius: 0.3rem;
}

.movie-card h3 {
  font-size: 1rem;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  color: #733931;
}

.movie-card p {
  font-size: 0.9rem;
  color: #444;
}

.movie-card:hover {
  transform: scale(1.02);
  transition: transform 0.2s ease;
}

.movie-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.movie-card-link:hover .movie-card {
  transform: scale(1.02);
  transition: transform 0.2s ease-in-out;
}


.text-page {
  color: #161515;
  font-family: 'Libre Baskerville', serif;
  line-height: 1.7;
}

.text-page h1 {
  color: #733931;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.text-page p {
  margin-bottom: 1.25rem;
}

.text-page em {
  font-style: italic;
  color: #555;
}

.text-page strong {
  font-weight: bold;
  color: #733931;
}

.blog-post {
  color: #161515;
  font-family: 'Libre Baskerville', serif;
  line-height: 1.7;
}

.blog-title {
  font-size: 2.25rem;
  color: #733931;
  margin-bottom: 0.5rem;
}

.blog-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 2rem;
}

.blog-meta a {
  color: #A85C3C;
  text-decoration: none;
}

.blog-meta a:hover {
  text-decoration: underline;
}

.blog-content p {
  margin-bottom: 1.25rem;
}

.blog-content em {
  color: #444;
  font-style: italic;
}

.blog-content strong {
  font-weight: bold;
  color: #733931;
}

blockquote {
  border-left: 4px solid #A85C3C;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #444;
  background-color: #f6f2e8;
}

.review-page {
  color: #161515;
  font-family: 'Libre Baskerville', serif;
  line-height: 1.7;
}

.review-header {
  margin-bottom: 1.5rem;
}

.film-title {
  font-size: 2.25rem;
  color: #733931;
  margin-bottom: 0.25rem;
}

.film-year {
  font-size: 1.5rem;
  font-weight: normal;
  color: #555;
}

.film-meta {
  font-size: 0.95rem;
  color: #444;
}

/* Wrapper around both real and faux posters */
.poster-wrapper {
  position: relative;
  max-width: 300px;
  width: 100%;
  height: 450px;
  margin: 0 auto;
  display: block;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  box-sizing: border-box;
}

/* Real poster images */
.poster-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0.5rem;
}

/* Faux poster overlay with title styling */
.poster-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #bfae93, #f7e6bf);
  border: 3px solid #733931;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-family: 'Staatliches', sans-serif;
  color: #161515;
  font-weight: 900;
  font-size: 2.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.3;
  overflow: hidden;
  box-sizing: border-box;
}

/* Decorative bars (top and bottom of overlay) */
.poster-overlay::before,
.poster-overlay::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 15px;
  background-color: #733931;
}

.poster-overlay::before {
  top: 0;
}

.poster-overlay::after {
  bottom: 0;
}

/* Tint layer for real poster images */
.poster-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(245, 231, 209, 0.7); /* Match your site’s beige tone */
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1; /* sits above image but below overlay */
}

.poster-wrapper img {
  position: relative;
  z-index: 0; /* ensures tint overlays this */
}

a.director-link {
  text-decoration: none;
  color: #733931;
  font-weight: bold;
  transition: color 0.2s ease;
}

a.director-link:hover {
  color: #522a22;
  text-decoration: underline;
}

.review-body {
  margin-top: 1.25rem;
}


.review-body p {
  margin-bottom: 1.25rem;
}

.review-rating {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ccc;
}

.star-rating {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  margin: 0.5rem 0;
}

.star-rating svg.star {
  width: 1.25rem;
  height: 1.25rem;
  fill: #f5b301; /* golden yellow */
  stroke: #333;
  stroke-width: 0.3;
}

.star-rating svg.star:hover {
  filter: drop-shadow(0 0 2px #f5b301);
}



.score {
  font-size: 1rem;
  color: #555;
  margin-top: 0.5rem;
}

.all-movies-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 1rem;
}

.all-movies-table th,
.all-movies-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #ccc;
  text-align: left;
}

.all-movies-table th {
  background-color: #f2f2f2;
  color: #161515;
}

.all-movies-table a {
  color: #733931;
  text-decoration: none;
}

.all-movies-table a:hover {
  text-decoration: underline;
}



.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}

.filter-form label {
  font-weight: bold;
  color: #733931;
}

.filter-form select,
.filter-form button {
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
}

.filter-form button {
  background-color: #733931;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.filter-form button:hover {
  background-color: #522a22;
}

/* Wrap each label + select together for better stacking */
.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 120px;
  flex: 1 1 auto;
}

.filter-group label {
  margin-bottom: 0.25rem;
  font-weight: bold;
  font-size: 0.95rem;
  color: #733931;
}

/* Clear button styles (optional override) */
.clear-filters-button {
  align-self: flex-end;
  padding: 0.5rem 1rem;
  background-color: #733931;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.clear-filters-button:hover {
  background-color: #5a2a24;
}

/* Responsive behavior */
@media screen and (max-width: 768px) {
  .filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .clear-filters-button {
    width: fit-content;
    margin-top: 0.5rem;
  }
}

.all-movies-table th a {
  color: #733931;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: color 0.2s ease;
}

.all-movies-table th a:hover {
  color: #522a22;
  text-decoration: underline;
}

/*.clear-filters-button {
  padding: 0.4rem 0.8rem;
  background-color: #ccc;
  color: #161515;
  text-decoration: none;
  border-radius: 4px;
  margin-left: 1rem;
  font-size: 0.95rem;
}

.clear-filters-button:hover {
  background-color: #bbb;
}*/


.live-search-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.live-search-wrapper label {
  font-weight: bold;
  color: #733931;
  white-space: nowrap;
  margin: 0;
}

#director {
  width: 300px;
}

@media screen and (max-width: 768px) {
#director {
  width: 100%;
}}

#film-search {
  flex: 1;
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
}

.homepage-feature {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.homepage-feature .poster-wrapper {
  flex: 0 0 300px;
  max-width: 300px;
}


.homepage-feature .feature-text {
  flex: 1;
  min-width: 200px;
}

.feature-text h3 {
  margin: 0 0 0.5rem 0;
  color: #733931;
}

.feature-text p {
  margin: 0;
  color: #333;
}

.blog-snippet {
  border-left: 4px solid #733931;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.blog-snippet h4 {
  margin: 0 0 0.25rem 0;
  color: #733931;
}

.blog-snippet a {
  text-decoration: none;
  color: #733931;
}

.blog-snippet a:hover {
  text-decoration: underline;
  color: #522a22;
}

.currently-watching {
  background-color: #f7e6bf;
  border-left: 6px solid #733931;
  padding: 1rem;
  margin: 2rem 0;
  font-size: 1.2rem;
  font-weight: bold;
  color: #161515;
  border-radius: 0.5rem;
}

.currently-watching a {
  color: #733931;
  text-decoration: underline;
}

.related-links {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #ccc;
}

.related-links h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #733931;
}

.related-links ul {
  list-style: none; /* 🔥 Kill the bullets */
  padding: 0;
  margin: 0;
}

.related-links li {
  margin-bottom: 0.5rem;
}

.related-links a {
  text-decoration: none;
  color: #733931;
  font-weight: bold;
  transition: color 0.2s ease;
}

.related-links a:hover {
  color: #522a22;
  text-decoration: underline;
}

.blog-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ccc;
  flex-wrap: wrap;
}

.blog-navigation .nav-previous,
.blog-navigation .nav-next {
  flex: 1;
}

.blog-navigation a {
  color: #733931;
  font-weight: bold;
  text-decoration: none;
}

.blog-navigation a:hover {
  text-decoration: underline;
}

.blog-navigation .nav-previous {
  text-align: left;
}

.blog-navigation .nav-next {
  text-align: right;
}

.blog-tags-list {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ccc;
}

.blog-tags-list h2 {
  color: #733931;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.tag-cloud {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-cloud li {
  margin: 0;
}

.tag-cloud a {
  background-color: #f7e6bf;
  color: #733931;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  font-size: 0.95rem;
  text-decoration: none;
}

.tag-cloud a:hover {
  background-color: #e0d1a3;
  text-decoration: underline;
}

a.tag-archive-link {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  background-color: #f0e6dc;
  border-radius: 0.3rem;
  font-weight: bold;
  color: #733931;
  text-decoration: none !important;
  font-size: 1rem;
}

a.tag-archive-link:hover {
  background-color: #e2d2c0;
  color: #522a22;
  text-decoration: none !important;
}

.back-to-editor-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #f0e6dc;
  border-radius: 0.3rem;
  color: #733931;
  text-decoration: none;
  font-weight: bold;
}

.back-to-editor-button:hover {
  background-color: #e2d2c0;
  color: #522a22;
}

.results-info {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  color: #733931;
  background: #f9f9f9;
  padding: 0.5rem 1rem;
  border-left: 4px solid #733931;
  display: inline-block;
  border-radius: 4px;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.05);
}

@media screen and (max-width: 768px) {
  .all-movies-table {
    border-collapse: collapse;
    width: 100%;
  }

  .all-movies-table thead {
    display: none;
  }

  .all-movies-table,
  .all-movies-table tbody,
  .all-movies-table tr,
  .all-movies-table td {
    display: block;
    width: 100%;
  }

  .all-movies-table tr {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
  }

  .all-movies-table td {
    padding: 0.5rem 0;
    position: relative;
  }

  .all-movies-table td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #733931;
    display: block;
    margin-bottom: 0.25rem;
  }

  .all-movies-table td a {
    word-break: break-word;
  }

  .star-rating {
    margin-top: 0.5rem;
  }
}

footer {
  background-color: #1a1a1a;
  color: #ccc;
  padding: 20px;
  font-size: 0.9em;
  margin-top: 40px;
  border-top: 2px solid #333;
  font-family: 'Libre Baskerville', serif;
}

.footer-tmdb {
  text-align: center;
  margin-bottom: 10px;
}

.footer-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.footer-left,
.footer-right {
  flex: 1 1 100%;
  margin: 10px 0;
}

/* Desktop layout */
@media (min-width: 600px) {
  .footer-left {
    text-align: left;
    flex: 1;
  }

  .footer-right {
    text-align: right;
    flex: 1;
  }
}

.footer-flex a,
.footer-tmdb a {
  color: #ffcc00;
  text-decoration: none;
}

.footer-flex a:hover,
.footer-tmdb a:hover {
  text-decoration: underline;
}

.footer-left img {
  max-height: 30px;
  margin-left: 5px;
  vertical-align: middle;
}

.footer-copyright {
  text-align: center;
  margin-bottom: 10px;
  font-style: italic;
  color: #aaa;
}

.footer-divider {
  height: 1px;
  background-color: #444;
  margin: 15px auto;
  max-width: 90%;
  opacity: 0.3;
}