/*
==========================================================================
 CHIKENFIELD CHILD THEME - CORE ARCHITECTURE STYLES
==========================================================================
*/

/* --- 1. GLOBAL TYPOGRAPHY & READABILITY --- */
/* -------------------------------------------------------------------------- */

/* Base font styles for desktop */
body, p {
  font-size: 18px;
  line-height: 1.7;
}

/* Responsive typography for mobile */
@media (max-width: 768px) {
  /* Larger base text on mobile */
  body, p, .chikenfield-card-description {
    font-size: 1.3rem !important; 
  }
  
  /* Smaller headings on mobile */
  h1, .is-style-huge, .has-huge-font-size {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
  }
  h2 {
    font-size: 2rem !important;
    line-height: 1.3 !important;
  }
}

/* --- 2. MOBILE NAVIGATION MENU --- */
/* -------------------------------------------------------------------------- */

#nav_top.active {
  background: transparent;
  backdrop-filter: blur(5px); 
  -webkit-backdrop-filter: blur(5px);
}
#nav_top.active .menu-item a {
  font-size: 1.5rem !important;      
  padding-top: 15px !important;       
  padding-bottom: 15px !important;
  text-align: center;                
  color: #D3AF37 !important;        
  transition: all 0.2s ease;
	border-radius:10px;
}
#nav_top.active .menu-item a:hover {
  background-color: rgba(211, 175, 55, 0.2) !important; 
  color: #ffffff !important;
}
#nav_top.active ul.sub-menu {
  background-color: rgba(0, 0, 0, 0.2) !important; 
	border-radius:30px;
}
#nav_top.active ul.sub-menu .menu-item a {
  font-weight: normal !important;
  font-size: 1.1rem !important;
}

/* --- 3. HOMEPAGE COMPONENTS --- */
/* -------------------------------------------------------------------------- */

/* Homepage: Series Cards Grid */
.chikenfield-series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  justify-content: center;
  margin: 40px auto;
  max-width: 1200px;
  gap: 30px;
  align-items: stretch;
}
.chikenfield-series-card {
  display: flex;
  height: 420px;
  border-radius: 20px !important;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(211, 175, 55, 0.3);
}
.chikenfield-series-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.chikenfield-series-card .wp-block-cover__background,
.chikenfield-series-card > span[aria-hidden="true"] {
  background: linear-gradient( to top, rgba(0, 20, 38, 0.95) 0%, rgba(0, 20, 38, 0.7) 45%, transparent 75% ) !important;
  opacity: 1 !important;
}
.chikenfield-series-card .wp-block-cover__inner-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 25px !important;
  height: 100%;
  z-index: 2;
}
.chikenfield-card-title, .chikenfield-card-subtitle, .chikenfield-card-description {
  text-align: center;
  color: #D3AF37 !important;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}
.chikenfield-card-title {
  font-size: 2.5rem !important;
  line-height: 1.1 !important;
  margin-bottom: 0 !important;
}
.chikenfield-card-subtitle {
  margin-top: 5px !important;
  margin-bottom: auto !important;
  font-size: 1.1rem !important;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.chikenfield-card-description {
  font-size: 1.3rem !important;
  line-height: 1.4 !important;
  margin-bottom: 0 !important;
}
.chikenfield-card-link {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
}

/* Homepage: Team Showcase */
.character-showcase-wrapper {
  display: block;
  max-width: 1200px;
  margin: 20px auto 40px auto;
  text-decoration: none;
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.character-showcase-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.character-showcase-wrapper:hover .character-portrait img {
  transform: scale(1.05);
}
.character-showcase-inner {
  background-color: rgba(0, 20, 38, 0.7);
  border: 1px solid rgba(211, 175, 55, 0.5);
  border-radius: 20px;
  padding: 30px;
}
.character-portraits {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}
.character-portrait {
  flex: 1;
  text-align: center;
}
.character-portrait img {
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 4px solid #D3AF37;
  object-fit: cover;
  margin-bottom: 10px;
  box-shadow: 0 0 15px rgba(211, 175, 55, 0.4), 0 5px 15px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}
.character-portrait h4 {
  margin-top: 5px !important;
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 5px;
}
.character-portrait p {
  color: #D3AF37;
  font-size: 1rem;
  line-height: 1.4;
}
.character-showcase-cta {
  text-align: center;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 10px;
}
@media (max-width: 768px) {
  .character-portraits {
    flex-direction: column;
    align-items: center;
  }
}

/* --- 4. SERIES & SHOP PAGE COMPONENTS --- */
/* -------------------------------------------------------------------------- */

/* Series Page: Hero Section */
.series-hero-section {
  border-radius: 20px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.series-hero-section .wp-block-cover__image-background {
  object-fit: cover !important;
  opacity: 0.5 !important;
  filter: grayscale(100%);
}
.series-hero-section .wp-block-cover__background {
  background: linear-gradient( to top, rgba(0, 20, 38, 0.80) 0%, rgba(0, 20, 38, 0.3) 45%, transparent 75% ) !important;
  opacity: 1 !important;
}
.series-hero-section .wp-block-cover__inner-container {
  max-width: 800px;
  padding: 40px 20px;
}
.series-hero-title {
  color: #D3AF37 !important;
  font-size: 3.5rem !important;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
  margin: 0;
  line-height: 1.1;
}
.series-hero-description {
  color: #D3AF37 !important; /* Changed to match titles for consistency */
  font-size: 1.3rem !important;
  line-height: 1.6 !important;
  margin-top: 15px; /* Tightened spacing */
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Series Page: Product Section Container */
.series-product-section {
  max-width: 1200px;
  margin: 40px auto !important;
}
.series-products-title {
  text-align: center;
  font-size: 2.5rem;
  color: #D3AF37;
  margin-bottom: 40px;
}

/* Animated Product Filter Navigation */
@property --bg-position { syntax: "<number>"; inherits: true; initial-value: 100; }
@property --border-opacity { syntax: "<number>"; inherits: true; initial-value: 0.3; }
@property --glow-opacity { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --glow-blur { syntax: "<number>"; inherits: true; initial-value: 0; }

.product-filter-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}
.filter-button {
  all: unset;
  box-sizing: border-box;
  position: relative;
  display: inline-block;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 50px;
  background-color: #1a1a1a;
  transition: --bg-position 1.5s ease-in-out, --border-opacity 0.3s ease, --glow-opacity 0.3s ease, --glow-blur 0.3s ease, transform 0.2s ease;
}
.filter-button span {
 background: linear-gradient( to right, #D3AF37, #ffffff, #ffa14f, #ffffff, #D3AF37 ) no-repeat calc(var(--bg-position) * 1%) 0% / 400%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.filter-button::before {
  content: "";
  position: absolute;
  top: -2px; left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  background: linear-gradient( to right, #D3AF37, #ffffff, #ffa14f, #ffffff, #D3AF37 ) no-repeat calc(var(--bg-position) * 1%) 0% / 400%;
  border-radius: 50px;
  opacity: var(--border-opacity);
  z-index: -1;
}
.filter-button::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient( to right, #D3AF37, #ffa14f, #D3AF37, #ffa14f, #D3AF37 ) no-repeat calc(var(--bg-position) * 1%) 0% / 400%;
  border-radius: 50px;
  filter: blur(calc(var(--glow-blur) * 1px));
  opacity: var(--glow-opacity);
  z-index: -2;
}
.filter-button:hover,
.filter-button.active {
  --bg-position: 0;
  --border-opacity: 1;
  --glow-opacity: 0.4;
  --glow-blur: 20;
}
.filter-button:active {
  transform: scale(0.98);
}

/* WooCommerce Product Grid (Isotope Edition) */
.woocommerce ul.products {
  margin: 0 -15px !important;
  padding: 0 !important;
  list-style: none !important;
}
.woocommerce ul.products::before, .woocommerce ul.products::after {
  display: none !important;
}
.woocommerce ul.products li.product {
  width: calc(33.333% - 30px) !important;
  margin: 15px !important;
  float: none !important;
  padding: 20px !important;
  text-align: center;
  position: relative;
  border: 1px solid rgba(211, 175, 55, 0.3) !important;
  border-radius: 20px !important;
  background-color: rgba(0, 20, 38, 0.5) !important;
}
@media (max-width: 992px) {
  .woocommerce ul.products li.product {
    width: calc(50% - 30px) !important;
  }
}
@media (max-width: 600px) {
  .woocommerce ul.products li.product {
    width: calc(100% - 30px) !important;
  }
}
.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
  color: #D3AF37 !important;
  font-size: 1.2rem !important;
  padding: 0 10px !important;
}
.woocommerce ul.products li.product .price {
  color: #ffffff !important;
}
.woocommerce ul.products li.product .button {
  background-color: #D3AF37 !important;
  color: #001426 !important;
  border-radius: 50px !important;
  margin-top: 15px !important;
  transition: background-color 0.3s ease;
  padding: 8px 24px !important;
}
.woocommerce ul.products li.product .button:hover {
  background-color: #f0c942 !important;
}

/* --- 5. WOOCOMMERCE PAGE-SPECIFIC FIXES --- */
/* -------------------------------------------------------------------------- */

/* Empty Cart Page: "Browse" Button */
.empty-cart-cta-button {
  width: 100% !important;
  margin-top: 20px !important;
  margin-bottom: 60px !important;
  display: flex !important;
  justify-content: center !important;
}
.empty-cart-cta-button .wp-block-button__link {
  background-color: #D3AF37 !important;
  color: #001426 !important;
  border-radius: 50px !important;
  padding: 12px 30px !important;
  font-size: 1.2rem !important;
  font-weight: bold !important;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.empty-cart-cta-button .wp-block-button__link:hover {
  background-color: #f0c942 !important;
  transform: scale(1.05);
}

/* Shop Page: Hide Pagination */
.post-type-archive-product .woocommerce-pagination {
  display: none !important;
}