/* ============================================================
   LGBTQ News — Coming Soon  |  style.css
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Noto+Sans+JP:wght@300;400&family=Noto+Sans+SC:wght@300;400&family=Noto+Sans+TC:wght@300;400&family=DM+Sans:wght@300;400;500&display=swap');

/* ── CSS Variables ── */
:root {
  --rainbow-red:    #FF2D55;
  --rainbow-orange: #FF9500;
  --rainbow-yellow: #FFCC00;
  --rainbow-green:  #34C759;
  --rainbow-blue:   #007AFF;
  --rainbow-violet: #AF52DE;
  --white:          #FFFFFF;
  --white-60:       rgba(255,255,255,0.60);
  --white-20:       rgba(255,255,255,0.20);
  --white-10:       rgba(255,255,255,0.10);
  --dark:           rgba(0,0,0,0.55);
  --nav-h:          64px;
  --radius-btn:     10px;
  --transition:     0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'DM Sans', sans-serif;
  background: #0a0a0a;
  color: var(--white);
}

/* ============================================================
   BACKGROUND SYSTEM
   ============================================================ */

/* Layer 1 — deep dark base */
.bg-base {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(160deg, #0d0014 0%, #000a1a 50%, #0d0014 100%);
}

/* Layer 2 — rainbow gradient blob — full-color breathing */
.bg-rainbow {
  position: fixed;
  inset: 0;
  z-index: 1;
  transform: skewY(-8deg) scale(1.25);
  transform-origin: center;
  animation: breathColors 10s ease-in-out infinite;
}

@keyframes breathColors {
  0% {
    background: linear-gradient(180deg,
      #FF2D55 0%, #FF2D55 16.66%,
      #FF9500 16.66%, #FF9500 33.33%,
      #FFCC00 33.33%, #FFCC00 50%,
      #34C759 50%, #34C759 66.66%,
      #007AFF 66.66%, #007AFF 83.33%,
      #AF52DE 83.33%, #AF52DE 100%
    );
    opacity: 0.38;
    filter: blur(55px) saturate(1.1);
    transform: skewY(-8deg) scale(1.20);
  }
  25% {
    background: linear-gradient(180deg,
      #AF52DE 0%, #AF52DE 16.66%,
      #FF2D55 16.66%, #FF2D55 33.33%,
      #FF9500 33.33%, #FF9500 50%,
      #FFCC00 50%, #FFCC00 66.66%,
      #34C759 66.66%, #34C759 83.33%,
      #007AFF 83.33%, #007AFF 100%
    );
    opacity: 0.62;
    filter: blur(75px) saturate(1.7);
    transform: skewY(-5deg) scale(1.28);
  }
  50% {
    background: linear-gradient(180deg,
      #007AFF 0%, #007AFF 16.66%,
      #AF52DE 16.66%, #AF52DE 33.33%,
      #FF2D55 33.33%, #FF2D55 50%,
      #FF9500 50%, #FF9500 66.66%,
      #FFCC00 66.66%, #FFCC00 83.33%,
      #34C759 83.33%, #34C759 100%
    );
    opacity: 0.72;
    filter: blur(90px) saturate(2.0);
    transform: skewY(-6deg) scale(1.32);
  }
  75% {
    background: linear-gradient(180deg,
      #34C759 0%, #34C759 16.66%,
      #007AFF 16.66%, #007AFF 33.33%,
      #AF52DE 33.33%, #AF52DE 50%,
      #FF2D55 50%, #FF2D55 66.66%,
      #FF9500 66.66%, #FF9500 83.33%,
      #FFCC00 83.33%, #FFCC00 100%
    );
    opacity: 0.55;
    filter: blur(70px) saturate(1.5);
    transform: skewY(-9deg) scale(1.24);
  }
  100% {
    background: linear-gradient(180deg,
      #FF2D55 0%, #FF2D55 16.66%,
      #FF9500 16.66%, #FF9500 33.33%,
      #FFCC00 33.33%, #FFCC00 50%,
      #34C759 50%, #34C759 66.66%,
      #007AFF 66.66%, #007AFF 83.33%,
      #AF52DE 83.33%, #AF52DE 100%
    );
    opacity: 0.38;
    filter: blur(55px) saturate(1.1);
    transform: skewY(-8deg) scale(1.20);
  }
}

/* Layer 3 — bokeh glow orbs */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: floatOrb var(--dur, 12s) ease-in-out infinite alternate;
}

.orb-1 { width:500px; height:500px; top:-100px; left:-100px; background:var(--rainbow-red);    opacity:.25; --dur:10s; }
.orb-2 { width:400px; height:400px; top:20%;   right:-80px; background:var(--rainbow-blue);   opacity:.20; --dur:14s; }
.orb-3 { width:350px; height:350px; bottom:0;  left:30%;    background:var(--rainbow-violet); opacity:.20; --dur:11s; }
.orb-4 { width:300px; height:300px; top:40%;   left:10%;    background:var(--rainbow-green);  opacity:.18; --dur:16s; }
.orb-5 { width:280px; height:280px; bottom:10%;right:20%;   background:var(--rainbow-yellow); opacity:.15; --dur:13s; }

@keyframes floatOrb {
  0%   { transform: translate(0,0)    scale(1);   }
  100% { transform: translate(40px,30px) scale(1.12); }
}

/* Layer 4 — dark veil for readability */
.bg-veil {
  position: fixed;
  inset: 0;
  z-index: 3;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(2px);
}

/* ============================================================
   LAYOUT WRAPPER
   ============================================================ */
.site-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 32px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--white-10);
  transition: background var(--transition);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-flag {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.flag-stripe {
  flex: 1;
}
.flag-stripe.s1 { background: var(--rainbow-red);    }
.flag-stripe.s2 { background: var(--rainbow-orange); }
.flag-stripe.s3 { background: var(--rainbow-yellow); }
.flag-stripe.s4 { background: var(--rainbow-green);  }
.flag-stripe.s5 { background: var(--rainbow-blue);   }
.flag-stripe.s6 { background: var(--rainbow-violet); }

.logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: 0.01em;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin-left: 8px;
}

.nav-links a {
  color: var(--white-60);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  padding: 6px 14px;
  border-radius: 20px;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: var(--white-10);
}

.nav-links a.active {
  border-bottom: 2px solid var(--white);
  border-radius: 0;
  background: transparent;
}

/* Spacer */
.nav-spacer { flex: 1; }

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--white-20);
  color: var(--white-60);
  font-size: 0.75rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.03em;
  min-width: 36px;
  text-align: center;
}

.lang-btn:hover {
  color: var(--white);
  border-color: var(--white-60);
  background: var(--white-10);
}

.lang-btn.active {
  color: var(--white);
  border-color: var(--white);
  background: var(--white-20);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: transparent;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   HERO / MAIN CONTENT
   ============================================================ */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 60px) 24px 60px;
  text-align: center;
  min-height: 100vh;
}

/* Coming Soon text */
.coming-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rainbow-orange);
  margin-bottom: 20px;
  animation: fadeSlideUp 1s 0.2s both;
}

.coming-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 22px;
  animation: fadeSlideUp 1s 0.4s both;
  text-shadow: 0 4px 32px rgba(0,0,0,0.6);
}

/* Rainbow gradient on title accent */
.title-gradient {
  background: linear-gradient(90deg,
    var(--rainbow-red), var(--rainbow-orange),
    var(--rainbow-yellow), var(--rainbow-green),
    var(--rainbow-blue), var(--rainbow-violet)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.coming-sub {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--white-60);
  max-width: 480px;
  margin: 0 auto 48px;
  line-height: 1.7;
  font-weight: 300;
  animation: fadeSlideUp 1s 0.6s both;
}

/* ── Download Buttons ── */
.store-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeSlideUp 1s 0.8s both;
  margin-bottom: 48px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color: var(--white);
  backdrop-filter: blur(8px);
  transition: all var(--transition);
  min-width: 160px;
}

.store-btn:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}

.store-btn-inner {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.store-btn-small {
  font-size: 0.65rem;
  opacity: 0.7;
  font-weight: 300;
}

.store-btn-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.store-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ── Divider line ── */
.pride-divider {
  width: 180px;
  height: 3px;
  margin: 0 auto 48px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    var(--rainbow-red), var(--rainbow-orange),
    var(--rainbow-yellow), var(--rainbow-green),
    var(--rainbow-blue), var(--rainbow-violet)
  );
  animation: fadeSlideUp 1s 1s both, shineBar 3s 2s ease-in-out infinite alternate;
}

@keyframes shineBar {
  0%   { filter: brightness(1)   blur(0px); }
  100% { filter: brightness(1.8) blur(1px); }
}

/* ── Pulse dot indicator ── */
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--white-60);
  letter-spacing: 0.08em;
  animation: fadeSlideUp 1s 1.1s both;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rainbow-green);
  box-shadow: 0 0 0 0 rgba(52,199,89,0.6);
  animation: pulseDot 2s ease-out infinite;
}

@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(52,199,89,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(52,199,89,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,199,89,0);   }
}

/* ── Keyframes ── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 20px 24px;
  font-size: 0.78rem;
  color: var(--white-60);
  border-top: 1px solid var(--white-10);
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.25);
}

/* ============================================================
   LANGUAGE-SPECIFIC FONTS
   ============================================================ */
body[data-lang="jp"] .coming-title,
body[data-lang="jp"] .coming-sub,
body[data-lang="jp"] .coming-label,
body[data-lang="jp"] .nav-links a,
body[data-lang="jp"] .footer {
  font-family: 'Noto Sans JP', sans-serif;
}

body[data-lang="zh-hans"] .coming-title,
body[data-lang="zh-hans"] .coming-sub,
body[data-lang="zh-hans"] .coming-label,
body[data-lang="zh-hans"] .nav-links a,
body[data-lang="zh-hans"] .footer {
  font-family: 'Noto Sans SC', sans-serif;
}

body[data-lang="zh-hant"] .coming-title,
body[data-lang="zh-hant"] .coming-sub,
body[data-lang="zh-hant"] .coming-label,
body[data-lang="zh-hant"] .nav-links a,
body[data-lang="zh-hant"] .footer {
  font-family: 'Noto Sans TC', sans-serif;
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
@media (max-width: 768px) {
  .nav {
    padding: 0 20px;
    flex-wrap: wrap;
    height: auto;
    min-height: var(--nav-h);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0 16px;
    gap: 2px;
    order: 3;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
  }

  .nav-spacer { display: none; }

  .lang-switcher {
    order: 2;
    margin-left: auto;
    margin-right: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 3px;
  }

  .lang-btn {
    padding: 3px 8px;
    font-size: 0.7rem;
    min-width: 32px;
  }

  .store-row {
    flex-direction: column;
    align-items: center;
  }

  .store-btn {
    width: 100%;
    max-width: 260px;
  }

  .pride-ring {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .nav { padding: 0 16px; }
  .hero { padding-top: calc(var(--nav-h) + 80px); }
  .logo-text { font-size: 1rem; }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--rainbow-red), var(--rainbow-violet));
  border-radius: 3px;
}
