/* 🎬 Movie Search App Styles */

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

body {
  background-color: #0d0d0d;
  color: #ffffff;
  min-height: 100vh;
  padding: 40px 20px;
}

.container {
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #00ffff;
}

.search-bar {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

#searchInput {
  padding: 10px 15px;
  width: 60%;
  border: none;
  border-radius: 8px;
  font-size: 16px;
}

#searchBtn {
  padding: 10px 20px;
  background: #00ffff;
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s ease;
}

#searchBtn:hover {
  background: #00cccc;
}

.results-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.movie-card {
  background: #1c1c1c;
  padding: 15px;
  border-radius: 12px;
  transition: transform 0.2s ease;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

.movie-card:hover {
  transform: scale(1.03);
}

.movie-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.movie-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.movie-card p {
  font-size: 14px;
  color: #ccc;
}

.movie-card button {
  margin-top: 10px;
  padding: 8px 14px;
  border: none;
  background-color: #00ffff;
  color: #000;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s ease;
}

.movie-card button:hover {
  background-color: #00cccc;
}

/* ✅ Modal Styles */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background-color: #1c1c1c;
  color: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  text-align: left;
  position: relative;
}

.modal-content img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 10px;
}

.modal-content h2 {
  margin-bottom: 10px;
  color: #00ffff;
}

.modal-content p {
  margin: 5px 0;
  font-size: 14px;
  color: #ccc;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #fff;
}
