/*
Theme Name: FuriousDee
Theme URI: https://furiousdee.com
Author: FuriousDee Media Solutions LLC
Author URI: https://furiousdee.com
Description: Site theme for furiousdee.com. A FuriousDee home page with Projects and Contact pages, a product page per app (Sortie LiveCam and GetYourVibeOn) in each app's own colors, a shared Privacy Policy, and an unlinked Sortie LiveCam Test page for App Review. The pages it needs are created automatically on activation.
Version: 2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: furiousdee
*/

/*
 * Colors come from the brand class on <body> (see fd_brand() in functions.php):
 * brand-furiousdee for the studio pages, brand-sortiecam and
 * brand-getyourvibeon for the product pages.
 */

:root,
.brand-furiousdee {
  --accent: #f2f2f4;
  --accent-hover: #ffffff;
  --accent-ink: #0b0b0d;
  --bg: #0a0a0c;
  --bg-alt: #121215;
  --bg-hero: #060608;
  --header-bg: rgba(10, 10, 12, 0.88);
  --card: #18181c;
  --card-border: #2a2a30;
  --text: #f2f2f4;
  --text-dim: #b0b0ba;
  --text-faint: #85858f;
  --link: #8fbaf9;
  --max-width: 1100px;
}

/* GetYourVibeOn: the original red-on-black. */
.brand-getyourvibeon {
  --accent: #ff3030;
  --accent-hover: #ff4b4b;
  --accent-ink: #130505;
  --bg: #0a0909;
  --bg-alt: #131010;
  --bg-hero: #050404;
  --header-bg: rgba(10, 9, 9, 0.88);
  --card: #1a1515;
  --card-border: #2b2222;
  --text: #f2eeee;
  --text-dim: #b8acac;
  --text-faint: #8a7d7d;
  --link: #ff3030;
}

/* Sortie LiveCam: black with the splash screen's blue. */
.brand-sortiecam {
  --accent: #4d98f7;
  --accent-hover: #6caaf9;
  --accent-ink: #040d1a;
  --bg: #08090c;
  --bg-alt: #0e1117;
  --bg-hero: #06070a;
  --header-bg: rgba(8, 9, 12, 0.88);
  --card: #141922;
  --card-border: #232c3a;
  --text: #eef2f7;
  --text-dim: #a9b4c4;
  --text-faint: #7b8798;
  --link: #4d98f7;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap.narrow {
  max-width: 760px;
}

h1, h2, h3 { font-weight: 800; letter-spacing: -0.01em; }

h2 {
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
  margin: 0 0 40px;
  text-align: center;
}

a { color: inherit; }

img { max-width: 100%; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--card-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
}

.brand-icon {
  border-radius: 9px;
  display: block;
}

.site-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a:hover { color: var(--text); }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 26px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-small {
  padding: 8px 18px;
  font-size: 0.9rem;
  background: var(--accent);
  color: var(--accent-ink);
  white-space: nowrap;
}

.btn-small:hover { background: var(--accent-hover); }

/* Hero */

.hero {
  background: var(--bg-hero);
  padding-bottom: 56px;
  text-align: center;
}

.hero-art {
  display: block;
  width: 100%;
  height: auto;
}

.hero-cta-row {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-sub {
  color: var(--text-dim);
  margin: 0;
  font-size: 1.05rem;
}

/* Strip */

.strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 18px 0;
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.95rem;
}

.strip .dot { color: var(--accent); }

/* Sections */

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-alt);
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
}

.step-num {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.step p {
  color: var(--text-dim);
  margin: 0;
}

/* Features */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  color: var(--text-dim);
}

/* Screenshots */

.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.screen {
  margin: 0;
  text-align: center;
}

.screen img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--card-border);
  display: block;
}

.screen figcaption {
  margin-top: 12px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.95rem;
}

/* FAQ */

.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--card-border);
}

.faq-item:last-child { border-bottom: none; }

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-dim);
}

/* Footer */

.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--card-border);
}

.site-footer p {
  margin: 0 0 10px;
  color: var(--text-faint);
  font-size: 0.82rem;
}

.site-footer p:first-child {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-links a {
  text-decoration: none;
  font-weight: 600;
}

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

/* Simple pages (Privacy / Support / any standard WordPress Page) */

.page-hero {
  padding: 64px 0 40px;
  text-align: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--card-border);
}

.page-hero h1 {
  font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
  margin: 0 0 10px;
}

.page-hero .meta {
  color: var(--text-dim);
  margin: 0;
}

.legal-content {
  padding: 64px 0 96px;
}

.legal-content h2 {
  text-align: left;
  font-size: 1.35rem;
  margin: 40px 0 12px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
  color: var(--text);
}

.legal-content p {
  color: var(--text-dim);
  margin: 0 0 16px;
}

.legal-content ul,
.legal-content ol {
  color: var(--text-dim);
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--link);
  text-decoration: underline;
}

.back-home {
  display: inline-block;
  margin-top: 8px;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.back-home:hover { color: var(--text); }

.legal-content a:hover { color: var(--text); }

.legal-content strong { color: var(--text); }

/* FuriousDee home */

.studio-hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 96px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 70% at 12% 0%, rgba(255, 48, 48, 0.22), transparent 70%),
    radial-gradient(ellipse 60% 70% at 88% 100%, rgba(77, 152, 247, 0.24), transparent 70%),
    var(--bg-hero);
  border-bottom: 1px solid var(--card-border);
}

.studio-mark {
  display: block;
  margin: 0 auto 28px;
  border-radius: 26px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
}

.studio-name {
  margin: 0;
  font-size: clamp(3rem, 2rem + 6vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.studio-kicker {
  margin: 14px 0 0;
  color: var(--text-dim);
  font-weight: 700;
  font-size: clamp(0.85rem, 0.75rem + 0.5vw, 1.1rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  /* Letter spacing trails the last letter; pad the other side to stay centered. */
  padding-left: 0.4em;
}

.studio-sub {
  margin: 28px auto 0;
  max-width: 32em;
  color: var(--text);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
}

.home-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.home-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 36px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.home-link:hover,
.home-link:focus-visible {
  transform: translateY(-2px);
  border-color: #4a4a55;
}

.home-link-icons {
  display: flex;
  gap: 10px;
  height: 56px;
  margin-bottom: 8px;
}

.home-link-icons img {
  border-radius: 13px;
  display: block;
}

.home-link-glyph {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff3030, #4d98f7);
  color: #fff;
  font-weight: 800;
  font-size: 1.7rem;
}

.home-link-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
}

.home-link-title .arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}

.home-link:hover .arrow { transform: translateX(4px); }

.home-link-text { color: var(--text-dim); }

/* Projects */

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.project-card {
  --project-accent: var(--accent);
  position: relative;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 36px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

/* No lift on hover: it would move the App Store badge, which Apple doesn't allow. */
.project-card:hover,
.project-card:focus-within {
  border-color: var(--project-accent);
}

.project-icon {
  flex: none;
  border-radius: 27px;
  display: block;
}

.project-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-status {
  align-self: flex-start;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid var(--project-accent);
  color: var(--project-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-name {
  margin: 6px 0 0;
  text-align: left;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
}

.project-tagline {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.project-summary { margin: 0; color: var(--text-dim); }

.project-more {
  align-self: flex-start;
  margin-top: 8px;
  color: var(--project-accent);
  font-weight: 700;
  text-decoration: none;
}

/* Stretch the Learn more link over the whole card. */
.project-more::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
}

.project-more:focus-visible { outline: none; }

/* The App Store badge and link sit above the stretched link. */
.project-card .app-store-badge,
.project-store-link {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: 16px;
}

.project-store-link {
  color: var(--text-dim);
  font-weight: 600;
}

.project-store-link:hover { color: var(--text); }

/* App Store badge: Apple's artwork, unmodified and not animated (no hover
   effects). Keep clear space of at least a quarter of the badge's height
   around it (see fd_app_store_badge()). */

.app-store-badge {
  display: inline-block;
  line-height: 0;
}

.app-store-badge img {
  display: block;
  max-width: none;
}

.app-store-badge:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 10px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px;
}

.contact-card h2 {
  text-align: left;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 12px;
}

.contact-card p,
.contact-card address {
  margin: 0 0 10px;
  font-style: normal;
  font-size: 1.1rem;
  color: var(--text);
}

.contact-card a {
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-card a:hover { text-decoration: underline; }

.contact-card .contact-note {
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* Sortie LiveCam Test */

.test-section { padding-top: 56px; }

.test-player {
  max-width: 960px;
  margin: 0 auto 56px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: #000;
}

.test-player iframe { display: block; }

.test-instructions { padding: 0 24px; }

/* Privacy Policy */

.policy-toc {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px 24px 8px;
  margin: 0 0 40px;
}

.policy-toc p { margin-bottom: 8px; }

.legal-content h2.policy-app {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
  font-size: 1.7rem;
}

/* Keep in-page anchors clear of the sticky header. */
[id] { scroll-margin-top: 80px; }

/* Responsive */

@media (max-width: 860px) {
  .site-nav .nav-section { display: none; }
  .steps, .features-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .home-links { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 56px 0; }
  h2 { margin-bottom: 28px; }
  .header-inner { gap: 16px; }
  .site-nav .nav-secondary,
  .header-inner .btn-small { display: none; }
  .studio-hero { padding: 80px 0 64px; }
  .home-link, .project-card { padding: 28px 24px; }
  .project-card { flex-direction: column; gap: 20px; }
  .project-icon { width: 88px; height: 88px; border-radius: 20px; }
}
