/*
Theme Name: PowerTime
Theme URI: https://powertime.au
Author: PowerTime Team
Author URI: https://powertime.au
Description: Official FSE block theme for PowerTime – Australia's AI, Low-code & Tech Leadership Podcast. Dark, bold, tech-forward design.
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.7.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: powertime
Tags: blog, full-site-editing, block-patterns, block-styles, custom-background, custom-logo, custom-menu, dark, podcast, technology, one-column, two-columns
*/

/* ── Font smoothing ───────────────────────────────── */
body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════════════
   BACKGROUND FIX — force true black on every WP surface
   WordPress FSE applies its own grey (#f0f0f0 / #f6f6f6)
   on the body and .wp-site-blocks. This overrides all of it.
══════════════════════════════════════════════════ */
html,
body,
body.wp-theme-powertime,
.wp-site-blocks,
.is-layout-constrained,
.editor-styles-wrapper,
.block-editor-writing-flow,
.wp-block-post,
.entry-content,
.wp-block-group:not([class*="has-background"]) {
  background-color: #0a0c10 !important;
  color: #e8eaf0;
}

/* ── Legal page styles ────────────────────────────── */
.pt-legal__toc {
  background: #111318;
  border: 1px solid #1e2330;
  border-left: 3px solid #00d4ff;
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}
.pt-legal__toc h3 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.8rem;
}
.pt-legal__toc ol { padding-left: 1.2rem; margin: 0; }
.pt-legal__toc li { margin-bottom: 0.3rem; }
.pt-legal__toc a { color: #6b7280; font-size: 0.9rem; }
.pt-legal__toc a:hover { color: #00d4ff; }

.pt-legal__section { margin-bottom: 3rem; scroll-margin-top: 80px; }
.pt-legal__section-num {
  display: inline-block;
  font-family: monospace;
  font-size: 0.7rem;
  color: #00d4ff;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
  opacity: 0.8;
}
.pt-legal__section h2 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #1e2330;
}
.pt-legal__section p,
.pt-legal__section li { color: #9ca3af; font-size: 0.95rem; line-height: 1.8; }
.pt-legal__section ul,
.pt-legal__section ol { padding-left: 1.4rem; margin-bottom: 1rem; color: #9ca3af; font-size: 0.95rem; }
.pt-legal__section li { margin-bottom: 0.5rem; }

.pt-legal__highlight {
  background: #181c24;
  border: 1px solid #1e2330;
  border-radius: 6px;
  padding: 1.2rem 1.4rem;
  margin: 1.2rem 0;
  font-size: 0.875rem;
  color: #6b7280;
}
.pt-legal__highlight strong {
  color: #00d4ff;
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Header ──────────────────────────────────────── */
.wp-block-main-header {
  background: #0a0c10 !important;
  border-bottom: 1px solid #1e2330;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ── Footer ──────────────────────────────────────── */
.footer-dark {
  background: #111318 !important;
  border-top: 1px solid #1e2330;
}

/* ── Page hero banner ─────────────────────────────── */
.pt-page-hero { padding: 5rem 0 3.5rem; text-align: center; }
.pt-page-hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00d4ff;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1rem;
}
.pt-page-meta { font-size: 0.8rem; color: #6b7280; margin-top: 0.5rem; }

/* ── Outlined platform buttons ───────────────────── */
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button__link[style*="background-color:transparent"],
.wp-block-button__link[style*="background-color: transparent"] {
  background-color: transparent !important;
  color: #ffffff !important;
  border: 1px solid #444444 !important;
  border-radius: 6px !important;
  transition: background-color 0.18s, border-color 0.18s;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button__link[style*="background-color:transparent"]:hover {
  background-color: #ea6733 !important;
  border-color: #ea6733 !important;
  color: #ffffff !important;
}

/* ── Orange pill buttons ──────────────────────────── */
.wp-block-button__link[style*="background-color:#ea6733"] {
  transition: opacity 0.2s, transform 0.15s;
}
.wp-block-button__link[style*="background-color:#ea6733"]:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* ── Audio placeholder ────────────────────────────── */
.pt-audio-placeholder {
  background: #111318 !important;
  display: block;
  width: 100%;
  max-width: 460px;
}

/* ── Mobile ───────────────────────────────────────── */
@media (max-width: 768px) {
  .wp-block-columns.alignwide { flex-direction: column; }
  .wp-block-column { flex-basis: 100% !important; }
}

/* ── Platform button row spacing ──────────────────── */
.wp-block-buttons {
  gap: 0.75rem !important;
  row-gap: 0.75rem !important;
}

/* ── Cover block placeholder ──────────────────────── */
.wp-block-cover {
  border-radius: 16px;
  overflow: hidden;
}
