/* style.css – dark theme, external CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
}

body {
  background: #0b0b10;
  color: #eaeaf0;
  padding-top: 76px; /* Add padding to prevent content from hiding behind fixed header */
}

.wrapper {
  max-width: 1440px;
  margin: 0 auto;
  background: #12121a;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

/* ===== HEADER / NAV - FIXED (no JS) ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  border-bottom: 1px solid #2a2a36;
  background: #12121a;
  flex-wrap: wrap;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  max-width: 1440px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #f0f0fa;
}
.logo i {
  color: #d43f3f;
  margin-right: 6px;
}
.logo span {
  font-weight: 300;
  color: #9a9aaa;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-weight: 500;
  color: #d0d0dc;
  flex-wrap: wrap;
}
.nav-links a {
  text-decoration: none;
  color: inherit;
  font-size: 0.95rem;
  transition: 0.2s;
}
.nav-links a:hover {
  color: #e85c5c;
}
.nav-links .btn-outline {
  border: 1.5px solid #d43f3f;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  color: #d43f3f;
  font-weight: 600;
  transition: 0.2s;
}
.nav-links .btn-outline:hover {
  background: #d43f3f;
  color: #f0f0fa;
  border-color: #d43f3f;
}
.nav-links .btn-filled {
  background: #d43f3f;
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  color: #f0f0fa;
  font-weight: 600;
  transition: 0.2s;
  border: 1.5px solid #d43f3f;
}
.nav-links .btn-filled:hover {
  background: #b52e2e;
  border-color: #b52e2e;
}

/* ===== DROPDOWN ===== */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown .dropbtn {
  background: transparent;
  border: none;
  color: #d0d0dc;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: default;
  padding: 0;
  display: inline-flex;
  align-items: center;
}
.dropdown-content {
  display: none;
  position: absolute;
  top: 130%;
  left: 0;
  background: #1a1a2a;
  min-width: 160px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.8);
  border: 1px solid #2e2e42;
  padding: 0.5rem 0;
  z-index: 10;
}
.dropdown-content a {
  color: #d0d0dc;
  padding: 0.5rem 1.2rem;
  display: block;
  font-weight: 400;
  font-size: 0.9rem;
  transition: 0.15s;
}
.dropdown-content a:hover {
  background: #2a2a3e;
  color: #f0f0fa;
}
.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown:hover .dropbtn {
  color: #e85c5c;
}

/* ===== HERO OVERLAY & IMAGE STYLES ===== */
.hero {
  position: relative;
  padding: 0;
  min-height: 550px;
  display: flex;
  align-items: center;
}

.hero-overlay {
  background: rgba(18, 18, 26, 0.88);
  padding: 3rem 2.5rem;
  width: 100%;
  min-height: 550px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(2px);
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.hero-text {
  max-width: 650px;
  flex: 1 1 500px;
}

.hero-text .badge {
  display: inline-block;
  background: #d43f3f30;
  color: #f08080;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.hero-text h1 {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  color: #f0f0fa;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.8rem;
}

.hero-brand {
  background: linear-gradient(135deg, #f0f0fa, #d0d0ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

.hero-amp {
  color: #d43f3f;
  font-weight: 300;
  font-size: 2.4rem;
  -webkit-text-fill-color: #d43f3f;
}

.hero-subtitle {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.2rem 0 0.4rem;
  font-size: 1.6rem;
  font-weight: 300;
  color: #b0b0c8;
}

.subtitle-jp, .subtitle-cn {
  font-family: 'Segoe UI', 'Noto Sans JP', 'Noto Sans SC', sans-serif;
  font-weight: 400;
  letter-spacing: 2px;
}

.subtitle-divider {
  color: #5a5a72;
}

.hero-tagline-main {
  font-size: 1.8rem;
  font-weight: 700;
  color: #f0f0fa;
  letter-spacing: 2px;
  margin: 0.4rem 0 0.2rem;
  background: linear-gradient(90deg, #facc15, #f0a030);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: #b0b0c0;
  margin: 0.5rem 0 1.4rem;
  font-weight: 400;
  max-width: 500px;
}

.hero-btn {
  background: #f0f0fa;
  border: none;
  color: #12121a;
  padding: 0.85rem 2.8rem;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
  margin-bottom: 1.4rem;
}

.hero-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #c0c0d0;
  margin-bottom: 0.8rem;
}

.hero-flags i {
  color: #d43f3f;
  margin-right: 6px;
}

.hero-bottom-quote {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: #8a8aa0;
  letter-spacing: 0.5px;
  border-top: 1px solid #2a2a3a;
  padding-top: 0.8rem;
  margin-top: 0.2rem;
}

.hero-tagline {
  font-size: 1.1rem;
  background: #1e1e2ecc;
  backdrop-filter: blur(4px);
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  border: 1px solid #3a3a4a;
  color: #d0d0dc;
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* ===== SECTION TITLE ===== */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.8rem 2.5rem 0.5rem;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #f0f0fa;
}
.section-head .view-all {
  color: #e85c5c;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  cursor: default;
  border-bottom: 2px solid transparent;
}
.section-head .view-all:hover {
  border-bottom: 2px solid #e85c5c;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
  padding: 1rem 2.5rem 2.5rem;
}
.manhua-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
  padding: 1rem 2.5rem 2.5rem;
}
.card-item {
  background: #1a1a28;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transition: 0.2s;
  border: 1px solid #2e2e3e;
  padding: 0.8rem 0.8rem 0.6rem;
  text-align: center;
}
.card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.7);
  border-color: #5a5a72;
}
.card-img {
  background: #2a2a3a;
  height: 130px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #e0e0ee;
  font-size: 0.8rem;
  background-size: cover;
  background-position: center;
  margin-bottom: 8px;
  position: relative;
}
.card-img.one {
  background: #2d2d3f;
  background-image: linear-gradient(145deg, #2d2d3f, #1f1f2d);
}
.card-img.two {
  background: #313145;
  background-image: linear-gradient(145deg, #313145, #232333);
}
.card-img.three {
  background: #2b2b3d;
  background-image: linear-gradient(145deg, #2b2b3d, #1d1d2b);
}
.card-img.four {
  background: #303044;
  background-image: linear-gradient(145deg, #303044, #222232);
}
.card-img.five {
  background: #2e2e40;
  background-image: linear-gradient(145deg, #2e2e40, #20202e);
}
.card-img.six {
  background: #333347;
  background-image: linear-gradient(145deg, #333347, #252535);
}
.card-img .chapter {
  position: absolute;
  bottom: 6px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(2px);
  color: #f0f0fa;
  font-size: 0.7rem;
  padding: 0.2rem 0.7rem;
  border-radius: 30px;
  font-weight: 500;
}
.card-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #f0f0fa;
}
.card-sub {
  font-size: 0.7rem;
  color: #9a9aaa;
  margin-top: 2px;
}

/* ===== WHY CHOOSE ===== */
.why-section {
  background: #14141e;
  padding: 2.5rem 2.5rem 1.8rem;
  margin: 0 0 1rem;
  border-top: 1px solid #2a2a36;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.why-item {
  background: #1a1a28;
  padding: 1.8rem 1rem;
  border-radius: 28px;
  border: 1px solid #2e2e3e;
  transition: 0.1s;
}
.why-item i {
  font-size: 2.2rem;
  color: #d43f3f;
  background: #d43f3f20;
  padding: 0.5rem;
  border-radius: 60px;
  margin-bottom: 0.75rem;
}
.why-item h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #f0f0fa;
}
.why-item p {
  color: #b0b0c0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ===== NEWSLETTER ===== */
.newsletter {
  background: #1a1a2a;
  margin: 1rem 2.5rem 2rem;
  padding: 2.2rem 2rem;
  border-radius: 40px;
  color: #f0f0fa;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #2e2e40;
}
.newsletter h3 {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.3px;
}
.newsletter p {
  color: #b0b0c0;
  max-width: 400px;
}
.newsletter-input {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}
.newsletter-input input {
  padding: 0.8rem 1.8rem;
  border-radius: 60px;
  border: 1px solid #3a3a4e;
  background: #0e0e18;
  color: #f0f0fa;
  width: 240px;
  font-size: 0.9rem;
}
.newsletter-input input::placeholder {
  color: #7a7a8e;
}
.newsletter-input button {
  background: #d43f3f;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 60px;
  font-weight: 700;
  color: #f0f0fa;
  cursor: default;
  font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.footer {
  background: #0e0e18;
  padding: 2.5rem 2.5rem 1.5rem;
  border-top: 1px solid #2a2a36;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
.footer-col {
  flex: 1 1 160px;
}
.footer-col h5 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: #f0f0fa;
}
.footer-col p, .footer-col a {
  color: #b0b0c0;
  font-size: 0.9rem;
  text-decoration: none;
  display: block;
  margin: 0.3rem 0;
}
.footer-col a:hover {
  color: #e85c5c;
}
.footer-bottom {
  width: 100%;
  text-align: center;
  border-top: 1px solid #2a2a36;
  padding-top: 1.8rem;
  margin-top: 0.5rem;
  color: #8a8a9e;
  font-size: 0.85rem;
}
.footer-social i {
  font-size: 1.4rem;
  margin-right: 1rem;
  color: #b0b0c0;
  transition: 0.2s;
}
.footer-social i:hover {
  color: #e85c5c;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  body {
    padding-top: 68px;
  }
  
  .navbar {
    padding: 0.8rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }
  
  .logo {
    text-align: center;
  }
  
  .nav-links {
    gap: 0.8rem;
    justify-content: center;
    margin-top: 0.2rem;
    flex-wrap: wrap;
  }
  
  .hero-overlay {
    padding: 2rem 1.5rem;
    min-height: 450px;
  }
  
  .hero-text h1 {
    font-size: 2.4rem;
    gap: 0.2rem;
  }
  
  .hero-amp {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-tagline-main {
    font-size: 1.3rem;
  }
  
  .hero-tagline {
    align-self: center;
    margin-top: 1rem;
  }
  
  .card-grid, .manhua-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  .newsletter-input input {
    width: 100%;
  }
  
  .dropdown-content {
    left: -20px;
  }
  
  .hero-flags {
    gap: 0.6rem 1.5rem;
  }
  
  .hero-bottom-quote {
    flex-direction: column;
    gap: 0.2rem;
  }
}