/* ============================================
   DouZine.jp Landing Page - Custom Styles
   ============================================ */

/* --- Color Palette (CSS Custom Properties) --- */
:root {
  /* Artists - Sky Blue */
  --artists-base: #87CEEB;
  --artists-light: #B0E0F6;
  --artists-dark: #5BADD6;

  /* Translators - Green Yellow */
  --translators-base: #ADFF2F;
  --translators-light: #CCFF80;
  --translators-dark: #7ACC00;

  /* Otaku - Light Coral */
  --otaku-base: #F08080;
  --otaku-light: #F5A8A8;
  --otaku-dark: #D95C5C;

  /* Common Accent - Orange */
  --accent: #FF8C00;
  --accent-light: #FFA733;
  --accent-dark: #CC7000;

  /* Neutral */
  --dark-bg: #1a1a2e;
  --dark-bg-alt: #16213e;
  --text-light: #f5f5f5;
}

/* --- Global --- */
html {
  scroll-behavior: smooth;
}

body {
  padding-top: 3.25rem; /* offset for fixed navbar */
}

/* --- Navbar --- */
.navbar.is-dark {
  background-color: var(--dark-bg);
}

.navbar.is-dark .navbar-item,
.navbar.is-dark .navbar-link {
  color: var(--text-light);
  transition: color 0.2s;
}

.navbar.is-dark .navbar-item:hover,
.navbar.is-dark .navbar-link:hover {
  color: var(--accent);
  background-color: transparent;
}

.navbar-burger span {
  transition: transform 0.3s, opacity 0.3s;
}

.lang-switch {
  font-size: 0.85rem;
  opacity: 0.8;
}

.lang-switch:hover {
  opacity: 1;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  overflow: hidden;
  background-color: var(--dark-bg);
}

.hero-section .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section .hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
}

.hero-section .title,
.hero-section .subtitle {
  color: var(--text-light);
  position: relative;
  z-index: 1;
}

.hero-section .subtitle {
  opacity: 0.85;
}

/* --- CTA Buttons --- */
.btn-cta {
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 0.75em 2em;
  font-size: 1.1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-cta-primary {
  background-color: var(--accent);
  color: #fff;
}

.btn-cta-primary:hover {
  background-color: var(--accent-dark);
  color: #fff;
}

.btn-cta-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-cta-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

/* Platform-specific CTA variants */
.btn-cta-artists {
  background-color: var(--artists-base);
  color: var(--dark-bg);
}

.btn-cta-artists:hover {
  background-color: var(--artists-dark);
  color: #fff;
}

.btn-cta-translators {
  background-color: var(--translators-base);
  color: var(--dark-bg);
}

.btn-cta-translators:hover {
  background-color: var(--translators-dark);
  color: #fff;
}

.btn-cta-otaku {
  background-color: var(--otaku-base);
  color: #fff;
}

.btn-cta-otaku:hover {
  background-color: var(--otaku-dark);
  color: #fff;
}

/* --- Section Backgrounds --- */
.section-artists {
  background: linear-gradient(180deg, rgba(135, 206, 235, 0.08) 0%, #fff 100%);
}

.section-translators {
  background: linear-gradient(180deg, rgba(173, 255, 47, 0.08) 0%, #fff 100%);
}

.section-otaku {
  background: linear-gradient(180deg, rgba(240, 128, 128, 0.08) 0%, #fff 100%);
}

.section-neutral {
  background-color: #fafafa;
}

/* --- Platform Cards --- */
.platform-card {
  border-radius: 12px;
  border-top: 4px solid transparent;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.platform-card.card-artists {
  border-top-color: var(--artists-base);
}

.platform-card.card-translators {
  border-top-color: var(--translators-base);
}

.platform-card.card-otaku {
  border-top-color: var(--otaku-base);
}

.platform-card .icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.icon-circle-artists {
  background-color: rgba(135, 206, 235, 0.2);
  color: var(--artists-dark);
}

.icon-circle-translators {
  background-color: rgba(173, 255, 47, 0.2);
  color: var(--translators-dark);
}

.icon-circle-otaku {
  background-color: rgba(240, 128, 128, 0.2);
  color: var(--otaku-dark);
}

/* --- Feature Rows (alternating layout) --- */
.feature-row {
  padding: 2rem 0;
}

.feature-row .feature-icon {
  font-size: 4rem;
  opacity: 0.9;
}

.feature-icon-artists { color: var(--artists-base); }
.feature-icon-translators { color: var(--translators-base); }
.feature-icon-otaku { color: var(--otaku-base); }

/* --- Tabs (How It Works) --- */
.tabs-section .tabs li.is-active a {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.tabs-section .tabs a {
  border-bottom-width: 3px;
  font-weight: 500;
}

.tab-content {
  display: none;
}

.tab-content.is-active {
  display: block;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.step-connector {
  width: 2px;
  height: 32px;
  background-color: rgba(255, 140, 0, 0.3);
  margin: 0 auto;
}

/* --- FAQ Accordion --- */
.faq-item {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  color: #363636;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question .icon {
  transition: transform 0.3s;
}

.faq-item.is-open .faq-question .icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
  padding: 0 1.25rem 1rem;
}

.faq-answer p {
  color: #666;
  line-height: 1.7;
}

/* --- Footer --- */
.footer-dark {
  background-color: var(--dark-bg);
  color: var(--text-light);
}

.footer-dark a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-dark a:hover {
  color: var(--accent);
}

/* --- Scroll Fade-In Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for children */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* --- Responsive tweaks --- */
@media screen and (max-width: 768px) {
  .hero-section .title {
    font-size: 1.75rem !important;
  }

  .hero-section .subtitle {
    font-size: 1rem !important;
  }

  .btn-cta {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .feature-row .columns {
    flex-direction: column-reverse;
  }

  .feature-row .feature-icon {
    font-size: 3rem;
    text-align: center;
    display: block;
    margin-bottom: 1rem;
  }

  .section .title.is-3 {
    font-size: 1.5rem !important;
  }
}

/* --- Section Title Accent --- */
.section-title-accent {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-title-accent::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}

/* --- Newsletter Section (full-width dark) --- */
.newsletter-section {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-alt) 100%);
  padding: 4rem 1.5rem;
}

.newsletter-form .newsletter-field {
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-section .newsletter-form .input {
  border: 2px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 8px 0 0 8px;
}

.newsletter-section .newsletter-form .input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-section .newsletter-form .input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.25);
  background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-form .button {
  border-radius: 0 8px 8px 0;
  font-weight: 600;
}

/* --- Newsletter Inline (within sections) --- */
.newsletter-inline {
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  margin-top: 2.5rem;
}

.newsletter-inline .newsletter-form .input {
  border: 2px solid #e8e8e8;
  border-radius: 8px 0 0 8px;
}

.newsletter-inline .newsletter-form .input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.25);
}

@media screen and (max-width: 768px) {
  .newsletter-form .newsletter-field {
    flex-direction: column;
  }

  .newsletter-form .newsletter-field .control {
    width: 100%;
  }

  .newsletter-form .input,
  .newsletter-section .newsletter-form .input,
  .newsletter-inline .newsletter-form .input {
    border-radius: 8px;
    margin-bottom: 0.5rem;
  }

  .newsletter-form .button {
    border-radius: 8px;
    width: 100%;
  }
}

/* --- Coming Soon badge --- */
.coming-soon-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-top: 0.25rem;
}
