/*
Theme Name: Movies Child Theme
Template: generatepress
Author: GeneratePress Movie Child Theme
Version: 1.0.0
Description: A child theme for GeneratePress focused on movie reviews.
*/

/* Movie Review Page Styles */
.movie-review {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.movie-header {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.movie-poster {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.movie-poster img {
  width: 100%;
  height: auto;
  display: block;
}

.movie-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.movie-title {
  font-size: 2.5em;
  margin: 0;
  color: #333;
  line-height: 1.2;
}

.movie-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: #666;
  font-size: 1.1em;
}

.movie-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.movie-meta i {
  color: #0073e6;
}

.movie-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-tag {
  background: #f0f0f0;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9em;
  color: #666;
  transition: background-color 0.3s ease;
}

.genre-tag:hover {
  background: #e0e0e0;
}

.movie-director {
  font-size: 1.1em;
  color: #666;
}

.movie-director i {
  color: #0073e6;
  margin-right: 8px;
}

.movie-content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.movie-main-content {
  flex: 1;
  min-width: 300px;
}

.movie-sidebar {
  flex: 0 0 300px;
}

.movie-overview {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.movie-overview h2,
.movie-cast-section h2,
.movie-screenshots h3,
.movie-faq h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.8em;
  border-bottom: 2px solid #0073e6;
  padding-bottom: 10px;
}

.movie-overview p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #444;
}

.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.cast-member {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cast-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cast-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.cast-character {
  color: #666;
  font-size: 0.9em;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.screenshot-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  aspect-ratio: 16 / 9;
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.screenshot-item:hover img {
  transform: scale(1.05);
}

/* Movie Trailer Modal */
.trailer-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.trailer-modal-content {
  position: relative;
  margin: 5% auto;
  width: 90%;
  max-width: 900px;
}

.trailer-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.trailer-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.trailer-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.play-trailer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.play-trailer:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-2px);
}

/* Movie Rating */
.movie-rating {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ffc107;
  color: #000;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

/* Movie Social Share */
.movie-social-share {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  transition: transform 0.3s ease;
}

.share-btn:hover {
  transform: translateY(-3px);
}

.facebook {
  background: #3b5998;
}

.twitter {
  background: #1da1f2;
}

.pinterest {
  background: #bd081c;
}

/* Movie FAQ Section */
.movie-faq {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.faq-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.faq-question {
  font-weight: 600;
  color: #333;
  cursor: pointer;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question::after {
  content: "+";
  font-size: 20px;
}

.faq-question.active::after {
  content: "-";
}

.faq-answer {
  color: #666;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* Related Movies */
.related-movies {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.related-movies h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.5em;
  border-bottom: 2px solid #0073e6;
  padding-bottom: 10px;
}

.related-movies-grid {
  display: grid;
  gap: 15px;
}

.related-movie {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.related-movie:hover {
  transform: translateY(-3px);
}

.related-movie-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  text-decoration: none;
  color: inherit;
}

.related-movie-image {
  width: 60px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
}

.related-movie-title {
  margin: 0;
  font-size: 1em;
  color: #333;
}

/* Movie Details Sidebar */
.movie-details-sidebar {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.movie-details-sidebar h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.5em;
  border-bottom: 2px solid #0073e6;
  padding-bottom: 10px;
}

.movie-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.movie-details-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.movie-details-list li:last-child {
  border-bottom: none;
}

.movie-details-list strong {
  color: #333;
}

/* Archive Page Styles */
.archive-header {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 20px;
}

.archive-title {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: #333;
}

.archive-description {
  color: #666;
  margin-bottom: 20px;
}

.breadcrumbs {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 20px;
}

.breadcrumbs a {
  color: #0073e6;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Filter Form */
.movie-filters {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  font-weight: 600;
  color: #333;
}

.filter-group select {
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.filter-submit {
  background: #0073e6;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.filter-submit:hover {
  background: #0056b3;
}

/* Movie Grid Layout */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.movie-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.movie-thumbnail {
  position: relative;
  padding-top: 150%;
  overflow: hidden;
}

.movie-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.movie-card:hover .movie-thumbnail img {
  transform: scale(1.05);
}

.card-rating {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ffc107;
  color: #000;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.movie-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.movie-card-title {
  margin: 0 0 10px;
  font-size: 1.2em;
  line-height: 1.4;
}

.movie-card-title a {
  color: #333;
  text-decoration: none;
}

.movie-card-title a:hover {
  color: #0073e6;
}

.movie-card-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 0.9em;
  color: #666;
}

.movie-card-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.genre-tag-small {
  background: #f0f0f0;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.8em;
  color: #666;
}

.more-genres {
  background: #e0e0e0;
}

.movie-excerpt {
  font-size: 0.9em;
  line-height: 1.6;
  color: #666;
  margin-bottom: 15px;
}

.read-more-btn {
  margin-top: auto;
  display: inline-block;
  background: #0073e6;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s ease;
}

.read-more-btn:hover {
  background: #0056b3;
}

/* Pagination */
.pagination-container {
  margin: 40px 0;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 5px;
  border-radius: 4px;
  background: #f0f0f0;
  color: #333;
  text-decoration: none;
  transition: background 0.3s ease;
}

.pagination .page-numbers.current {
  background: #0073e6;
  color: #fff;
}

.pagination .page-numbers:hover:not(.current) {
  background: #e0e0e0;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 40px;
  background: #f8f9fa;
  border-radius: 8px;
}

.reset-filters-btn {
  display: inline-block;
  background: #0073e6;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 15px;
  transition: background 0.3s ease;
}

.reset-filters-btn:hover {
  background: #0056b3;
}

/* Responsive Design */
@media (max-width: 992px) {
  .movie-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .movie-poster {
    max-width: 300px;
    margin: 0 auto;
  }

  .movie-content-wrapper {
    flex-direction: column;
  }

  .movie-sidebar {
    order: -1;
  }

  .filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .movie-title {
    font-size: 2em;
    text-align: center;
  }

  .movie-meta {
    justify-content: center;
  }

  .movie-genres {
    justify-content: center;
  }

  .movie-director {
    text-align: center;
  }

  .movie-social-share {
    justify-content: center;
  }

  .cast-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 480px) {
  .movie-meta {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  /* ===================== */
/* Front Page Movie Grid */
/* ===================== */
.movie-showcase {
    background: #0c0c0c;
    padding: 40px 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 30px;
    padding-left: 10px;
    border-left: 4px solid #e50914;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.movie-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 2/3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card-link:hover .movie-card {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.placeholder-poster {
    width: 100%;
    height: 100%;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
}

.movie-meta-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: #212121;
}

.movie-title {
    color: #fff;
    font-size: 1rem;
    margin: 0 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-details {
    display: flex;
    justify-content: space-between;
    color: #ddd;
    font-size: 0.85rem;
}

.imdb-rating {
    color: #f5c518;
    font-weight: bold;
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-card-link:hover .hover-overlay {
    opacity: 1;
}

.watch-now {
    color: #fff;
    font-weight: bold;
    background: #e50914;
    padding: 8px 15px;
    border-radius: 4px;
}

.view-all-container {
    text-align: center;
    margin-top: 40px;
}

.view-all-button {
    display: inline-block;
    background: #e50914;
    color: #fff;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.view-all-button:hover {
    background: #b2070f;
}

.no-movies {
    color: #999;
    text-align: center;
    padding: 40px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .movie-title {
        font-size: 0.9rem;
    }
}
}