/* ========================================
   CFV2025 PAGES.CSS - ARCHITECTURAL SURGERY 2025
   CONSOLIDATES: front-page, single-product, customs101, blog styles
   PAGE-SPECIFIC STYLES
   ======================================== */

/* === FRONT PAGE STYLES === */
.front-page,
.home,
.page-template-front-page {
  /* Hide navigation on front page */
  .under-logo-menu { display: none; }
}

.front-page .section-title,
.home .section-title {
  color: var(--color-white);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  text-align: center;
  margin-bottom: var(--space-xl);
  text-shadow: var(--space-2) var(--space-2) var(--space-xxs) var(--bg-black-50);
}

.front-page .intro-text,
.home .intro-text {
  color: var(--color-white);
  font-size: var(--fs-lg);
  text-align: center;
  max-width: var(--space-800);
  margin: 0 auto var(--space-xl);
  text-shadow: var(--space-1) var(--space-1) var(--space-2) var(--bg-black-50);
}

.preview-title {
  color: var(--color-gray-300);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  text-align: center;
  margin: var(--space-xl) 0 var(--space-lg);
  text-shadow: var(--space-2) var(--space-2) var(--space-xxs) var(--bg-black-50);
}

/* Front page video preview */
.hero-video-preview {
  width: 100%;
  position: relative;
  z-index: var(--z-base);
  background-color: var(--bg-black-80);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  margin: var(--space-xl) 0;
}

.preview-title {
  color: var(--color-white);
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  padding: var(--space-lg) 0 0;
}

.slider-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.preview-video-slider {
  margin: 0 -10px;
}

.preview-video-slide {
  padding: 0 10px;
}

.preview-video-card {
  background-color: rgba(30, 30, 30, 0.95);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-video-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
}

.preview-video-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.preview-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.preview-video-card:hover .preview-video-thumb img {
  transform: scale(1.05);
}

.preview-video-title {
  padding: var(--space-md);
  background-color: rgba(20, 20, 20, 0.95);
  color: var(--color-white);
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.3;
}

/* Prevent FOUC (Flash of Unstyled Content) */
.preview-video-slider:not(.slick-initialized) {
  visibility: hidden;
  height: 400px;
  position: relative;
  overflow: hidden;
}

.preview-video-slider:not(.slick-initialized) .preview-video-slide:not(:first-child) {
  display: none;
}

.preview-video-slider:not(.slick-initialized) .preview-video-slide:first-child {
  max-width: 350px;
  margin: 0 auto;
}

/* Responsive video slider */
@media (max-width: 768px) {
  .preview-title {
    font-size: 1.3rem;
    padding: var(--space-md) 0 0;
  }
  
  .slider-container {
    padding: 0 var(--space-md);
  }
  
  .preview-video-slider {
    margin: 0 -5px;
  }
  
  .preview-video-slide {
    padding: 0 5px;
  }
}

.featured-video-trailer {
  width: 100%;
  height: auto;
  max-height: var(--space-600);
  object-fit: cover;
  display: block;
}

.cfv-featured-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: var(--bg-black-50);
  backdrop-filter: blur(var(--space-6));
  padding: var(--space-lg);
  color: var(--color-white);
  text-align: left;
}

.cfv-featured-title {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  color: var(--color-primary);
  text-decoration: none;
  margin-bottom: var(--space-sm);
}

.cfv-featured-excerpt {
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-gray-200);
  max-width: var(--space-800);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === SINGLE PRODUCT STYLES === */
.single-product {
  background: transparent !important;
}

.single-product .product-title,
.single-product .video-title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  text-transform: uppercase;
  line-height: var(--lh-tight);
  margin-bottom: var(--space-lg);
  text-shadow: var(--space-2) var(--space-2) var(--space-xxs) var(--bg-black-50);
}

.single-product .product-main-layout-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: var(--space-1400);
  gap: var(--space-xl);
  margin: 0 auto;
  padding: var(--space-lg);
}

.single-product .video-meta,
.single-product .product-meta {
  background: var(--bg-white-30);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  backdrop-filter: blur(var(--space-10));
}

.single-product .featuring-tags {
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  color: var(--color-gray-700);
  max-width: var(--space-600);
  border-radius: var(--radius-sm);
  background: var(--bg-white-50);
  padding: var(--space-sm);
  margin: var(--space-sm) 0;
}

.single-product .featuring-tags strong {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.025em;
}

.single-product .featuring-tags a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.single-product .featuring-tags a:hover {
  color: var(--color-primary-dark);
}

/* Single product buttons */
.single-product .single_add_to_cart_button,
.single-product .buy_now_button {
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-lg);
  margin: var(--space-sm) 0;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.single-product .single_add_to_cart_button:hover,
.single-product .buy_now_button:hover {
  transform: translateY(calc(var(--space-3) * -1));
  box-shadow: var(--shadow-xl);
}

/* Hide quantity selector on single product */
.single-product .quantity {
  display: none;
}

/* Related products */
.single-product .related.products h2,
.single-product .upsells.products h2 {
  color: var(--color-white);
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  text-align: center;
  border-bottom: var(--space-2) solid var(--color-primary-faded);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-lg);
}

/* Reviews section */
.single-product #reviews #comments h2,
.single-product #review_form_wrapper #reply-title {
  color: var(--color-white);
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
}

/* === CUSTOMS101 PAGE STYLES === */
.category-customs101 {
  background: var(--color-black);
  color: var(--color-white);
  min-height: 100vh;
}

.category-customs101 .cfv-page-title,
.category-customs101 .archive-title {
  color: var(--color-white);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  text-align: center;
  margin-bottom: var(--space-xl);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quickaccess-item {
  background: var(--bg-white-10);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-left: var(--space-xxs) solid var(--color-primary);
}

.quickaccess-item h3 {
  color: var(--color-white);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  margin: 0 0 var(--space-sm) 0;
}

.tool-header h3 {
  color: var(--color-white);
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  margin: 0 0 var(--space-lg) 0;
  text-align: center;
}

.calculation-result h4,
.hts-results h4,
.country-details h4 {
  color: var(--color-white);
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-md);
}

/* === BLOG STYLES === */
.blog .cfv-page-title,
.category .cfv-page-title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--color-dark);
}

.blog-post {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.blog-post .entry-title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  color: var(--color-dark);
  margin-bottom: var(--space-lg);
  line-height: var(--lh-tight);
}

.blog-post .entry-meta {
  font-size: var(--fs-sm);
  color: var(--color-gray-600);
  margin-bottom: var(--space-lg);
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.blog-post .entry-content {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--color-gray-800);
}

.blog-post .entry-content h2,
.blog-post .entry-content h3,
.blog-post .entry-content h4 {
  color: var(--color-dark);
  margin: var(--space-xxxl) 0 var(--space-lg) 0;
  line-height: var(--lh-tight);
}

.blog-post .entry-content h2 {
  font-size: var(--fs-2xl);
  border-bottom: var(--space-2) solid var(--color-primary);
  padding-bottom: var(--space-sm);
}

.blog-post .entry-content h3 {
  font-size: var(--fs-xl);
}

.blog-post .entry-content h4 {
  font-size: var(--fs-lg);
}

.blog-post .entry-content a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.blog-post .entry-content a:hover {
  color: var(--color-primary-dark);
}

/* Blog grid items */
.blog-grid-item {
  background: var(--bg-white-50);
  border: var(--space-1) solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all 0.3s ease;
}

.blog-grid-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(calc(var(--space-2) * -1));
}

.blog-grid-image-link img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.blog-grid-title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-sm);
}

.blog-grid-title a {
  color: var(--color-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-grid-title a:hover {
  color: var(--color-primary);
}

/* === TALENT DIRECTORY STYLES === */
.page-talent-directory .cfv-page-title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--color-dark);
}

/* Talent slider alignment */
.talent-slider {
  display: flex;
  align-items: flex-start;
}

.talent-slider .slick-track {
  display: flex;
  align-items: flex-start;
}

.talent-slide {
  display: flex;
  align-items: flex-start;
  height: auto;
}

.talent-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  width: 100%;
}

.talent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--space-280), 1fr));
  gap: var(--space-xl);
  padding: var(--space-lg) 0;
}

.talent-card {
  background: var(--bg-white-50);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all 0.3s ease;
  border: var(--space-1) solid var(--color-gray-200);
}

.talent-card:hover {
  transform: translateY(calc(var(--space-xxs) * -1));
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.talent-avatar {
  width: var(--space-120);
  height: var(--space-120);
  border-radius: var(--radius-round);
  object-fit: cover;
  margin: 0 auto var(--space-lg);
  border: var(--space-xxs) solid var(--color-white);
  box-shadow: var(--shadow-md);
}

.talent-name {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
}

.talent-specialty {
  font-size: var(--fs-sm);
  color: var(--color-gray-600);
  margin-bottom: var(--space-lg);
}

/* === ARCHIVE STYLES === */
.archive .cfv-page-title,
.post-type-archive-product .cfv-page-title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--color-dark);
  text-transform: uppercase;
}

.archive-description {
  text-align: center;
  font-size: var(--fs-lg);
  color: var(--color-gray-600);
  max-width: var(--space-800);
  margin: 0 auto var(--space-xl);
  line-height: var(--lh-relaxed);
}

/* === NO RESULTS STYLES === */
.no-results-header h1 {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--color-dark);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.category-suggestions h3 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  color: var(--color-dark);
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* === RESPONSIVE PAGE STYLES === */
@media (max-width: 768px) {
  .front-page .section-title,
  .home .section-title {
    font-size: var(--fs-xl);
  }
  
  .preview-title {
    font-size: var(--fs-3xl);
  }
  
  .single-product .product-main-layout-wrap {
    flex-direction: column;
    padding: var(--space-md);
  }
  
  .single-product .product-title,
  .single-product .video-title {
    font-size: var(--fs-xl);
  }
  
  .blog-post {
    padding: var(--space-lg);
  }
  
  .talent-grid {
    grid-template-columns: repeat(auto-fill, minmax(var(--space-250), 1fr));
    gap: var(--space-lg);
  }
  
  .talent-avatar {
    width: var(--space-100);
    height: var(--space-100);
  }
}

@media (max-width: 480px) {
  .front-page .section-title,
  .home .section-title {
    font-size: var(--fs-lg);
  }
  
  .preview-title {
    font-size: var(--fs-2xl);
  }
  
  .single-product .single_add_to_cart_button,
  .single-product .buy_now_button {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--fs-base);
  }
  
  .blog-post .entry-title {
    font-size: var(--fs-xl);
  }
  
  .talent-grid {
    grid-template-columns: 1fr;
  }
  
  .quickaccess-item {
    padding: var(--space-md);
  }
}