<?php
/**
 * Podcast Name Generator — EEAT-optimized PHP page
 * - Helpful instructions + video
 * - Embeds your generator + shortcode fallback
 * - Monetization Blueprint opt-in
 * - FAQ + JSON-LD (HowTo, FAQPage, SoftwareApplication)
 * - Last updated auto-stamp for EEAT
 */

$author_name   = 'Matt F.';
$author_title  = 'Podcasting & Automation';
$author_url    = 'https://podcastpontifications.com/about/'; // update if needed
$contact_url   = 'https://podcastpontifications.com/contact/'; // update
$site_name     = 'Podcast Pontifications';
$canonical_url = 'https://' . ($_SERVER['HTTP_HOST'] ?? 'podcastpontifications.com') . rtrim(dirname($_SERVER['REQUEST_URI'] ?? '/'), '/') . '/podcast-name-generator.php';
$last_updated  = date('F j, Y', @filemtime(__FILE__) ?: time());

// simple esc helpers
function e($s){ return htmlspecialchars($s ?? '', ENT_QUOTES, 'UTF-8'); }
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Podcast Name Generator (With Availability Checks) | <?php echo e($site_name); ?></title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="canonical" href="<?php echo e($canonical_url); ?>">
<meta name="description" content="Generate podcast name ideas with audience-first context, then check availability across domains and social handles. Step-by-step guide included.">
<meta property="og:title" content="Podcast Name Generator (With Availability Checks)">
<meta property="og:description" content="Generate podcast name ideas, refine by tone and keywords, then check availability fast.">
<meta property="og:type" content="website">
<meta property="og:url" content="<?php echo e($canonical_url); ?>">

<style>
  :root{--bg:#0b0b0c;--card:#101214;--ink:#e8eaed;--muted:#aeb4bd;--brand:#ff3b30;--accent:#2dd4bf;--ring: rgba(45,212,191,.35);}
  *{box-sizing:border-box}
  body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.55 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
  a{color:#7cc7ff}
  .wrap{max-width:1100px;margin:0 auto;padding:28px 18px}
  .hero{display:grid;gap:18px;grid-template-columns:1.2fr .8fr;align-items:center}
  @media (max-width:900px){.hero{grid-template-columns:1fr}}
  .kicker{color:var(--accent);font-weight:600;letter-spacing:.02em}
  h1{font-size:clamp(26px,4vw,40px);margin:.25em 0}
  .sub{color:var(--muted);margin-top:-6px}
  .card{background:var(--card);border:1px solid rgba(255,255,255,.06);border-radius:16px;padding:18px;box-shadow:0 6px 24px rgba(0,0,0,.35)}
  .grid{display:grid;gap:16px}
  .grid-2{grid-template-columns:1fr 1fr}
  @media (max-width:900px){.grid-2{grid-template-columns:1fr}}
  .steps ol{margin:0;padding-left:1.1em}
  .steps li{margin:.55em 0}
  .video{position:relative;width:100%;padding-bottom:56.25%;border-radius:12px;overflow:hidden}
  .video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
  .iframe-wrap{aspect-ratio:1/1.1; width:100%; border:0}
  .iframe-wrap iframe{width:100%;height:100%;border:0}
  .muted{color:var(--muted)}
  .author{display:flex;gap:14px;align-items:center;margin-top:12px}
  .avatar{width:44px;height:44px;border-radius:50%;background:#222;border:1px solid rgba(255,255,255,.08)}
  details{background:var(--card);border:1px solid rgba(255,255,255,.08);padding:14px;border-radius:12px}
  details+details{margin-top:10px}
  summary{cursor:pointer;font-weight:600}
  .cta{display:inline-block;background:var(--brand);color:#fff;text-decoration:none;padding:12px 18px;border-radius:10px;font-weight:700;box-shadow:0 4px 18px rgba(255,59,48,.35)}
  .optin{background:#111;border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:22px}
  .optin h2{color:#fff;margin:.2em 0 .4em}
  .optin ul{list-style:none;padding:0;margin:.6em 0}
  .optin li{margin:.35em 0}
  input[type="text"],input[type="email"]{width:100%;padding:12px 14px;border-radius:8px;border:1px solid rgba(255,255,255,.15);background:#0d0f12;color:#fff;outline:0}
  input[type="text"]:focus,input[type="email"]:focus{box-shadow:0 0 0 4px var(--ring);border-color:transparent}
  .disclaimer{font-size:13px;color:var(--muted)}
  .center{display:flex;justify-content:center;align-items:center}
  .img-resp{max-width:100%;height:auto;display:block;border-radius:12px}
</style>

<!-- JSON-LD: HowTo + FAQ + SoftwareApplication -->
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "HowTo",
      "name": "How to Find a Great Podcast Name",
      "description": "Audience-first workflow to generate podcast name ideas and check availability.",
      "totalTime": "PT5M",
      "estimatedCost": {"@type":"MonetaryAmount","currency":"USD","value":"0"},
      "supply": [{"@type":"HowToSupply","name":"Keywords that match your show"}],
      "tool": [{"@type":"HowToTool","name":"Podcast Name Generator"}],
      "step": [
        {"@type":"HowToStep","name":"Describe your show","text":"Write 2–4 sentences about the theme, format, and promise."},
        {"@type":"HowToStep","name":"Set tone & vibe","text":"Examples: investigative, comedic, inspirational, newsy."},
        {"@type":"HowToStep","name":"Define your audience","text":"Who you want to attract and why it matters."},
        {"@type":"HowToStep","name":"Add keywords","text":"Seed words relevant to topic, niche, or guests."},
        {"@type":"HowToStep","name":"Generate ideas","text":"Click Generate to see contextual suggestions."},
        {"@type":"HowToStep","name":"Shortlist favorites","text":"Check names you like; view rationale and fit."},
        {"@type":"HowToStep","name":"Check availability","text":"Run domain + social handle checks."},
        {"@type":"HowToStep","name":"Claim & host","text":"Secure a domain and set up hosting."}
      ]
    },
    {
      "@type": "FAQPage",
      "mainEntity": [
        {"@type":"Question","name":"How many words should a podcast name be?","acceptedAnswer":{"@type":"Answer","text":"2–4 words is a sweet spot—short, memorable, and pronounceable."}},
        {"@type":"Question","name":"Should I include keywords in the title?","acceptedAnswer":{"@type":"Answer","text":"If it helps discoverability without sounding clunky, yes. Balance clarity with brandability."}},
        {"@type":"Question","name":"What if the .com is taken?","acceptedAnswer":{"@type":"Answer","text":"Consider .fm, .show, .podcast, or a modifier like 'show' or 'pod'. Avoid hyphens if possible."}},
        {"@type":"Question","name":"Can I change my podcast name later?","acceptedAnswer":{"@type":"Answer","text":"Yes, but plan redirects and update artwork, feeds, and profiles to avoid confusion."}},
        {"@type":"Question","name":"How do I avoid trademark issues?","acceptedAnswer":{"@type":"Answer","text":"Search USPTO and your country’s registry, plus major platforms, to ensure distinctiveness."}}
      ]
    },
    {
      "@type":"SoftwareApplication",
      "name":"Podcast Name Generator",
      "applicationCategory":"BusinessApplication",
      "operatingSystem":"Web",
      "offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},
      "url":"<?php echo e($canonical_url); ?>"
    }
  ]
}
</script>
</head>
<body>
  <div class="wrap">
    <section class="hero">
      <div>
        <div class="kicker">Free Tool</div>
        <h1>Podcast Name Generator (with Availability Checks)</h1>
        <p class="sub">Generate on-brand name ideas, see why each fits your audience, and check domains & social handles—fast.</p>
        <p class="muted">Last updated: <?php echo e($last_updated); ?> • Author: <a href="<?php echo e($author_url); ?>"><?php echo e($author_name); ?></a></p>
        <div class="author">
          <div class="avatar" aria-hidden="true"></div>
          <div class="muted">Built by <?php echo e($author_name); ?> — <?php echo e($author_title); ?>. Questions? <a href="<?php echo e($contact_url); ?>">Contact me</a>.</div>
        </div>
      </div>
      <div class="video card" aria-label="Overview video">
        <iframe src="https://www.youtube.com/embed/DOTCewwAfk0?rel=0&modestbranding=1" title="How to use the Podcast Name Generator" allowfullscreen></iframe>
      </div>
    </section>

    <section class="grid grid-2" style="margin-top:22px">
      <div class="card steps">
        <h2>Instructions</h2>
        <ol>
          <li><strong>Describe your show:</strong> theme, format, and promise (2–4 sentences).</li>
          <li><strong>Set tone &amp; vibe:</strong> e.g., comedic take on news, investigative, inspirational.</li>
          <li><strong>Who’s it for?</strong> Define your target listener; it guides naming choices.</li>
          <li><strong>Add keywords:</strong> niche, topic, guest profile, or hook phrases.</li>
          <li><strong>Generate names:</strong> You’ll get ideas with context on why they fit.</li>
          <li><strong>Shortlist favorites:</strong> Check the boxes next to names you like.</li>
          <li><strong>Run availability checks:</strong> Domains + YouTube, Instagram, TikTok, X/Twitter.</li>
          <li><strong>Claim &amp; host:</strong> Secure the domain and set up podcast hosting.</li>
        </ol>
      </div>

      <div class="card">
        <img class="img-resp" src="https://podcastpontifications.com/wp-content/uploads/2025/07/podcast-name-notes.png" alt="Podcast naming worksheet preview">
      </div>
    </section>

    <section style="margin-top:24px">
      <div class="card">
        <h2 class="kicker" style="margin-bottom:8px">Try the Generator</h2>
        <p class="muted" style="margin-top:-6px">If you’re on WordPress and WPCode is active, we’ll run your saved snippet automatically.</p>

        <?php
          // Prefer shortcode if available (WP environment)
          $rendered = '';
          if (function_exists('do_shortcode')) {
            $rendered = do_shortcode('[wpcode id="5300"]');
          }
          if ($rendered) {
            echo $rendered;
          } else {
            // Fallback to iframe of this tool or the hosted generator
            // If this file IS the generator endpoint, you can change the src to a dedicated /generator-endpoint.php
            ?>
            <div class="iframe-wrap card" style="padding:0">
              <iframe src="https://podcastpontifications.com/podcast-name-generator.php" title="Podcast Name Generator"></iframe>
            </div>
            <?php
          }
        ?>
      </div>
    </section>

    <section style="margin-top:26px">
      <details>
        <summary>Pro tips for choosing a sticky podcast name</summary>
        <ul>
          <li>Keep it to <strong>2–4 words</strong>; easy to say and remember.</li>
          <li>Read it out loud. Check for <strong>unwanted double meanings</strong>.</li>
          <li>Try the <strong>radio test</strong>: can someone type it without seeing it?</li>
          <li>Check <strong>trademarks</strong> (USPTO) and major platforms.</li>
          <li>If <code>.com</code> is taken, try <code>.fm</code>, <code>.show</code>, <code>.podcast</code>, or tasteful modifiers.</li>
        </ul>
      </details>
      <details>
        <summary>FAQ</summary>
        <div class="grid" style="margin-top:12px">
          <div>
            <strong>How many words should I aim for?</strong>
            <div class="muted">2–4 is ideal for memorability and artwork fit.</div>
          </div>
          <div>
            <strong>Should I stuff keywords?</strong>
            <div class="muted">Use them when natural—brand clarity beats keyword stuffing.</div>
          </div>
          <div>
            <strong>Can I rename later?</strong>
            <div class="muted">Yes—just update artwork, feeds, redirects, and profiles consistently.</div>
          </div>
          <div>
            <strong>What about social handles?</strong>
            <div class="muted">The tool helps you check availability. Consider simple, pronounceable handles.</div>
          </div>
        </div>
      </details>
    </section>

    <section style="margin-top:30px">
      <div class="optin card">
        <h2>Download Your <span style="color:var(--brand)">Free</span> Podcast Monetization Blueprint</h2>
        <p class="muted">Learn how to grow your audience, drive traffic, and turn your podcast into a revenue engine—even if you’re just starting.</p>

        <div class="grid grid-2" style="margin-top:12px">
          <div>
            <img class="img-resp" src="https://podcastpontifications.com/wp-content/uploads/2025/05/book-image-1.png" alt="Monetization blueprint cover">
          </div>
          <div>
            <div class="video" style="margin-bottom:14px">
              <iframe src="https://www.youtube.com/embed/SK4TYnqlvJM?rel=0" title="Blueprint overview" allowfullscreen></iframe>
            </div>

            <ul>
              <li>✅ 32+ proven monetization strategies</li>
              <li>✅ BONUS: 2-part video training</li>
              <li>✅ Google &amp; Trends tactics for traffic</li>
              <li>✅ Real examples, tools &amp; case studies</li>
            </ul>

            <!-- Aweber form (kept as provided) -->
            <form action="https://www.aweber.com/scripts/addlead.pl" method="post" target="_new">
              <input type="hidden" name="meta_web_form_id" value="224570238">
              <input type="hidden" name="meta_split_id" value="">
              <input type="hidden" name="unit" value="awlist6777142">
              <input type="hidden" id="redirect_2901c55d6f8cb354adde6f9acfcee376" name="redirect" value="https://podcastpontifications.com/thank-you-for-subscribing/">
              <input type="hidden" name="meta_redirect_onlist" value="">
              <input type="hidden" name="meta_adtracking" value="">
              <input type="hidden" name="meta_message" value="1">
              <input type="hidden" name="meta_required" value="from">

              <label for="name" class="muted" style="display:block;margin-bottom:6px">Name</label>
              <input id="name" name="name" type="text" placeholder="Enter your name" required>

              <label for="email" class="muted" style="display:block;margin:10px 0 6px">Email</label>
              <input id="email" name="email" type="email" placeholder="Enter your email address" required>

              <div class="center" style="margin-top:14px">
                <button type="submit" class="cta">Get the Blueprint</button>
              </div>
              <p class="disclaimer center" style="margin-top:8px"><a href="https://www.aweber.com/permission.htm" target="_blank" rel="noopener noreferrer">We respect your privacy</a></p>
            </form>
          </div>
        </div>
      </div>
    </section>

    <section style="margin-top:22px">
      <p class="disclaimer">
        The information provided through our program, software, videos, and website is true and accurate to the best of our knowledge.
        We do not guarantee results or income—your success depends on effort and consistency.
        We do not offer legal, tax, medical, or financial advice. Any income examples are illustrative only.
        Please use good judgment and consult qualified professionals when needed.
      </p>
    </section>
  </div>
</body>
</html>