/* =======================HERO====================== */

main {
  width: 100%;
}
body {
  margin: 0;
  overflow-x: hidden;
}


.hero {
  height: 80vh;
  background: url("../assets/images/onepiece.jpg") center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 60px;
  width: 100%;
   width: 100vw !important;
  margin-left: 0 !important;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
    background: linear-gradient(
    90deg,
    rgba(0,0,0,0.9) 0%,
    rgba(0,0,0,0.6) 40%,
    rgba(0,0,0,0.1) 100%
  );
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, #0a0a14, transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}
.hero-buttons{
    display: flex;
}
.hero-content p {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 20px;
}

.btn {
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  margin-right: 10px;
  font-weight: 500;
}
.search-container {
  position: relative;
  display: flex;
  align-items: center;
  /* border: 2px solid red; */
}

#search-input {
  width: 0;
  opacity: 0;
  margin-left: 10px;

  padding: 8px;
  border-radius: 20px;
  border: none;
  outline: none;

  background: #1e1e2f;
  color: white;

  transition: all 0.3s ease;
}
.search-container.active #search-input {
  width: 200px;
  opacity: 1;
  padding: 8px 12px;
}

.primary {
  background: var(--primary);
  color: white;
}

.secondary {
  background: rgba(255,255,255,0.1) ; 
  color: white ;
}

.anime-section {
  padding: 40px 60px;

}

.anime-section h2 {

  margin-bottom: 20px;

}
.anime-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}
.anime-card {
  background: #1a1a2e;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s;
}

.anime-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.anime-card h3 {
  padding: 10px;
  font-size: 0.9rem;
}
.anime-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--primary);
}


.anime-hero {
  height: 80vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  padding: 60px;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
}
.anime-content {
  position: relative;
  max-width: 500px;
}
.anime-content h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}
.anime-content p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.5;
}
.buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
.watch-btn {
  background: #7c3aed;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  color: white;
  cursor: pointer;
}
.fav-btn2 {
  background: #2a2a3d;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  color: white;
  cursor: pointer;
}
.meta {
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
  color: #ccc;
}
.anime-card {
  position: relative;
  overflow: hidden;
}

.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 36px;
  height: 36px;

  border: none;
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);

  color: #ff4d4d;
  font-size: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: all 0.2s ease;
}


.fav-btn:hover {
  transform: scale(1.15);
  background: rgba(255, 77, 77, 0.2);
}


.fav-btn:active {
  transform: scale(0.9);
   background: rgba(255, 77, 77, 0.3);
  box-shadow: 0 0 12px rgba(255, 77, 77, 0.6);
}


.fav-btn.active {
  background: rgba(255, 77, 77, 0.3);
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.6);
   animation: pop 0.2s ease;
}
@keyframes pop {
  0% { transform: scale(0.8); }
  100% { transform: scale(1); }
}



/* ===============MEDIA-QUERIES============== */

@media (max-width: 1024px) {
  .hero {
    width: 100%;
    height: 70vh;
    padding: 0 40px;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
  }

  .hero-content {
    max-width: 500px;
  }

  .hero-content h1 {
    font-size: 2.3rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }
  
}
@media (max-width: 768px) {
  .hero {

    width: 100%;
    height: 75vh;
    padding: 20px;
    align-items: flex-end;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 0.9rem; }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .btn { width: fit-content; }




  .card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
 .hero {
    padding: 20px;
    height: auto;
  }

  .hero h1 {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 0.85rem;
    max-width: 90%;
  }
  .buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .buttons button {
    font-size: 0.8rem;
    padding: 8px 10px;
  }
  .anime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  padding: 15px;
}
.card {
  border-radius: 12px;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

 .nav-links.active {
  right: 0;
}


.nav-links ul li a {
  color: white;
  font-size: 1.2rem;
  text-decoration: none;
}

}

@media (max-width: 480px) {
  .hero {
    
    width: 100%;
    height: 65vh;
    padding: 15px;
    align-items: flex-end;
  }

  .hero-content h1 { font-size: 1.6rem; }
  .hero-content p { font-size: 0.8rem; }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .nav-links ul li a {
    font-size: 0.75rem;
  }
 
  .anime-grid {
    grid-template-columns: repeat(2, 1fr);
  }
.card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
 .hero {
    padding: 20px;
    height: auto;
  }

  .hero h1 {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 0.85rem;
    max-width: 90%;
  }
  .buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .buttons button {
    font-size: 0.8rem;
    padding: 8px 10px;
  }
  /* .anime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  padding: 15px;
} */
 .card {
  border-radius: 12px;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

}







