/* Movie Search Page Specific Styles */

/* Search Section */
.search-section {
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.search-input-wrapper {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.search-input-wrapper .custom-input {
  flex: 1;
  font-size: 1.1rem;
  padding: 1rem 1.5rem;
}

.search-input-wrapper .custom-search-btn {
  white-space: nowrap;
  padding: 1rem 2rem;
}

/* Search Stats */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #2a8bb8;
  font-size: 0.9rem;
}

.stat-item i {
  color: var(--primary-blue);
}

.stat-item .stat-value {
  color: var(--text-cream);
  font-weight: 600;
}

/* Movie Cards Grid */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

/* Movie Card */
.movie-card {
  background: rgba(24, 102, 150, 0.1);
  border: 2px solid var(--primary-blue);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.movie-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-accent);
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow:
    var(--shadow-lg),
    0 0 30px rgba(24, 102, 150, 0.3);
  border-color: #2a8bb8;
}

/* Movie Title */
.movie-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  color: var(--text-cream);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

/* Movie Meta Info */
.movie-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #2a8bb8;
}

.meta-item i {
  font-size: 0.9rem;
}

/* Movie Info Sections */
.movie-info-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(24, 102, 150, 0.3);
}

.info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #2a8bb8;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Ratings Display */
.rating-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rating-score {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-cream);
}

.rating-max {
  font-size: 0.9rem;
  color: rgba(250, 224, 180, 0.6);
}

.rating-stars {
  display: flex;
  gap: 0.2rem;
}

.rating-stars i {
  color: #ffc107;
  font-size: 0.9rem;
}

.rating-stars i.empty {
  color: rgba(255, 193, 7, 0.3);
}

.vote-count {
  font-size: 0.85rem;
  color: rgba(250, 224, 180, 0.7);
}

/* Genre Tags */
.genres-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.genre-tag {
  background: var(--gradient-primary);
  color: var(--text-cream);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Sequel Info */
.sequel-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-cream);
  font-size: 0.9rem;
}

.sequel-info i {
  color: #2a8bb8;
}

.sequel-title {
  color: #2a8bb8;
  font-weight: 600;
}

/* Actors List */
.actors-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.actor-tag {
  background: rgba(189, 36, 33, 0.2);
  border: 1px solid var(--primary-red);
  color: var(--text-cream);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
}

.no-results-icon {
  font-size: 5rem;
  color: var(--primary-blue);
  opacity: 0.3;
  margin-bottom: 1.5rem;
}

.no-results-text {
  font-size: 1.3rem;
  color: var(--text-cream);
  margin-bottom: 0.5rem;
}

.no-results-hint {
  color: #2a8bb8;
  font-size: 0.95rem;
}

/* Popularity Badge */
.popularity-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gradient-accent);
  color: var(--bg-dark);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Initial State */
.initial-state {
  text-align: center;
  padding: 4rem 2rem;
  color: rgba(250, 224, 180, 0.7);
}

.initial-state i {
  font-size: 4rem;
  color: var(--primary-blue);
  opacity: 0.5;
  margin-bottom: 1rem;
}

.initial-state p {
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .search-input-wrapper {
    flex-direction: column;
  }

  .search-input-wrapper .custom-search-btn {
    width: 100%;
  }

  .movies-grid {
    grid-template-columns: 1fr;
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-stats {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .movie-card {
    padding: 1rem;
  }

  .movie-title {
    font-size: 1.3rem;
  }

  .rating-value {
    font-size: 1.5rem;
  }
}
