/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(240, 74, 74, 0.2);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  font-size: 1.2rem;
  color: #f04a4a;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.nav-search {
  flex: 1;
  max-width: 400px;
  margin: 0 2rem;
}

.search-container {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  color: #ffffff;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #f04a4a;
  background: rgba(255, 255, 255, 0.15);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #f04a4a;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #f04a4a;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-user {
  display: flex;
  gap: 1rem;
}

.login-btn,
.register-btn {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-btn {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.register-btn {
  background: #f04a4a;
  color: #ffffff;
}

.register-btn:hover {
  background: #d63939;
  transform: translateY(-1px);
}

/* Hero Carousel */
.highlight-carousel {
  margin-top: 80px;
  position: relative;
  height: 500px;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-track {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.5s ease;
}

.carousel-slide {
  width: 33.333%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(240, 74, 74, 0.3) 100%);
}

.highlight-text {
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 500px;
  z-index: 2;
}

.genre-tag {
  display: inline-block;
  width: fit-content;
  background: #f04a4a;
  color: #ffffff;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.highlight-text h2 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.highlight-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.highlight-actions {
  display: flex;
  gap: 1rem;
}

.highlight-btn {
  padding: 0.75rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.highlight-btn.primary {
  background: #f04a4a;
  color: #ffffff;
}

.highlight-btn.primary:hover {
  background: #d63939;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(240, 74, 74, 0.4);
}

.highlight-btn.secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.highlight-btn.secondary:hover {
  background: #ffffff;
  color: #000000;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
}

.carousel-btn:hover {
  background: rgba(240, 74, 74, 0.8);
}

.carousel-btn.prev {
  left: 2rem;
}

.carousel-btn.next {
  right: 2rem;
}

.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #f04a4a;
}

/* Main Content */
.main-content {
  padding: 2rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
}

.section-title i {
  color: #f04a4a;
}

.section-link {
  color: #f04a4a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.section-link:hover {
  color: #d63939;
}

/* Announcements */
.announcements {
  padding: 3rem 0;
}

.announcement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.announcement-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.announcement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(240, 74, 74, 0.2);
  border-color: rgba(240, 74, 74, 0.3);
}

.announcement-icon {
  width: 50px;
  height: 50px;
  background: #f04a4a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.announcement-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.announcement-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.announcement-date {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

/* Novel Grid */
.novel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.novel-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.novel-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(240, 74, 74, 0.3);
}

.novel-cover {
  position: relative;
  aspect-ratio: 2 / 3; /* Atau 3 / 4 juga bisa */
  width: 100%;
  overflow: hidden;
  background: #000;
}

.novel-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.novel-card:hover .novel-cover img {
  transform: scale(1.1);
}

.novel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.novel-card:hover .novel-overlay {
  opacity: 1;
}

.quick-read-btn {
  background: #f04a4a;
  border: none;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.quick-read-btn:hover {
  background: #d63939;
  transform: scale(1.1);
}

.update-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f04a4a;
  color: #ffffff;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 600;
}

.novel-info {
  padding: 1.5rem;
}

.novel-card-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.novel-card-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.novel-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.rating {
  color: #ffd700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.chapters,
.update-time {
  color: rgba(255, 255, 255, 0.6);
}

/* Recommended Section */
.recommended {
  padding: 3rem 0;
}

/* Updates Section */
.updates {
  padding: 3rem 0;
}

.filter-tabs {
  display: flex;
  gap: 1rem;
}

.filter-tab {
  padding: 0.5rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tab.active,
.filter-tab:hover {
  background: #f04a4a;
  border-color: #f04a4a;
}

.load-more {
  text-align: center;
  margin-top: 3rem;
}

.load-more-btn {
  padding: 1rem 3rem;
  background: linear-gradient(135deg, #f04a4a 0%, #d63939 100%);
  border: none;
  color: #ffffff;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(240, 74, 74, 0.4);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: #f04a4a;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #f04a4a;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
  font-size: 1.2rem;
  color: #f04a4a;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #f04a4a;
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  z-index: 1000;
  display: none;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
  padding: 0.5rem;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: #f04a4a;
}

.bottom-nav-item i {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.bottom-nav-item span {
  font-size: 0.7rem;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-search {
    margin: 0 1rem;
    max-width: none;
  }

  .highlight-text {
    left: 2rem;
    right: 2rem;
    max-width: none;
  }

  .highlight-text h2 {
    font-size: 2rem;
  }

  .highlight-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-btn.prev {
    left: 1rem;
  }

  .carousel-btn.next {
    right: 1rem;
  }

  .novel-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }

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

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .filter-tabs {
    flex-wrap: wrap;
  }

  .bottom-nav {
    display: flex;
  }

  .main-content {
    padding-bottom: 80px;
  }

  .container {
    padding: 0 1rem;
  }
}

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

  .highlight-text {
    left: 1rem;
    right: 1rem;
  }

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

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

  .announcement-card {
    flex-direction: column;
    text-align: center;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #f04a4a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d63939;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-text {
  font-weight: bold;
  font-size: 1.2rem;
  color: #333;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.nav-brand .brand-text {
    color: inherit;
    font-size: 1.2rem;
    font-weight: bold;
}
.novel-scroll-wrapper {
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.novel-row-scroll {
  display: flex;
  gap: 1rem;
  width: max-content;
}

.novel-card {
  flex: 0 0 auto;
  width: 180px; /* atau 160px sesuai desain kamu */
}

@media (max-width: 768px) {
  .novel-card {
    width: 140px;
  }
}
.recommended .novel-scroll-wrapper {
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.recommended .novel-row-scroll {
  display: flex;
  gap: 1.5rem;
  width: max-content;
}

.recommended .novel-card {
  flex: 0 0 auto;
  width: 157px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.1));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.recommended .novel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(240, 74, 74, 0.3);
  border-color: rgba(240, 74, 74, 0.3);
}

/* Ukuran cover tetap 157x240 */
.recommended .novel-card img {
  width: 157px;
  height: 240px;
  object-fit: cover;
  display: block;
}

/* Sisanya adalah info novel */
.recommended .novel-info {
  padding: 0.8rem;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.recommended .novel-card-title {
  font-size: 0.9rem;
  font-weight: bold;
  color: #ffffff;
}

.recommended .novel-card-desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

.recommended .novel-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
}
.updates .novel-scroll-wrapper {
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.updates .novel-row-scroll {
  display: flex;
  gap: 1.5rem;
  width: max-content;
}

.updates .novel-card {
  flex: 0 0 auto;
  width: 157px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.1));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.updates .novel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(240, 74, 74, 0.3);
  border-color: rgba(240, 74, 74, 0.3);
}

.updates .novel-card img {
  width: 157px;
  height: 240px;
  object-fit: cover;
}

.updates .novel-info {
  padding: 0.8rem;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}
/* Tambahkan di styles.css */
.nav-menu {
  display: flex;
  gap: 1rem;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #111;
    padding: 1rem;
    z-index: 999;
  }
}
.carousel-btn {
  position: absolute;
  bottom: 10px;           /* ⬅️ tombol di bawah */
  top: auto;              /* pastikan override posisi sebelumnya */
  transform: none;        /* hapus centering vertikal */
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

.carousel-btn.prev {
  left: 40%;
}

.carousel-btn.next {
  right: 40%;
}
.highlight-carousel {
  max-width: 90%;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}
@media (max-width: 768px) {
  .carousel-btn {
    display: none;
  }
}
.carousel-track {
  transition: transform 0.5s ease-in-out;
}
.highlight-section {
  margin-top: 100px; /* Jarak dari header */
  padding: 1rem 0;
  position: relative;
  overflow: hidden;
}
.highlight-section img {
  width: 100%;
  height: auto;
  object-fit: cover;
}