/*
Theme Name: Lord Apollo
Theme URI: https://iamlordapollo.com
Author: Lord Apollo
Description: Official creator-hub theme for Lord Apollo — hero, auto-updating YouTube video feed, about, community, merch, and newsletter sections.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: lord-apollo
*/

:root {
  --bg: #0b0b0f;
  --bg-alt: #131319;
  --text: #f2f0e9;
  --text-muted: #b5b2a8;
  --gold: #d9a441;
  --gold-bright: #f2c368;
  --border: #24242c;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 15, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 1.5rem;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  text-decoration: none;
  font-size: 1.1rem;
}

.logo img {
  max-height: 36px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--gold-bright);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

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

.btn-primary {
  background: var(--gold);
  color: #1a1305;
}

.btn-ghost {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: transparent;
}

.btn-subscribe {
  background: #cc1f1f;
  color: #fff;
  white-space: nowrap;
}

/* Hero */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 164, 65, 0.15), transparent 60%);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin: 0 0 1rem;
  letter-spacing: 0.03em;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

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

.section h2 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.section-sub {
  color: var(--text-muted);
  margin: 0 0 2rem;
}

/* Videos */
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.link-arrow {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--gold-bright);
  text-decoration: none;
  font-weight: 600;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-image {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), #7a5a1e);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Community */
.social-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.social-grid a {
  display: block;
  padding: 0.9rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.social-grid a:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* Merch */
.merch-block {
  text-align: center;
}

/* Contact */
.contact-block {
  max-width: 520px;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1 1 240px;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 1rem;
}

.form-note {
  margin-top: 0.75rem;
  color: var(--gold-bright);
  min-height: 1.2em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner a {
  color: var(--gold-bright);
  text-decoration: none;
}

/* Generic post/page fallback content (index.php, single.php-less pages) */
.entry-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.entry-content h1 {
  font-size: 2rem;
}

/* Responsive */
@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-width: 220px;
  }
}

@media (max-width: 700px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    display: none;
  }

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

  .btn-subscribe {
    display: none;
  }
}
