/*
Theme Name:   PlayYourCourt (Kadence Child)
Theme URI:    https://playyourcourt.com
Description:  PYC brand child theme for Kadence — dark header/footer, light reading surface, GT America Extended + Supreme LL.
Author:       PlayYourCourt
Template:     kadence
Version:      1.0.0
Text Domain:  pyc-kadence-child
*/

/* ---------- Brand fonts (self-hosted, swap for woff2 versions if you have them) ---------- */
@font-face {
  font-family: 'GT America Extended';
  src: url('./fonts/GT-America-Extended-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Supreme LL';
  src: url('./fonts/SupremeLLSub-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Brand tokens mapped onto Kadence global palette ---------- */
:root {
  --pyc-yellow: #E8FF3D;
  --pyc-black: #0A0A0A;
  --pyc-white: #FFFFFF;
  --pyc-blue: #1565FF;
  --pyc-green: #00E5A0;
  --pyc-orange: #FF6B1A;
  --pyc-gray-bg: #F5F5F2;
  --pyc-gray-text: #55554F;
  --pyc-gray-muted: #8A8A84;

  --global-palette1: var(--pyc-yellow);   /* accent */
  --global-palette2: #D9F02E;             /* accent hover */
  --global-palette3: var(--pyc-black);    /* strongest text */
  --global-palette4: #26261F;             /* strong text */
  --global-palette5: var(--pyc-gray-text);/* medium text */
  --global-palette6: var(--pyc-gray-muted);/* subtle text */
  --global-palette7: var(--pyc-gray-bg);  /* subtle bg */
  --global-palette8: #FFFFFF;             /* lighter bg */
  --global-palette9: #FFFFFF;             /* white / content bg */

  --global-heading-font-family: 'GT America Extended', sans-serif;
  --global-body-font-family: 'Supreme LL', sans-serif;
}

/* ---------- Base ---------- */
body {
  font-family: var(--global-body-font-family);
  color: #26261F;
  background: var(--pyc-gray-bg);
}
h1, h2, h3, h4, .entry-title, .archive-title, .site-title {
  font-family: var(--global-heading-font-family);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.entry-content p { font-size: 18px; line-height: 1.75; }
.entry-content a { color: var(--pyc-black); text-decoration: underline; text-decoration-color: var(--pyc-yellow); text-decoration-thickness: 2px; }
.entry-content a:hover { opacity: .75; }

/* ---------- Header: outer shells transparent, black only on main row ---------- */
#masthead, .site-header, .site-header-wrap, .site-header-inner-wrap {
  background: transparent;
}
.site-main-header-wrap, .site-main-header-inner-wrap,
.site-main-header-inner-wrap .site-header-row {
  background: var(--pyc-black);
}
.site-header .site-branding img.custom-logo { max-height: 52px; width: auto; }
.main-navigation .primary-menu-container > ul > li > a {
  font-family: var(--global-body-font-family);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FFFFFF;
}
.main-navigation .primary-menu-container > ul > li > a:hover,
.main-navigation .primary-menu-container > ul > li.current-menu-item > a {
  color: var(--pyc-yellow);
  background: transparent;
}
/* header CTA — give the menu item / button the class .pyc-cta */
.site-header .pyc-cta a, .site-header .button, .header-button {
  white-space: nowrap;
  background: var(--pyc-yellow);
  color: var(--pyc-black);
  font-family: var(--global-heading-font-family);
  font-size: 12px;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 12px 20px;
  border: none;
}
.site-header .pyc-cta a:hover, .site-header .button:hover, .header-button:hover { background: #D9F02E; color: var(--pyc-black); }
/* promo top bar: set Header > Top Row background to #E8FF3D in the customizer */
.site-top-header-wrap, .site-top-header-inner-wrap,
.site-top-header-inner-wrap .site-header-row { background: var(--pyc-yellow); color: var(--pyc-black); }
.site-top-header-wrap a, .site-top-header-wrap .header-html { color: var(--pyc-black); }

.site-main-header-wrap { border-bottom: 1px solid #262624; }


/* ---------- Buttons ---------- */
.button, .wp-block-button__link, button[type="submit"], input[type="submit"] {
  background: var(--pyc-yellow);
  color: var(--pyc-black);
  font-family: var(--global-heading-font-family);
  text-transform: uppercase;
  font-size: 13px;
  border-radius: 6px;
  transition: background 150ms ease-out, transform 150ms ease-out;
}
.button:hover, .wp-block-button__link:hover, button[type="submit"]:hover, input[type="submit"]:hover {
  background: #D9F02E;
  color: var(--pyc-black);
}
.button:active, .wp-block-button__link:active { background: #C7DC22; }

/* ---------- Archive / category pages ---------- */
.archive .site-main, .blog .site-main { background: var(--pyc-gray-bg); }
/* big dark archive hero */
.archive .kadence-breadcrumbs { color: var(--pyc-gray-muted); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 32px;}
.archive .archive-description { color: #C9C9C2; font-size: 15px; line-height: 1.6; }

.archive .entry-hero-container-inner, .archive .hero-section {
  background: var(--pyc-black);
}
.archive .entry-hero-container-inner .archive-title,
.archive .hero-section .archive-title {
  color: var(--pyc-yellow);
	font-size: clamp(36px, 4.5vw, 64px);

  line-height: 0.95;
}
/* post cards — force padding + yellow shadow past Kadence's generated CSS */
.entry.loop-entry, .loop-entry {
  background: #FFFFFF;
  border: 1.5px solid var(--pyc-black);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--pyc-yellow) !important;
overflow: hidden;
	transition: transform 150ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.loop-entry .post-thumbnail { border-radius: 6.5px 6.5px 0 0; overflow: hidden; }
.loop-entry:hover { transform: scale(0.99); }
.entry.loop-entry .entry-content-wrap, .loop-entry .entry-content-wrap { padding: 20px 22px 24px !important; }

/* category pills — smaller, lighter, and hides the "|" separators */
.loop-entry .entry-taxonomies { font-size: 0; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.loop-entry .entry-taxonomies a, .entry-taxonomies .category-links a {
  display: inline-block;
  border: 1px solid #C9C9C2;
  border-radius: 100px;
  padding: 3px 9px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pyc-gray-text);
  background: transparent;
	  gap: 6px;

}
.loop-entry .entry-taxonomies .category-links {
  font-size: 0;
  display: flex;
  flex-wrap: wrap;
 }
.entry-header .entry-taxonomies .category-links.term-links {
  font-size: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.loop-entry.type-post .entry-taxonomies .category-style-pill a{
	  color: var(--pyc-gray-text); 

}

/* pagination */
.pagination .page-numbers {
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  border: 1.5px solid var(--pyc-black);
  border-radius: 6px;
  font-family: var(--global-heading-font-family);
  font-size: 13px;
  color: var(--pyc-black);
  background: transparent;
}
.pagination .page-numbers.current { background: var(--pyc-black); color: var(--pyc-yellow); border-color: var(--pyc-black); }
.pagination .page-numbers.next, .pagination .page-numbers.prev { width: auto; padding: 0 16px; background: var(--pyc-yellow); border-color: var(--pyc-yellow); }

/* ---------- Single post ---------- */
.single .site-main { background: #FFFFFF; }
.single .entry-title { font-size: clamp(32px, 4vw, 46px); line-height: 1.02; }
.single .entry-meta, .single .entry-meta a { color: var(--pyc-gray-muted); }
.single .entry-content { max-width: 760px; margin-left: auto; margin-right: auto; }
.single .entry-content h2 { font-size: 26px; margin-top: 1.6em; }
.single .entry-content blockquote {
  background: var(--pyc-yellow);
  border: none;
  border-radius: 8px;
  padding: 26px 30px;
  font-family: var(--global-heading-font-family);
  font-size: 20px;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--pyc-black);
}
.single .entry-content blockquote p { font-size: inherit; line-height: inherit; margin: 0; }
/* key takeaways box — wrap in a group block with class .pyc-takeaways */
.pyc-takeaways {
  background: var(--pyc-black);
  border-radius: 8px;
  padding: 28px 32px;
  color: #E8E8E2;
}
.pyc-takeaways h2, .pyc-takeaways h3 {
  color: var(--pyc-yellow);
  font-size: 15px;
  margin: 0 0 12px;
}
.pyc-takeaways ul { margin: 0; font-size: 15.5px; line-height: 1.7; }

/* author box (enable in Customizer > Posts > Single Post Layout > Author Box) */
.entry-author {
  border: 1.5px solid var(--pyc-black);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--pyc-yellow);
  padding: 26px 30px;
  background: #FFFFFF;
}
.entry-author .author-name { font-family: var(--global-heading-font-family); text-transform: uppercase; font-size: 16px; }
.entry-author .author-image img { border-radius: 50%; }

/* related posts (rendered by functions.php on black) */
.pyc-related { background: var(--pyc-black); padding: 56px 24px 64px; margin-top: 56px; }
.pyc-related-inner { max-width: 1200px; margin: 0 auto; }
.pyc-related h2 { color: var(--pyc-yellow); font-size: 34px; margin: 0 0 28px; }
.pyc-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 800px) { .pyc-related-grid { grid-template-columns: 1fr; } }
.pyc-related-card {
  background: #141412;
  border: 1px solid #33332F;
  border-radius: 8px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 150ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pyc-related-card:hover { transform: scale(0.99); }
.pyc-related-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.pyc-related-card .pyc-related-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.pyc-related-card .pyc-related-cat {
  align-self: flex-start;
  background: var(--pyc-yellow); color: var(--pyc-black);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 100px;
}
.pyc-related-card h3 { font-size: 16px; line-height: 1.12; margin: 0; }
.pyc-related-card h3 a { color: #FFFFFF; text-decoration: none; }
.pyc-related-card .pyc-related-date { color: var(--pyc-gray-muted); font-size: 12px; }

/* ---------- Ticker + footer (dark) ---------- */
.pyc-ticker {
  background: var(--pyc-black);
  border-top: 1px solid #262624;
  border-bottom: 1px solid #262624;
  overflow: hidden;
  padding: 10px 0;
}
.pyc-ticker-track {
  display: flex;
  width: max-content;
  animation: pyc-marquee 40s linear infinite;
}
.pyc-ticker-track span {
  flex: none;
  white-space: nowrap;
  color: var(--pyc-yellow);
  font-family: var(--global-heading-font-family);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@keyframes pyc-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .pyc-ticker-track { animation: none; } }

.site-footer, .site-footer-wrap, .site-middle-footer-wrap, .site-bottom-footer-wrap { background: var(--pyc-black); color: var(--pyc-gray-muted); }
.site-footer a { color: #FFFFFF; }
.site-footer a:hover { color: var(--pyc-yellow); }
.site-footer .widget-title { color: var(--pyc-yellow); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--global-body-font-family); }
/* ---------- Featured first post (page 1 only) ---------- */
body:not(.paged) #archive-container > li.entry-list-item:first-child {
  grid-column: 1 / -1;
}
body:not(.paged) #archive-container > li.entry-list-item:first-child article.loop-entry {
  display: grid;
  grid-template-columns: 56% minmax(0, 1fr);
  align-items: stretch;
  box-shadow: 6px 6px 0 var(--pyc-yellow) !important;
}
body:not(.paged) #archive-container > li.entry-list-item:first-child .post-thumbnail {
  height: 100%;
  border-radius: 6.5px 0 0 6.5px;
  overflow: hidden;
}
body:not(.paged) #archive-container > li.entry-list-item:first-child .post-thumbnail-inner {
  height: 100%;
  padding-bottom: 0 !important;
}
body:not(.paged) #archive-container > li.entry-list-item:first-child .post-thumbnail img {
  width: 100%; height: 100%; object-fit: cover;
}
body:not(.paged) #archive-container > li.entry-list-item:first-child .entry-content-wrap {
  padding: 36px 40px !important;
  align-self: center;
  min-width: 0;
}
body:not(.paged) #archive-container > li.entry-list-item:first-child .entry-title {
  font-size: 28px;
}
@media (max-width: 800px) {
  body:not(.paged) #archive-container > li.entry-list-item:first-child article.loop-entry { grid-template-columns: 1fr; }
  body:not(.paged) #archive-container > li.entry-list-item:first-child .post-thumbnail { border-radius: 6.5px 6.5px 0 0; height: auto; }
  body:not(.paged) #archive-container > li.entry-list-item:first-child .post-thumbnail-inner { padding-bottom: 66.67% !important; height: auto; }
}
.archive .entry-hero .hero-container .entry-header,
.archive .entry-header.title-align-center {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  text-align: left !important;
  align-items: flex-start !important;
  justify-content: flex-start;
}
.archive .entry-hero-container-inner { padding-bottom: 40px; }
.archive .content-container.site-container { margin-top: -40px; position: relative; z-index: 10; }
.archive #primary.content-area { margin-top: 0 !important; padding-top: 0 !important; }
.archive #main { padding-top: 0; margin-top: 0; }

.archive #archive-container { padding-top: 0; margin-top: 0; }
.archive #main, .blog #main { padding-top: 0; margin-top: 0; }
.archive #archive-container, .blog #archive-container { padding-top: 0; margin-top: 0; }

.archive #primary.content-area, .blog #primary.content-area {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.kadence-posts-list li.entry-list-item {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0;
}

.archive .site-main, .blog .site-main { background: transparent; }
.blog #primary.content-area { padding-top: 40px !important; }

/* ---------- Single post sidebar + CTA cards ---------- */
.single .post-thumbnail img { border-radius: 8px; }
.single #secondary .sidebar-inner-wrap { position: sticky; top: 32px; display: flex; flex-direction: column; gap: 24px; }
.pyc-side-cta {
  border-radius: 8px;
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.pyc-side-cta h4 {
  margin: 0;
  font-family: var(--global-heading-font-family);
  font-size: 20px; line-height: 1.05; text-transform: uppercase;
}
.pyc-side-cta p { margin: 0; font-size: 14px; line-height: 1.55; }
.pyc-side-cta .pyc-side-cta-btn {
  display: block; text-align: center;
  font-family: var(--global-heading-font-family);
  font-size: 13px; text-transform: uppercase;
  padding: 13px 18px; border-radius: 6px;
  text-decoration: none;
  transition: background 150ms ease-out;
}
.pyc-side-cta .pyc-side-cta-note { font-size: 11.5px; text-align: center; opacity: .7; }
.pyc-side-cta--plus { background: var(--pyc-black); color: #E8E8E2; box-shadow: 4px 4px 0 var(--pyc-yellow); }
.pyc-side-cta--plus h4 { color: var(--pyc-yellow); }
.pyc-side-cta--plus .pyc-side-cta-btn { background: var(--pyc-yellow); color: var(--pyc-black) !important; }
.pyc-side-cta--plus .pyc-side-cta-btn:hover { background: #D9F02E; }
.pyc-side-cta--quiz { background: var(--pyc-yellow); color: var(--pyc-black); border: 1.5px solid var(--pyc-black); }
.pyc-side-cta--quiz .pyc-side-cta-btn { background: var(--pyc-black); color: var(--pyc-yellow) !important; }
.pyc-side-cta--quiz .pyc-side-cta-btn:hover { background: #262624; }
