/*
Theme Name: Pineapples on Tour
Theme URI: https://thepineapplesontour.co.uk/
Author: JBS Productions
Author URI: https://jbs.productions/
Description: A custom tropical podcast theme with a jungle nightlife feel, right sidebar player area, themed top bar, custom logo/title support, and an auto-updating footer.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: pineapples-on-tour
*/

:root {
  --pot-bg: #061224;
  --pot-bg-2: #0c1d33;
  --pot-surface: rgba(8, 22, 42, 0.86);
  --pot-surface-2: rgba(11, 29, 50, 0.94);
  --pot-accent: #f5a623;
  --pot-accent-2: #ffd07a;
  --pot-text: #f6f2e8;
  --pot-muted: #cfd8e3;
  --pot-teal: #1cc9c0;
  --pot-border: rgba(255,255,255,.10);
  --pot-shadow: 0 18px 60px rgba(0,0,0,.35);
  --pot-radius: 18px;
  --pot-container: 1240px;
  --pot-font-headings: "Arial Black", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --pot-font-body: Inter, Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(29, 196, 184, .28), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(0, 255, 182, .08), transparent 24%),
    linear-gradient(180deg, #07111f 0%, #0b1a2f 48%, #071321 100%);
  color: var(--pot-text);
  font-family: var(--pot-font-body);
  line-height: 1.65;
  min-height: 100vh;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
body::before {
  background:
    radial-gradient(ellipse at top left, rgba(11, 113, 96, .18), transparent 35%),
    radial-gradient(ellipse at bottom right, rgba(29, 201, 192, .14), transparent 35%);
}
body::after {
  opacity: .12;
  background-image:
    radial-gradient(circle at 20px 20px, rgba(255,255,255,.20) 2px, transparent 3px),
    radial-gradient(circle at 80px 60px, rgba(255,255,255,.12) 1px, transparent 2px);
  background-size: 140px 140px;
}

a { color: var(--pot-accent-2); text-decoration: none; }
a:hover, a:focus { color: #fff; }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--pot-font-headings);
  line-height: 1.15;
  letter-spacing: .02em;
  margin: 0 0 .65em;
  color: #fff4dd;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0,0,0,.25);
}

p, ul, ol { margin: 0 0 1.2rem; }

.site-shell {
  width: min(100% - 24px, var(--pot-container));
  margin-inline: auto;
}

.site-topbar {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(5, 15, 29, .96), rgba(10, 25, 45, .88));
  border-bottom: 1px solid var(--pot-border);
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
}
.site-topbar::before,
.site-topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 18px;
  pointer-events: none;
}
.site-topbar::before {
  top: 0;
  background:
    radial-gradient(circle at 12px 12px, rgba(34, 214, 193, .16) 0 8px, transparent 9px),
    radial-gradient(circle at 52px 8px, rgba(245,166,35,.16) 0 10px, transparent 11px),
    linear-gradient(90deg, rgba(18,124,105,.65), rgba(11,34,57,0));
  background-size: 120px 18px, 180px 18px, 100% 100%;
  opacity: .85;
}
.site-topbar::after {
  bottom: -1px;
  height: 36px;
  opacity: .24;
  background:
    radial-gradient(20px 18px at 20px 30px, #163b33 48%, transparent 51%),
    radial-gradient(22px 18px at 70px 32px, #1d4f45 48%, transparent 51%),
    radial-gradient(22px 18px at 120px 30px, #163b33 48%, transparent 51%),
    radial-gradient(22px 18px at calc(100% - 120px) 30px, #1d4f45 48%, transparent 51%),
    radial-gradient(20px 18px at calc(100% - 60px) 32px, #163b33 48%, transparent 51%);
  background-repeat: repeat-x;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0 12px;
  position: relative;
  flex-wrap: nowrap;
}

.branding {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}
.branding .custom-logo {
  max-height: 46px;
  width: auto;
  display: block;
}
.branding-copy { min-width: 0; }
.site-title {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  letter-spacing: .02em;
  line-height: 1.08;
  text-wrap: balance;
  word-break: normal;
}
.site-title a { color: #fff3d2; }
.site-description {
  margin: 4px 0 0;
  color: var(--pot-muted);
  font-size: .95rem;
}

.header-nav-wrap {
  margin-left: auto;
  min-width: 0;
  flex: 0 0 auto;
  position: relative;
}

.menu-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: rgba(255,255,255,.05);
  color: #fff3d5;
  font-weight: 700;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  position: relative;
}
.menu-toggle:hover,
.menu-toggle:focus {
  background: rgba(255,255,255,.09);
}
.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transform: translateX(-50%);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle-icon { top: 50%; margin-top: -1px; }
.menu-toggle-icon::before { top: -6px; }
.menu-toggle-icon::after { top: 6px; }
.header-nav-wrap.open .menu-toggle-icon { background: transparent; }
.header-nav-wrap.open .menu-toggle-icon::before { transform: translateX(-50%) rotate(45deg); top: 0; }
.header-nav-wrap.open .menu-toggle-icon::after { transform: translateX(-50%) rotate(-45deg); top: 0; }

.primary-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}
.primary-menu li { position: relative; }
.primary-menu a {
  display: block;
  color: #fff3d5;
  padding: 9px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .04em;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
  background: linear-gradient(180deg, rgba(245,166,35,.92), rgba(221,138,13,.92));
  color: #281500;
}

.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 38px 0 48px;
}

.main-content,
.widget-area,
.hero-card,
.post-card,
.comment-respond,
.comments-area,
.page-header {
  background: linear-gradient(180deg, rgba(10, 24, 44, .92), rgba(9, 21, 40, .88));
  border: 1px solid var(--pot-border);
  border-radius: var(--pot-radius);
  box-shadow: var(--pot-shadow);
}

.main-content {
  padding: 28px;
  overflow: hidden;
}
.home-main-content {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 8px 0 24px;
}
.home-entry {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
}
.home-entry .entry-content > *:last-child {
  margin-bottom: 0;
}

.home .pot-home,
.home .pot-hero,
.home .pot-section {
  background: transparent;
  box-shadow: none;
}
.home .pot-hero-box,
.home .pot-card,
.home .pot-cta {
  box-shadow: 0 10px 26px rgba(0,0,0,.18) !important;
}
.sidebar {
  position: relative;
}
.widget-area {
  padding: 22px;
  position: sticky;
  top: 110px;
}
.widget-area .widget {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.widget-area .widget:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.widget-area .widget-title,
.sidebar-player-title {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.sidebar-player-button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--pot-accent), #d98909);
  color: #261600;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 14px 20px;
  box-shadow: 0 12px 30px rgba(245,166,35,.22);
}

input, textarea, select {
  width: 100%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
}

.hero-card {
  margin-bottom: 28px;
  padding: 34px;
  background:
    radial-gradient(circle at 50% 12%, rgba(29, 201, 192, .20), transparent 22%),
    linear-gradient(180deg, rgba(7,21,40,.92), rgba(9,26,49,.92));
  position: relative;
  overflow: hidden;
}
.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-card::before {
  background:
    radial-gradient(60px 30px at 6% 14%, rgba(21,77,61,.55) 0 50%, transparent 52%),
    radial-gradient(70px 34px at 94% 20%, rgba(21,77,61,.55) 0 50%, transparent 52%),
    radial-gradient(90px 44px at 15% 100%, rgba(18,63,53,.45) 0 50%, transparent 52%),
    radial-gradient(90px 44px at 84% 100%, rgba(18,63,53,.45) 0 50%, transparent 52%);
  opacity: .7;
}
.hero-card p.lead { color: var(--pot-muted); font-size: 1.1rem; max-width: 60ch; }

.post-card {
  padding: 24px;
  margin-bottom: 24px;
}
.post-card:last-child { margin-bottom: 0; }
.entry-meta,
.post-meta,
.entry-footer { color: #bfd0db; font-size: .92rem; }
.entry-title { font-size: clamp(1.6rem, 2.2vw, 2.35rem); }
.entry-content > *:last-child { margin-bottom: 0; }

.page-header {
  padding: 24px 28px;
  margin-bottom: 24px;
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(6,16,29,.96), rgba(4,12,23,.98));
  color: var(--pot-muted);
}
.footer-inner {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 28px;
}
.footer-inner a { color: #ffe2a9; }

.screen-reader-text {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
}

.alignwide { width: 100%; }
.alignfull { width: calc(100% + 56px); margin-left: -28px; }

@media (max-width: 980px) {
  .content-wrap {
    grid-template-columns: 1fr;
  }
  .widget-area { position: static; }

  .topbar-inner {
    gap: 12px;
    padding: 10px 0 12px;
  }

  .branding .custom-logo { max-height: 34px; }

  .site-title {
    font-size: .95rem;
    line-height: 1.08;
  }

  .site-description { display: none; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    line-height: 1;
  }

  .main-navigation {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1000;
  }

  .primary-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    min-width: 240px;
    border-radius: 16px;
    margin: 0;
    padding: 12px;
    background: rgba(8, 22, 42, .98);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 16px 30px rgba(0,0,0,.28);
  }

  .header-nav-wrap.open .primary-menu { display: flex; }
}

@media (max-width: 640px) {
  .site-shell { width: min(100% - 16px, var(--pot-container)); }
  .main-content,
  .hero-card,
  .post-card,
  .page-header,
  .widget-area { padding: 18px; }
  .branding .custom-logo { max-height: 34px; }
  .site-title { font-size: .9rem; }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .alignfull { width: calc(100% + 36px); margin-left: -18px; }
}
