/* General body and font */
body {
  margin: 0;
  background-color: #111;
  color: #fff;
  font-family: Arial, sans-serif;
}

/* Header layout */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  padding: 15px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Header left container for nav + logo */
.header-left {
  display: flex;
  align-items: center;
  gap: 30px;
  width: auto;
}

/* Header right container for logout button and search bar */
.header-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* Logo styling */
.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: #e50914;
  margin: 0;
}

/* Nav menu styling */
.nav-menu {
  display: flex;
  gap: 25px;
  flex-grow: 1;
  margin-left: 20px;
}

.nav-menu a {
  color: rgb(250, 246, 246);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}

.nav-menu a:hover {
  color: #eb0f0f;
}

/* Search container styling */
.search-container {
  position: relative;
}

/* Search input styling */
#searchInput {
  padding: 6px 12px;
  border-radius: 4px;
  border: none;
  outline: none;
  max-width: 220px;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

#searchInput::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.auth-button {
  background-color: #e50914;
  color: white;
  padding: 8px 15px;
  border: none;
  border-radius: 800px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-right: 50px; 
}

.auth-button:hover {
  background-color: #f40612;
}

/* Add search results dropdown styling */
#searchResults {
  position: absolute;
  top: 100%;
  left: 0;
  background: #222;
  width: 100%;
  margin-top: 5px;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.5);
  color: white;
  z-index: 1001;
  display: none;
}

.search-result-item {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #444;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: #e50914;
  color: white;
}
  
/* Hero section fills viewport height */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  margin-top: 60px;
}
  
/* Video fills hero area */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  filter: brightness(1.1);
  z-index: 0;
}
  
/* White transparent overlay for brightness control */
.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(2, 2, 2, 0.15);
  z-index: 1;
}
  
/* Hero text on top */
.hero-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  z-index: 10;
  max-width: 300px;
}
  
.hero-text h2 {
  font-size: 2rem;
  margin: 0;
}
  
.hero-text p {
  margin: 8px 0 0;
  }
  
.btn-play,
.btn-info {
  cursor: pointer;
  background-color: rgba(109, 109, 110, 0.7);
  border: none;
  color: white;
  padding: 10px 15px;
  margin-right: 10px;
  font-size: 1rem;
  border-radius: 4px;
  font-family: 'Bebas Neue', cursive;
  transition: background-color 0.3s ease;
}
  
.btn-play:hover,
.btn-info:hover {
  background-color: rgba(245, 8, 8, 0.7);
}
/* Rows */
.row {
  margin: 20px;
}
  
.row h3 {
  margin: 10px 0;
}
  
.row-posters {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 10px 0;
}
  
.poster-card {
  width: 180px;
  cursor: pointer;
}
  
.poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  transition: opacity 0.3s;
}
  
/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #000;
  font-size: 0.9rem;
  color: #aaa;
}

/* Styling for auth container */
#auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #111;
  color: white;
  
  background-image: url('https://netflixclone-media.s3.us-east-1.amazonaws.com/the_netflix_login_background__canada__2024___by_logofeveryt_dh0w8qv-pre.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  position: relative;
}

#auth-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}
.auth-box {
  background: rgba(0, 0, 0, 0.5);
  padding: 40px; 
  border-radius: 5px;
  text-align: center;
  width: 90%; 
  max-width: 400px; 
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
  z-index: 1;
  backdrop-filter: blur(100px);
}

.auth-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: #e50914;
  margin-bottom: 20px;
}

#auth-container input {
  display: block;
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 4px;
  border: none;
  background-color: #333;
  color: white;
  font-size: 1rem;
}

#auth-container button {
  width: 100%;
  padding: 12px;
  background-color: #dd1212;
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

#auth-container a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.header-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.auth-button {
  background-color: #e50914;
  color: white;
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.auth-button:hover {
  background-color: #f40612;
}

/* Mobile view */
@media (max-width: 768px) {
  /* Header adjustments */
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  .header-left {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .nav-menu {
    flex-direction: column;
    gap: 10px;
    margin-left: 0;
    width: 100%;
  }

  .header-right {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  #searchInput {
    width: 100%;
    max-width: none;
  }

  /* Hero section */
  .hero-text {
    bottom: 10px;
    left: 10px;
    max-width: 90%;
  }

  .hero-text h2 {
    font-size: 1.5rem;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  .btn-play,
  .btn-info {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .poster-card {
    width: 120px;
  }

  .row {
    margin: 10px;
  }
}
