/* Reset */
/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #000000;
  color: #333;
  line-height: 1.5;
}

/* Navbar */
.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background-color: #000000;
  color: white;
  padding: 1rem;
}

.navbar-left {
  display: flex;
  align-items: center;
}

.logo {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.site-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
}

.navbar-center {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.navbar-right input {
  padding: 6px 12px;
  border-radius: 5px;
  border: none;
  outline: none;
}

/* Category Buttons */
.nav-btn {
  padding: 8px 14px;
  background-color: #ffffff;
  color: #222;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.nav-btn:hover {
  transform: scale(1.05);
  background-color: #b4b4b4;
}



/* Movie Grid */
.movie-grid {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* Movie Card */
.movie-card {
  background-color: #070707;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 0.3rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.movie-card:hover {
  transform: scale(1.10);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.12);
}


.movie-card img {
  width: 100%;
  height: 260px;
  border-radius: 3px;
}

.movie-card h4 {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #ffffff;
}

.movie-card button:hover {
  background-color: darkorange;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.pagination button {
  padding: 8px 12px;
  border: none;
  background-color: #494949;
  color: rgb(0, 0, 0);
  border-radius: 5px;
  cursor: pointer;
}

.pagination button:disabled {
  background-color: #e9e9e9;
  cursor: not-allowed;
}

/* Responsive adjustments */
@media (min-width: 1024px) {
  .movie-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 768px) {
  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .movie-card img{
    width: 100%;
    height: 210px;
    border-radius: 3px;
  }
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-center {
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .navbar-right {
    margin-top: 0.5rem;
    width: 100%;
  }

  .navbar-right input {
    width: 100%;
  }
}
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
/* Hide toggle button on desktop */
.category-toggle {
  display: none;
  padding: 8px 14px;
  background-color: #e4e4e4;
  color: #222;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

/* Default category layout (PC) */
.categories-wrapper {
  display: flex;
  gap: 0.5rem;
}

/* Mobile layout */
@media (max-width: 768px) {
  .categories-wrapper {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 0.5rem;
  }

  .categories-wrapper.show {
    display: flex;
  }

  .category-toggle {
    display: block;
    margin-top: 0.5rem;
    width: 100%;
  }

  .navbar-center {
    flex-direction: column;
    width: 100%;
  }
}
/* Footer Styling */
.site-footer {
  background-color: #222;
  color: #fff;
  padding: 2rem 1rem 1rem;
  margin-top: 2rem;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h4 {
  margin-bottom: 0.75rem;
  color: #f5c518;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a,
.footer-section a {
  text-decoration: none;
  color: #ccc;
  transition: color 0.2s;
}

.footer-section ul li a:hover,
.footer-section a:hover {
  color: #fff;
}

.social-icons a {
  display: inline-block;
  margin-right: 10px;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  color: #aaa;
  font-size: 0.85rem;
  border-top: 1px solid #444;
  padding-top: 1rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-section {
    width: 100%;
  }

  .social-icons a {
    display: block;
    margin: 5px 0;
  }
}

/* ==== Slideshow ==== */
#slideshow {
  width: 100%;
  max-width: 1500px;
  height: 400px;
  margin: 20px auto;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  border-radius: 12px;
  overflow: hidden;
}

.slide.active-slide {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* or 'cover' depending on your goal */
  object-position: center;
  display: block;
  border-radius: 8px;
  background-color: #000; /* fallback for empty space */
  
}

/* === Left Dark Gradient Overlay === */
.slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), transparent);
  z-index: 1;
  pointer-events: none;
}

/* === Caption Top-Left === */
.slide-caption.netflix-style {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(131, 131, 131, 0.247);
  padding: 10px 16px;
  border-radius: 6px;
  color: white;
  z-index: 2;
}

.slide-title {
  margin: 0;
  font-size: 26px;
  font-weight: bold;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

/* === Responsive === */
@media (max-width: 768px) {
  #slideshow {
    height: 220px;
  }

  .slide-caption.netflix-style {
    top: 12px;
    left: 12px;
    padding: 8px 12px;
  }

  .slide-title {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  #slideshow {
    height: 180px;
  }

  .slide-caption.netflix-style {
    top: 10px;
    left: 10px;
    padding: 6px 10px;
  }

  .slide-title {
    font-size: 16px;
  }
}

