/* styles.css - All styles for Neon Passion Chapter Page */

/* ===== RESET & VARIABLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --neon-pink: #ff006e;
  --neon-orange: #fb5607;
  --neon-purple: #8338ec;
  --dark-bg: #1a1a2e;
  --darker-bg: #16162a;
  --text-light: #e4e4e7;
  --text-muted: #a1a1aa;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
  color: var(--text-light);
  line-height: 1.8;
  min-height: 100vh;
}

/* ===== AGE VERIFICATION OVERLAY ===== */
.age-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s ease;
}

.age-gate.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.age-gate-content {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(46, 26, 46, 0.95) 100%);
  border: 2px solid var(--neon-pink);
  border-radius: 20px;
  padding: 35px 40px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(255, 0, 110, 0.3);
  animation: slideUp 0.6s ease;
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(50px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.age-gate-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.age-gate h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--neon-pink);
  margin-bottom: 15px;
  text-shadow: 0 0 20px rgba(255, 0, 110, 0.5);
}

.age-gate p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-light);
  margin-bottom: 20px;
}

.age-gate-warning {
  background: rgba(255, 0, 110, 0.1);
  border: 1px solid rgba(255, 0, 110, 0.3);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.age-gate-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-age {
  padding: 12px 35px;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}

.btn-enter {
  background: var(--neon-pink);
  color: white;
}

.btn-enter:hover {
  background: var(--neon-orange);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 0, 110, 0.4);
}

.btn-leave {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-leave:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}

/* ===== MAIN CONTENT ===== */
.content-wrapper {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.content-wrapper.visible {
  opacity: 1;
}

/* ===== HEADER ===== */
.header {
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 0, 110, 0.2);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--neon-pink);
  text-decoration: none;
  text-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
  display: block;
  margin-bottom: 5px;
}

.logo-area {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.header-author {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.header-author a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s;
}

.header-author a:hover {
  color: var(--neon-pink);
}

.age-badge {
  background: rgba(255, 0, 110, 0.2);
  border: 1px solid var(--neon-pink);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.header-badges {
  display: flex;
  gap: 10px;
  align-items: center;
}

.read-full-badge {
  background: rgba(251, 86, 7, 0.2);
  border: 1px solid var(--neon-orange);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neon-orange);
  text-decoration: none;
  transition: all 0.3s;
  white-space: nowrap;
}

.read-full-badge:hover {
  background: var(--neon-orange);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(251, 86, 7, 0.4);
}

/* ===== CONTAINER ===== */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* ===== CHAPTER HEADER ===== */
.chapter-header {
  text-align: center;
  margin-bottom: 60px;
  padding-bottom: 30px;
  border-bottom: 2px solid rgba(255, 0, 110, 0.2);
}

.chapter-number {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.chapter-number a {
  color: var(--neon-pink);
  text-decoration: none;
  transition: color 0.3s;
}

.chapter-number a:hover {
  color: var(--neon-orange);
}

.chapter-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--neon-orange);
  text-shadow: 0 0 20px rgba(251, 86, 7, 0.3);
  margin-bottom: 20px;
}

/* ===== CHAPTER CONTENT ===== */
.chapter-content {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-light);
}

.chapter-content p {
  margin-bottom: 25px;
}

.chapter-content > p:first-of-type:first-letter {
  font-size: 3.2rem;
  font-weight: 500;
  float: left;
  line-height: 0.85;
  margin: 5px 12px 0 0;
  color: var(--text-light);
}

.chapter-content em {
  font-style: italic;
  color: var(--neon-orange);
}

.chapter-divider {
  text-align: center;
  margin: 50px 0;
  font-size: 1.5rem;
  color: var(--neon-pink);
  letter-spacing: 10px;
}

.dialogue {
  position: relative;
  padding-left: 20px;
  border-left: 3px solid rgba(255, 0, 110, 0.3);
  font-style: italic;
  color: var(--text-light);
}

/* ===== CHAPTER ILLUSTRATION ===== */
.chapter-illustration {
  margin: 60px 0;
  text-align: center;
}

.chapter-illustration img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(255, 0, 110, 0.2);
  border: 2px solid rgba(255, 0, 110, 0.2);
}

.illustration-caption {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== CTA SECTION ===== */
.cta-section {
  margin-top: 80px;
  padding: 60px 40px;
  background: linear-gradient(135deg, rgba(131, 56, 236, 0.1) 0%, rgba(255, 0, 110, 0.1) 100%);
  border: 2px solid var(--neon-pink);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(255, 0, 110, 0.2);
}

.cta-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--neon-pink);
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(255, 0, 110, 0.3);
}

.cta-text {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.6;
}

.btn-cta {
  display: inline-block;
  padding: 20px 50px;
  background: var(--neon-pink);
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s;
  box-shadow: 0 10px 30px rgba(255, 0, 110, 0.3);
}

.btn-cta:hover {
  background: var(--neon-orange);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(251, 86, 7, 0.4);
}

.cta-note {
  margin-top: 30px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.jp-accent {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--neon-orange);
}

/* ===== INLINE LINKS ===== */
.inline-link {
  color: var(--neon-orange);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(251, 86, 7, 0.3);
  transition: all 0.3s;
  padding-bottom: 1px;
}

.inline-link:hover {
  color: var(--neon-pink);
  border-bottom-color: var(--neon-pink);
  text-shadow: 0 0 10px rgba(255, 0, 110, 0.3);
}

/* ===== FLOATING SCROLL BUTTON ===== */
.scroll-btn {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background: var(--neon-pink);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 5px 20px rgba(255, 0, 110, 0.4);
  transition: all 0.3s;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
}

.scroll-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-btn:hover {
  background: var(--neon-orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(251, 86, 7, 0.5);
}

.scroll-btn:active {
  transform: translateY(-1px);
}

/* ===== FOOTER ===== */
.footer {
  background: rgba(22, 22, 42, 0.8);
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 0, 110, 0.2);
  margin-top: 80px;
}

.footer-links {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--neon-pink);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .age-gate-content {
    padding: 40px 30px;
    margin: 20px;
  }

  .age-gate h2 {
    font-size: 2rem;
  }

  .header-content {
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-badges {
    gap: 8px;
  }

  .read-full-badge {
    font-size: 0.8rem;
    padding: 4px 12px;
  }

  .age-badge {
    font-size: 0.8rem;
    padding: 4px 12px;
  }

  .chapter-title {
    font-size: 2rem;
  }

  .chapter-content {
    font-size: 1.05rem;
  }

  .chapter-illustration {
    margin: 40px 0;
  }

  .cta-section {
    padding: 40px 20px;
  }

  .cta-title {
    font-size: 2rem;
  }

  .btn-cta {
    padding: 15px 35px;
    font-size: 1rem;
  }

  .age-gate-buttons {
    flex-direction: column;
  }

  .btn-age {
    width: 100%;
  }

  .scroll-btn {
    right: 15px;
    bottom: 15px;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}