
/*
Theme Name: The BCLionsDen Pawdcast
Theme URI: https://example.com/themes/bclionsden-pawdcast
Author: ChatGPT
Author URI: https://openai.com
Description: A bold, responsive theme for The BCLionsDen Pawdcast. Dark background, burnt orange accents, centered hero YouTube embed with glass overlay, top-right social bar, and a 3x2 latest-posts grid.
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bclionsden-pawdcast
Tags: podcast, dark, responsive, grid
*/
:root {
  --burnt: #f15623;
  --black: #000000;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  background: var(--black);
  color: var(--white);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  line-height: 1.5;
  margin: 0;
}

a { color: var(--burnt); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  padding: 2rem 0 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-branding .site-title, .site-branding .site-description {
  margin: 0.25rem 0;
}

.custom-logo {
  height: auto;
  width: auto;
  max-width: 480px;
}

.nav-primary {
  margin-top: 1rem;
}

.nav-primary ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-primary a {
  color: var(--white);
  padding: 0.35rem 0.5rem;
  font-weight: 600;
}

.nav-primary li:not(:last-child)::after {
  content: "|";
  color: rgba(255,255,255,0.4);
  margin-left: 0.75rem;
}

/* Hero / YouTube */
.hero {
  position: relative;
  width: 100%;
  min-height: 800px;
  display: grid;
  place-items: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.55));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1100px, 92vw);
  padding: 1rem;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* Dark glass overlay behind the video */
.video-embed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  z-index: 0;
}

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


/* Video wrapper so we can position socials outside the player */
.video-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}

/* Place the social rail to the right of the player (outside the iframe box) */
.video-wrap .social-links {
  position: absolute;
  top: 50%;
  right: -56px; /* push outside with a comfortable gap */
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}

/* Keep existing button/icon sizes */
.video-wrap .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(241,86,35,0.35);
  background: rgba(241,86,35,0.08);
  transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease;
  backdrop-filter: blur(2px);
}

.video-wrap .social-links a:hover {
  transform: translateY(-1px) scale(1.03);
  border-color: rgba(255,255,255,0.6);
  background: rgba(241,86,35,0.18);
}

.video-wrap .social-links svg {
  width: 20px;
  height: 20px;
  fill: var(--burnt);
  transition: fill 120ms ease;
}

.video-wrap .social-links a:hover svg { fill: var(--white); }

/* On small screens, bring the rail inside the frame at the top-right for safety */
@media (max-width: 1024px) {
  .video-wrap .social-links {
    top: 12px;
    right: 12px;
    transform: none;
  }
}

@media (max-width: 640px) {
  .video-wrap .social-links { 
    top: calc(env(safe-area-inset-top, 0) + 12px); 
    right: calc(env(safe-area-inset-right, 0) + 12px);
    gap: 8px;
  }
  .video-wrap .social-links a { width: 44px; height: 44px; }
  .video-wrap .social-links svg { width: 20px; height: 20px; }
}


/* Latest Posts grid */
.section-latest {
  padding: 2.5rem 0 3rem;
}

.section-latest .section-title {
  font-size: clamp(1.25rem, 2vw + 0.5rem, 1.8rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.post-card {
  background: #0c0c0c;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.post-card:hover {
  transform: translateY(-2px);
  border-color: rgba(241,86,35,0.6);
  box-shadow: 0 12px 40px rgba(241,86,35,0.15);
}

/* Fixed rectangular crop for thumbs */
.post-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.post-body {
  padding: 1rem;
}

.post-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.post-excerpt {
  margin: 0 0 0.75rem 0;
  color: rgba(255,255,255,0.8);
}

.post-meta {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2rem 0;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  text-align: center;
}

/* Responsiveness */
@media (max-width: 1024px) {
  .hero { min-height: 600px; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero { min-height: 420px; }
  .nav-primary ul { gap: 0.5rem; }
  .nav-primary li:not(:last-child)::after { margin-left: 0.5rem; }
  .posts-grid { grid-template-columns: 1fr; }
}


/* Accessibility and motion preferences */
.social-links a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .social-links a,
  .social-links a:hover {
    transition: none;
    transform: none;
  }
}
.social-links a:active { transform: none; }
