/*
Theme Name: FlizzBee Landing
Theme URI: https://flizzbee.com
Description: Minimal landing-page theme for wp.flizzbee.com — replicates the static flizzbee.com page.
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flizzbee-landing
*/

/*
 * Front-end-only chrome: home page widget, page-template wrappers,
 * signup form, article-template wrapper. Visual rules for block content
 * (typography, patterns) live in article-shared.css and are loaded both
 * here on the front-end and inside the block editor.
 */

:root {
  /* Defaults. The Customizer prints the same four lines again (see
     flizzbee_landing_color_css) with the colours chosen by the site owner. */
  --accent: #41ff00;
  --accent-rgb: 65, 255, 0;
  --fb-bg: #000000;
  --fb-bg-rgb: 0, 0, 0;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--fb-bg);
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  -webkit-touch-callout: none;
}

/* =========================================================
   Home page (index.php) — full-screen background + bottom pill,
   followed by a scrollable "Über uns" section.
   ========================================================= */

html:has(body.home),
body.home {
  height: auto;
  min-height: 100%;
  overflow: auto;
}

.home-hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 20px 16px;
  position: relative;
  z-index: 5;
  box-sizing: border-box;
}

.background {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  pointer-events: none;
  user-select: none;
}

@supports (height: 100dvh) {
  .background {
    height: 100dvh;
  }
}

@media (orientation: portrait) {
  .background {
    background-size: 130%;
    background-position: center 20%;
  }
}

@media (orientation: landscape) {
  .background {
    background-size: 110%;
    background-position: center 57%;
  }
}

.bottom-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding-bottom: 10px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}

.bottom-inner {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 28px;
  background: rgba(var(--fb-bg-rgb), 0.65);
  backdrop-filter: blur(6px);
  max-width: min(100%, 28rem);
  box-sizing: border-box;
}

.instagram-icon {
  width: 60px;
  height: 60px;
}

.banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.9rem;
  padding: 4px 10px;
  background: rgba(var(--fb-bg-rgb), 0.4);
  white-space: nowrap;
}

.banner strong {
  font-weight: 600;
  margin-right: 4px;
  color: var(--accent);
}

.reg {
  font-size: 0.6em;
  vertical-align: super;
  margin-left: 1px;
}

.mail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--accent);
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(var(--fb-bg-rgb), 0.4);
  margin-top: 8px;
  transition: background 0.15s, box-shadow 0.15s;
}

.mail-link:hover {
  text-decoration: none;
  background: rgba(var(--accent-rgb), 0.1);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.35);
}

.cta {
  font-weight: 700;
  margin-right: 6px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 6px rgba(var(--accent-rgb), 0.6);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  align-items: center;
  font-size: 0.72rem;
  margin-top: 1.5rem;
}

.legal-links a {
  color: var(--accent);
  text-decoration: none;
  opacity: 0.7;
}

.legal-links a:hover {
  text-decoration: underline;
  opacity: 1;
}

.legal-links .sep {
  color: var(--accent);
  opacity: 0.5;
}

/* Optional logo above the Instagram icon — only rendered when the Customizer
   field "Logo" holds an image. */
.hero-logo {
  max-width: min(100%, 220px);
  height: auto;
  display: block;
}

@media (max-width: 480px) {
  .instagram-icon {
    width: 50px;
    height: 50px;
  }
  .bottom-inner {
    padding: 10px 14px;
  }
  .banner {
    font-size: 0.8rem;
    padding: 3px 8px;
  }
}

/* "Über uns" section that appears when the user scrolls past the hero. */
.home-about {
  position: relative;
  z-index: 5;
  background: rgba(var(--fb-bg-rgb), 0.95);
  color: #fff;
  padding: 4rem 1.25rem 5rem;
}

@media (min-width: 720px) {
  .home-about {
    padding: 5rem 1.5rem 6rem;
  }
}

.home-about-inner {
  max-width: 36rem;
  margin: 0 auto;
}

.home-about-title {
  color: var(--accent);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: 0.5px;
  margin: 0 0 1.5rem;
  text-align: center;
  text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.4);
}

.home-about-body {
  font-size: 1.05rem;
  line-height: 1.65;
}

.home-about-body > * {
  margin-top: 0;
  margin-bottom: 1.4em;
}

.home-about-body > *:last-child {
  margin-bottom: 0;
}

/* =========================================================
   Static pages (page.php) — AGB, Community Guidelines, Impressum, Anmelden
   ========================================================= */

html:has(body.page),
body.page {
  height: auto;
  min-height: 100%;
  overflow: auto;
}

body.page {
  color: #fff;
}

.page-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 1.5rem;
  box-sizing: border-box;
  text-align: center;
}

.page-card {
  max-width: 36rem;
  width: 100%;
  min-width: 0;
}

/* "← Zurück" link to the home page (#5315). */
.page-back {
  display: block;
  width: fit-content;
  margin: 0 0 1.5rem;
  color: var(--accent);
  font-size: 0.9rem;
  text-decoration: none;
  opacity: 0.7;
}

.page-back:hover,
.page-back:focus-visible {
  text-decoration: underline;
  opacity: 1;
}

.page-title {
  color: var(--accent);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: 0.5px;
  margin: 0 0 1.5rem;
  text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.4);
}

.page-content {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.85;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

.page-content p {
  margin: 0 0 1em;
}

/* =========================================================
   Signup form (Anmelden page)
   ========================================================= */

.flizzbee-signup-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 2rem auto 1rem;
  width: 100%;
  max-width: 24rem;
  text-align: left;
  box-sizing: border-box;
}

.flizzbee-signup-form * {
  box-sizing: border-box;
}

.flizzbee-field-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 480px) {
  .flizzbee-field-row {
    flex-direction: row;
    align-items: stretch;
  }
}

/* Multi-field form (used by supporter / ambassador forms) */
.flizzbee-signup-form .flizzbee-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flizzbee-signup-form .flizzbee-field label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.3px;
}

.flizzbee-signup-form .flizzbee-field-optional {
  font-size: 0.75rem;
  opacity: 0.6;
  font-weight: 400;
  margin-left: 4px;
}

.flizzbee-signup-form input[type="email"],
.flizzbee-signup-form input[type="text"],
.flizzbee-signup-form select,
.flizzbee-signup-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  color: #fff;
  font-size: 1rem;
  padding: 11px 18px;
  border-radius: 999px;
  outline: none;
  font-family: inherit;
  margin: 0;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.flizzbee-signup-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2341ff00' stroke-width='2'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
  padding-right: 40px;
}

.flizzbee-signup-form select option {
  background: #0c0c0c;
  color: #fff;
}

.flizzbee-signup-form textarea {
  resize: vertical;
  min-height: 110px;
  font-family: inherit;
  line-height: 1.5;
  border-radius: 18px;
}

.flizzbee-signup-form input[type="email"]:focus,
.flizzbee-signup-form input[type="text"]:focus,
.flizzbee-signup-form select:focus,
.flizzbee-signup-form textarea:focus {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
}

.flizzbee-signup-form input::placeholder,
.flizzbee-signup-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.flizzbee-signup-form .flizzbee-field-row--submit {
  justify-content: center;
  margin-top: 6px;
}

.flizzbee-signup-form button {
  background: var(--accent);
  color: var(--fb-bg);
  font-weight: 700;
  font-size: 1rem;
  padding: 11px 26px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.5px;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  text-shadow: none;
}

.flizzbee-signup-form button:hover {
  background: #5fff2a;
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.45);
}

.flizzbee-signup-form button:active {
  transform: scale(0.98);
}

.flizzbee-signup-privacy {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.flizzbee-signup-privacy a {
  color: inherit;
  text-decoration: underline;
}

.flizzbee-signup-message {
  margin: 0;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.95rem;
  text-align: center;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  color: var(--accent);
}

.flizzbee-signup-message.error {
  background: rgba(255, 70, 70, 0.1);
  border-color: rgba(255, 70, 70, 0.4);
  color: #ff7a7a;
}

.flizzbee-signup-message.info {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
}

.flizzbee-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.privacy-note {
  font-size: 0.8rem !important;
  opacity: 0.6;
  margin-top: 2rem !important;
}

/* =========================================================
   Articles (single-article.php) — long-form content embedded in app
   Only the wrapper/scroll/title here; block typography lives in article-shared.css.
   ========================================================= */

html:has(body.fb-article-page),
body.fb-article-page {
  height: auto;
  min-height: 100%;
  overflow: auto;
}

body.fb-article-page {
  color: #fff;
}

.fb-article {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  box-sizing: border-box;
}

@media (min-width: 720px) {
  .fb-article {
    max-width: 42rem;
    padding: 4rem 1.5rem 5rem;
  }
}

.fb-article-title {
  font-size: clamp(1.9rem, 5.5vw, 2.7rem);
  line-height: 1.18;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
}

.fb-article-body {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

/* Uniform vertical rhythm inside article bodies */
.fb-article-body > *,
.fb-article-body .wp-block-group > * {
  margin-top: 0;
  margin-bottom: 1.4em;
}

.fb-article-body > *:last-child {
  margin-bottom: 0;
}

.fb-article-body .fb-hero {
  margin-top: 0;
}


/* --- App beta access (added with the public beta launch) ---------------- */
.beta-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 14px 0 6px;
}
.beta-btn {
  display: inline-block;
  padding: 10px 22px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.15s, color 0.15s;
}
.beta-btn:hover {
  background: var(--accent);
  color: var(--fb-bg);
}
.beta-btn-primary {
  background: var(--accent);
  color: var(--fb-bg);
}
.beta-btn-primary:hover {
  background: transparent;
  color: var(--accent);
}
.beta-btn-soon {
  opacity: 0.45;
  cursor: default;
  border-style: dashed;
}
.beta-hint {
  flex-basis: 100%;
  text-align: center;
  font-size: 12px;
  opacity: 0.55;
  color: #fff;
  margin: 2px 0 0;
}
@media (max-width: 600px) {
  .beta-btn { font-size: 14px; padding: 9px 18px; }
}
