:root {
  --bg-color: #0d0f12;
  --card-bg: #1a1e24;
  --primary-color: #f72585;
  --secondary-color: #4cc9f0;
  --text-main: #f8f9fa;
  --text-muted: #adb5bd;
  --font-family: 'Inter', 'Roboto', sans-serif;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
header {
  background-color: rgba(13, 15, 18, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(247, 37, 133, 0.5);
}

.logo span {
  color: var(--primary-color);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  font-weight: 600;
  transition: var(--transition);
}

nav a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  height: 40vh; 
  min-height: 300px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../img/hero.png') center/cover no-repeat;
  z-index: -2;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(13,15,18,0.3) 0%, rgba(13,15,18,1) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 15px rgba(247, 37, 133, 0.4);
}

.btn:hover {
  background-color: #d81b60;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 37, 133, 0.6);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.1rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--secondary-color);
  box-shadow: none;
  color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: rgba(76, 201, 240, 0.1);
  box-shadow: 0 0 15px rgba(76, 201, 240, 0.3);
}

/* Container & Sections */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 5%;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border-left: 5px solid var(--primary-color);
  padding-left: 1rem;
}

/* Search Bar */
.search-container {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.search-input {
  width: 100%;
  max-width: 600px;
  padding: 15px 20px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.2);
  background-color: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 1.1rem;
  font-family: inherit;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(247, 37, 133, 0.3);
  background-color: rgba(255,255,255,0.1);
}

/* Manga Grid */
.manga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px;
  margin-bottom: 3rem;
}

.manga-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
}

.manga-card:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.6);
  border-color: rgba(247, 37, 133, 0.4);
}

.manga-cover {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.manga-card:hover .manga-cover {
  transform: scale(1.05);
}

.manga-cover-wrapper {
  overflow: hidden;
  position: relative;
}

.manga-info {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.manga-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manga-genres {
  font-size: 0.8rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

/* Detail & Reader pages... (mostly same as before) */
.manga-detail-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
}

.manga-detail-cover {
  width: 300px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Ads Spaces */
.ad-banner {
  background-color: #222;
  border: 1px dashed #555;
  color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
  border-radius: 8px;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 2px;
}
.ad-top { height: 90px; width: 100%; max-width: 728px; }

/* Footer */
footer {
  background-color: var(--card-bg);
  padding: 2rem 5%;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
  .manga-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
  }
  .manga-detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero h1 { font-size: 2.2rem; }
}
