/* ============================================================================
   DYNAMIC PRODUCT FEATURE DESIGNS - COMPREHENSIVE CSS
   ============================================================================
   This CSS file contains all styles for feature boundary designs, feature
   design styles, and attribute boundary designs referenced in the database.
   ============================================================================ */

/* ============================================================================
   FEATURE BOUNDARY DESIGNS (27 designs from lex_boundary_designs table)
   ============================================================================ */

/* 1. Straight Boundary */
.bd-straight {
  border-top: none;
  border-bottom: none;
}

/* 2-4. Wave Boundaries */
.bd-wave-top {
  position: relative;
  overflow: hidden;
}

.bd-wave-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 80%);
}

.bd-wave-bottom {
  position: relative;
  overflow: hidden;
  padding-bottom: 80px;
}

.bd-wave-bottom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: inherit;
  clip-path: polygon(0 60%, 100% 20%, 100% 100%, 0 100%);
}

.bd-wave-both {
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 80px;
}

.bd-wave-both::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 80%);
}

.bd-wave-both::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: inherit;
  clip-path: polygon(0 60%, 100% 20%, 100% 100%, 0 100%);
}

/* 5-6. Diagonal Cuts */
.bd-diag-left {
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.bd-diag-right {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 90%);
}

/* 7-8. Rounded Corners */
.bd-rounded-top {
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

.bd-rounded-bottom {
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

/* 9. Oval Top */
.bd-oval-top {
  border-radius: 50% 50% 0 0 / 20% 20% 0 0;
}

/* 10-11. Blob Shapes */
.bd-blob-top {
  border-radius: 60% 40% 0 0 / 100% 100% 0 0;
}

.bd-blob-bottom {
  border-radius: 0 0 40% 60% / 0 0 100% 100%;
}

/* 12-14. Patterns */
.bd-zigzag {
  background-image: 
    linear-gradient(135deg, transparent 25%, currentColor 25%, currentColor 50%, transparent 50%),
    linear-gradient(45deg, transparent 25%, currentColor 25%, currentColor 50%, transparent 50%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  background-repeat: repeat;
  opacity: 0.1;
}

.bd-dots {
  background-image: radial-gradient(circle, rgba(0,0,0,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.bd-lines {
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 10px,
    rgba(0,0,0,0.05) 10px,
    rgba(0,0,0,0.05) 11px
  );
}

/* 15. Hero Full Width */
.bd-hero-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(1rem, calc(50vw - 600px));
  padding-right: max(1rem, calc(50vw - 600px));
}

/* 16. Card Grid */
.bd-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* 17. Glass Effect */
.bd-glass {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 18. Gradient Background */
.bd-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* 19. Split Background */
.bd-split {
  background: linear-gradient(90deg, 
    var(--split-color-1, #667eea) 0%, 
    var(--split-color-1, #667eea) 50%, 
    var(--split-color-2, #764ba2) 50%, 
    var(--split-color-2, #764ba2) 100%
  ) !important;
}

/* 20. No Padding */
.bd-no-padding {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* 21-22. Curves */
.bd-curve-top {
  border-top-left-radius: 50%;
  border-top-right-radius: 50%;
}

.bd-curve-bottom {
  border-bottom-left-radius: 50%;
  border-bottom-right-radius: 50%;
}

/* 23. Zigzag (Alternative) */
.bd-zigzag2 {
  position: relative;
}

.bd-zigzag2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: linear-gradient(135deg, currentColor 25%, transparent 25%),
              linear-gradient(225deg, currentColor 25%, transparent 25%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 0;
}

/* 24. Slanted */
.bd-slanted {
  transform: skewY(-2deg);
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.bd-slanted > * {
  transform: skewY(2deg);
}

/* 25. Boxed */
.bd-boxed {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* 26. Padded */
.bd-padded {
  padding: 4rem 2rem !important;
}

@media (min-width: 768px) {
  .bd-padded {
    padding: 6rem 3rem !important;
  }
}

/* 27. Shadowed Section */
.bd-shadowed {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ============================================================================
   FEATURE DESIGN STYLES (16 styles from general_design_preset enum)
   ============================================================================ */

/* 1. Default Preset */
.preset-default {
  /* Keep default styling */
}

/* 2. Boxed Content */
.preset-boxed {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .preset-boxed {
    padding: 3rem 2rem;
  }
}

/* 3. Full Width */
.full_width {
  width: 100%;
  max-width: 100%;
}

/* 4. Hero Section */
.preset-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}

@media (min-width: 768px) {
  .preset-hero {
    min-height: 80vh;
    padding: 6rem 3rem;
  }
}

/* 5. Strip Banner */
.preset-strip {
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
}

.preset-strip .strip-content {
  display: flex;
  white-space: nowrap;
  animation: scroll-horizontal 30s linear infinite;
}

@keyframes scroll-horizontal {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 6. Card Grid */
.preset-cards {
  padding: 3rem 1.5rem;
}

.preset-cards > .attributesGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* 7. Glass Effect */
.preset-glass {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(15px) saturate(200%);
  -webkit-backdrop-filter: blur(15px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  border-radius: 1rem;
}

/* 8. Rounded Box */
.preset-rounded {
  border-radius: 2rem;
  padding: 3rem 2rem;
  overflow: hidden;
}

/* 9. Background Image Section */
.preset-bg-image {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.preset-bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.preset-bg-image > * {
  position: relative;
  z-index: 1;
}

/* 10. Minimal */
.preset-minimal {
  padding: 2rem 1.5rem;
  background: transparent;
}

/* 11. No Padding */
.preset-no-padding {
  padding: 0 !important;
}

/* 12. Extra Padding */
.preset-extra-padding {
  padding: 5rem 2rem !important;
}

@media (min-width: 768px) {
  .preset-extra-padding {
    padding: 8rem 4rem !important;
  }
}

/* 13. Shadow Box */
.preset-shadow {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border-radius: 1rem;
  padding: 3rem 2rem;
}

/* 14. Dark Section */
.preset-dark {
  background: #1a1a1a !important;
  color: #ffffff !important;
}

.preset-dark h1, 
.preset-dark h2, 
.preset-dark h3, 
.preset-dark h4, 
.preset-dark p {
  color: inherit !important;
}

/* 15. Light Section */
.preset-light {
  background: #ffffff !important;
  color: #212529 !important;
}

/* 16. Gradient Background */
.preset-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #ffffff !important;
}

/* ============================================================================
   ATTRIBUTE BOUNDARY DESIGNS (12 designs from lex_attribute_boundary_designs)
   ============================================================================ */

/* 1. Solid Line */
.attr-bd-solid {
  border: 2px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 0.5rem !important;
  padding: 1rem !important;
}

/* 2. Dashed Line */
.attr-bd-dashed {
  border: 2px dashed rgba(0, 0, 0, 0.2) !important;
  border-radius: 0.5rem !important;
  padding: 1rem !important;
}

/* 3. Zigzag Border */
.attr-bd-zigzag {
  position: relative !important;
  padding: 1.5rem !important;
  background: linear-gradient(135deg, transparent 25%, rgba(0,0,0,0.05) 25%) !important;
  background-size: 10px 10px !important;
}

/* 4. Circular Shape */
.attr-bd-circle {
  border-radius: 50% !important;
  padding: 2rem !important;
  aspect-ratio: 1 / 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

/* 5. Square Shape */
.attr-bd-square {
  border-radius: 0 !important;
  padding: 1.5rem !important;
  aspect-ratio: 1 / 1 !important;
}

/* 6. Glass Morphism */
.attr-bd-glass {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(10px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(150%) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 1rem !important;
  padding: 1.5rem !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

/* 7. Shadow Box */
.attr-bd-shadow {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  border-radius: 0.75rem !important;
  padding: 1.5rem !important;
  border: none !important;
}

/* 8. Rounded Corners */
.attr-bd-rounded {
  border-radius: 1.5rem !important;
  padding: 1.5rem !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* 9. Neon Glow */
.attr-bd-neon {
  border-radius: 0.75rem !important;
  padding: 1.5rem !important;
  box-shadow: 
    0 0 10px currentColor,
    0 0 20px currentColor,
    0 0 30px currentColor,
    inset 0 0 10px rgba(255, 255, 255, 0.2) !important;
  border: 2px solid currentColor !important;
}

/* 10. Inset Shadow */
.attr-bd-inset {
  border-radius: 0.75rem !important;
  padding: 1.5rem !important;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* 11. Gradient Border */
.attr-bd-gradient {
  position: relative !important;
  padding: 1.5rem !important;
  border-radius: 1rem !important;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #667eea, #764ba2) border-box !important;
  border: 3px solid transparent !important;
}

/* 12. Double Border */
.attr-bd-double {
  border: 3px double rgba(0, 0, 0, 0.2) !important;
  border-radius: 0.5rem !important;
  padding: 1.5rem !important;
}

/* ============================================================================
   FEATURE TYPE SPECIFIC STYLES
   ============================================================================ */

/* Image Block - Optimize for image display */
.feature-type-image_block .attribute-column img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* Benefits Block - Grid layout for benefits */
.feature-type-benefits_block {
  padding: 3rem 1.5rem;
}

.feature-type-benefits_block .attributesGrid {
  gap: 2rem;
}

/* Strip Banner - Horizontal scroll animation */
.feature-type-strip_banner {
  padding: 1.25rem 0;
  background: linear-gradient(90deg, var(--feature-bg-1), var(--feature-bg-2));
  overflow: hidden;
  position: relative;
}

.feature-type-strip_banner .strip-scroll-container {
  display: flex;
  white-space: nowrap;
  animation: stripScroll 25s linear infinite;
  gap: 3rem;
}

.feature-type-strip_banner .strip-scroll-container > * {
  flex-shrink: 0;
}

@keyframes stripScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Duplicate content for seamless loop */
.feature-type-strip_banner .strip-scroll-container::after {
  content: attr(data-content);
}

/* Laptop/Mobile Block - Side by side on desktop */
.feature-type-laptop_mobile_block .attributesGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .feature-type-laptop_mobile_block .attributesGrid {
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
  }
}

/* Gallery Block - Masonry-like grid */
.feature-type-gallery_block {
  padding: 3rem 1.5rem;
}

.feature-type-gallery_block .attributesGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  grid-auto-flow: dense;
}

.feature-type-gallery_block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
  transition: transform 0.3s ease;
}

.feature-type-gallery_block img:hover {
  transform: scale(1.05);
}

/* Video Block - Center and optimize video */
.feature-type-video_block {
  background: #000;
  color: #fff;
  padding: 3rem 1.5rem;
}

.feature-type-video_block video,
.feature-type-video_block iframe {
  max-width: 100%;
  border-radius: 0.5rem;
}

/* Custom - Flexible styling */
.feature-type-custom {
  /* Keep flexible for custom designs */
}

/* ============================================================================
   RESPONSIVE UTILITIES
   ============================================================================ */

@media (max-width: 767px) {
  .bd-hero-full {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .preset-hero {
    min-height: 60vh;
    padding: 3rem 1.5rem;
  }
  
  .preset-boxed,
  .preset-rounded,
  .preset-shadow {
    padding: 2rem 1.5rem;
  }
}

/* ============================================================================
   SCROLL BEHAVIORS (with AOS library)
   ============================================================================ */

[data-aos="aos-fade"] {
  opacity: 0;
  transition: opacity 0.6s ease;
}

[data-aos="aos-fade"].aos-animate {
  opacity: 1;
}

[data-aos="aos-fade-up"] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="aos-fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="aos-fade-down"] {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="aos-fade-down"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="aos-slide-left"] {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="aos-slide-left"].aos-animate {
  opacity: 1;
  transform: translateX(0);
}

[data-aos="aos-slide-right"] {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="aos-slide-right"].aos-animate {
  opacity: 1;
  transform: translateX(0);
}

[data-aos="aos-zoom-in"] {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="aos-zoom-in"].aos-animate {
  opacity: 1;
  transform: scale(1);
}

[data-aos="aos-zoom-out"] {
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="aos-zoom-out"].aos-animate {
  opacity: 1;
  transform: scale(1);
}

/* Parallax effect */
[data-scroll-behavior="parallax"] {
  background-attachment: fixed;
}

/* Sticky effect */
[data-scroll-behavior="sticky"] {
  position: sticky;
  top: 0;
  z-index: 10;
}


