/* ===== HERO SECTION CSS FOR BLOCKSY-CHILD =====
   PopustKod.org - Self-contained hero section styles
   ===== */

/* CSS Variables (scoped) */
.pk-hero-v2 {
  --color-primary: #E94B3C;
  --color-primary-dark: #D13A2D;
  --color-primary-light: #FFEBE9;
  --color-secondary: #FF9500;
  --color-secondary-dark: #E68600;
  --color-success: #10B981;
  --color-white: #FFFFFF;
  --color-gray-50: #FAFAFA;
  --color-gray-100: #F5F5F5;
  --color-gray-300: #D4D4D4;
  --color-gray-400: #A3A3A3;
  --color-gray-500: #737373;
  --color-gray-800: #262626;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;
  --leading-tight: 1.25;
  --leading-relaxed: 1.75;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
}

/* Hero Section Main Container */
.pk-hero-v2 {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background: linear-gradient(
    135deg,
    #1A1A2E 0%,
    #16213E 35%,
    #0F3460 65%,
    #1A1A2E 100%
  );
  padding: var(--spacing-2xl) var(--spacing-md);
  overflow: hidden;
}

.pk-hero-v2::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(
    ellipse at center,
    rgba(233, 75, 60, 0.18) 0%,
    rgba(233, 75, 60, 0.06) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.pk-hero-v2::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 40%;
  height: 70%;
  background: radial-gradient(
    ellipse at bottom left,
    rgba(255, 149, 0, 0.12) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.pk-hero-v2__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .pk-hero-v2__container {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--spacing-3xl);
  }
}

.pk-hero-v2__content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.pk-hero-v2__headline {
  font-family: var(--font-family);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  color: var(--color-white);
  margin: 0;
}

@media (min-width: 768px) {
  .pk-hero-v2__headline {
    font-size: var(--font-size-4xl);
  }
}

@media (min-width: 1024px) {
  .pk-hero-v2__headline {
    font-size: var(--font-size-5xl);
  }
}

.pk-hero-v2__headline-accent {
  color: var(--color-primary);
  position: relative;
  display: inline;
}

.pk-hero-v2__subheadline {
  font-size: var(--font-size-lg);
  font-weight: var(--font-normal);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  max-width: 500px;
}

@media (min-width: 768px) {
  .pk-hero-v2__subheadline {
    font-size: var(--font-size-xl);
  }
}

/* Hero Search Bar */
.pk-hero-v2__search {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  max-width: 500px;
}

.pk-hero-v2__search-wrapper {
  display: flex;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.pk-hero-v2__search-input {
  flex: 1;
  padding: var(--spacing-md) var(--spacing-lg);
  border: none;
  font-size: var(--font-size-base);
  font-family: var(--font-family);
  outline: none;
  background: transparent;
}

.pk-hero-v2__search-input::placeholder {
  color: var(--color-gray-400);
}

.pk-hero-v2__search-btn {
  padding: var(--spacing-md) var(--spacing-xl);
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  font-size: var(--font-size-base);
  font-weight: var(--font-semibold);
  font-family: var(--font-family);
  cursor: pointer;
  transition: background var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.pk-hero-v2__search-btn:hover {
  background: var(--color-primary-dark);
}

.pk-hero-v2__search-hint {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.6);
}

/* Hero Stats */
.pk-hero-v2__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pk-hero-v2__stat {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.pk-hero-v2__stat-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(233, 75, 60, 0.2);
  border-radius: var(--radius-md);
  color: var(--color-primary);
}

.pk-hero-v2__stat-content {
  display: flex;
  flex-direction: column;
}

.pk-hero-v2__stat-value {
  font-size: var(--font-size-xl);
  font-weight: var(--font-bold);
  color: var(--color-white);
}

.pk-hero-v2__stat-label {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.6);
}

/* Hero CTA */
.pk-hero-v2__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  background: var(--color-secondary);
  color: var(--color-white);
  font-size: var(--font-size-base);
  font-weight: var(--font-semibold);
  font-family: var(--font-family);
  text-decoration: none;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(255, 149, 0, 0.35);
  transition: all var(--transition-normal);
  width: fit-content;
}

.pk-hero-v2__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 149, 0, 0.45);
  color: var(--color-white);
}

/* Hero Visual Side - Featured Product */
.pk-hero-v2__visual {
  display: none;
  position: relative;
}

@media (min-width: 1024px) {
  .pk-hero-v2__visual {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Featured Product Card */
.pk-hero-product {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 280px;
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease;
  z-index: 5;
}

.pk-hero-product:hover {
  transform: translateY(-10px) rotate(0.5deg);
  box-shadow:
    0 35px 70px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 40px rgba(233, 75, 60, 0.12);
}

.pk-hero-product__image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.pk-hero-product__image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.pk-hero-product:hover .pk-hero-product__image img {
  transform: scale(1.08);
}

/* Hero Product Carousel */
.pk-hero-carousel {
  position: relative;
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.pk-hero-carousel__track {
  position: relative;
  width: 100%;
  height: 380px;
  margin-bottom: 8px;
}

.pk-hero-carousel__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(40px) scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.pk-hero-carousel__slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  z-index: 2;
}

.pk-hero-carousel__slide.prev {
  opacity: 0;
  transform: translateX(-40px) scale(0.9);
}

/* Carousel Indicators */
.pk-hero-carousel__indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.pk-hero-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0;
}

.pk-hero-carousel__dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.3);
}

.pk-hero-carousel__dot.active {
  background: #FFFFFF;
  transform: scale(1.4);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.3),
    0 0 15px rgba(255, 255, 255, 0.5);
}

.pk-hero-product__info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pk-hero-product__platform {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.pk-hero-product__platform-icon {
  vertical-align: middle;
  margin-right: 4px;
}

.pk-hero-product__name {
  font-size: 16px;
  font-weight: var(--font-semibold);
  color: var(--color-gray-800);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pk-hero-product__code {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--color-gray-50);
  border: 1px dashed var(--color-gray-300);
  border-radius: var(--radius-md);
}

.pk-hero-product__code-label {
  font-size: 12px;
  color: var(--color-gray-500);
}

.pk-hero-product__code-value {
  font-size: 14px;
  font-weight: var(--font-bold);
  font-family: monospace;
  color: var(--color-gray-800);
  letter-spacing: 1px;
}

/* Price Display */
.pk-hero-product__price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  flex-wrap: wrap;
}

.pk-hero-product__price-old {
  font-size: 14px;
  color: var(--color-gray-500);
  text-decoration: line-through;
}

.pk-hero-product__price-new {
  font-size: 18px;
  font-weight: var(--font-bold);
  color: var(--color-success);
}

.pk-hero-product__price-new .woocommerce-Price-amount,
.pk-hero-product__price-new .amount {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.pk-hero-product__price-old .woocommerce-Price-amount,
.pk-hero-product__price-old .amount {
  font-size: inherit;
  color: inherit;
}

.pk-hero-product__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 14px;
  font-weight: var(--font-semibold);
  border-radius: var(--radius-md);
  margin-top: 4px;
  transition: background 0.2s ease;
}

.pk-hero-product:hover .pk-hero-product__cta {
  background: var(--color-primary-dark);
}

/* Discount Badge */
.pk-hero-product__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: var(--color-white);
  font-size: 15px;
  font-weight: var(--font-extrabold);
  border-radius: 8px;
  box-shadow:
    0 4px 12px rgba(16, 185, 129, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  z-index: 10;
  letter-spacing: -0.5px;
}

/* Decorative elements */
.pk-hero-visual__decoration {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}

.pk-hero-visual__decoration--1 {
  width: 200px;
  height: 200px;
  background: var(--color-secondary);
  top: -50px;
  right: -80px;
}

.pk-hero-visual__decoration--2 {
  width: 140px;
  height: 140px;
  background: var(--color-primary);
  bottom: -40px;
  left: -60px;
}

/* Screen reader only text */
.pk-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
