/**
 * Gallery Page Styles
 * Extracted from gallery/_index.html inline styles
 * Includes all gallery-specific styling: hero, tabs, cards, animations
 */

/* Hero Section Styles */
.gallery-hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px, 200px 200px;
  animation: particleFloat 30s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-20px) translateX(10px); }
}

.hero-icon-wrapper {
  animation: iconPulse 4s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

.animate-slide-up {
  animation: slideUp 1s ease-out 0.3s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up-delayed {
  animation: slideUp 1s ease-out 0.5s both;
}

/* Hero Tabs Wrapper */
.hero-tabs-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.hero-gallery-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.hero-gallery-tab-item {
  flex: 0 1 auto;
}

.hero-gallery-tab-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-gallery-tab-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-gallery-tab-link:hover::before {
  opacity: 1;
}

.hero-gallery-tab-link:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-gallery-tab-link.active {
  background: rgba(255, 255, 255, 0.95);
  border-color: white;
  color: #667eea;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.hero-tab-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.hero-gallery-tab-link.active .hero-tab-icon {
  color: white;
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

.hero-gallery-tab-link:hover .hero-tab-icon {
  transform: scale(1.15) rotate(-8deg);
}

.hero-tab-label {
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  white-space: nowrap;
}

/* Scroll indicator removed since tabs are in hero now */

/* Gradient Color Classes */
.gradient-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-info {
  background: linear-gradient(135deg, #0dcaf0 0%, #0a58ca 100%);
}

.gradient-warning {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.gradient-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.gradient-success {
  background: linear-gradient(135deg, #20c997 0%, #198754 100%);
}

.gradient-purple {
  background: linear-gradient(135deg, #9b59b6 0%, #6c5ce7 100%);
}

.gradient-danger {
  background: linear-gradient(135deg, #ff6b6b 0%, #dc3545 100%);
}

/* Product Header Styles */
.product-header {
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 20px;
  border-left: 5px solid #667eea;
  animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.product-icon-large {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  animation: iconFloat 6s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
}

/* Only animate product icons in active tab */
.tab-pane:not(.show) .product-icon-large,
.tab-pane:not(.active) .product-icon-large {
  animation-play-state: paused;
  animation: none;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.product-title {
  font-size: 2rem;
  font-weight: 700;
  color: #212529;
}

.product-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: #667eea;
}

.product-badge {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  animation: badgePulse 4s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
}

/* Only animate product badges in active tab */
.tab-pane:not(.show) .product-badge,
.tab-pane:not(.active) .product-badge {
  animation-play-state: paused;
  animation: none;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Gallery Card Styles */
.gallery-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  animation: cardFadeIn 0.6s ease-out;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.gallery-card-header {
  padding: 1.25rem 1.5rem;
  color: white;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
}

.gallery-card-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.gallery-card:hover .gallery-card-header::before {
  right: -100%;
}

.gallery-card-body {
  padding: 0;
  position: relative;
}

.carousel-container, .video-container {
  background: #fff;
  padding: 1rem;
}

/* Info Box Styles */
.info-box {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 20px;
  border: 2px solid rgba(102, 126, 234, 0.2);
  animation: slideInRight 0.6s ease-out 0.3s both;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.gradient-primary-light {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.gradient-info-light {
  background: linear-gradient(135deg, rgba(13, 202, 240, 0.05) 0%, rgba(10, 88, 202, 0.05) 100%);
}

.gradient-warning-light {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(253, 126, 20, 0.05) 100%);
}

.gradient-success-light {
  background: linear-gradient(135deg, rgba(32, 201, 151, 0.05) 0%, rgba(25, 135, 84, 0.05) 100%);
}

.gradient-purple-light {
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.05) 0%, rgba(108, 92, 231, 0.05) 100%);
}

.gradient-danger-light {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.05) 0%, rgba(220, 53, 69, 0.05) 100%);
}

.info-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.info-content h5 {
  color: #667eea;
  font-weight: 700;
}

.info-content p {
  color: #6c757d;
  line-height: 1.6;
}

/* Call to Action Section */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: 50px 50px;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-section h3 {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-section .btn {
  border-radius: 50px;
  padding: 1rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  margin: 0.5rem;
}

.cta-section .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.btn-light-custom {
  background: white;
  color: #667eea;
  border: none;
}

.btn-light-custom:hover {
  background: #f8f9fa;
  color: #764ba2;
}

.btn-outline-light-custom {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline-light-custom:hover {
  background: white;
  color: #667eea;
}

/* Responsive Design */
@media (max-width: 992px) {
  .gallery-nav-tabs {
    gap: 0.75rem;
  }

  .gallery-tab-link {
    padding: 1rem 1.25rem;
  }

  .tab-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .tab-label {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .gallery-hero {
    min-height: 400px;
  }

  .gallery-nav-tabs {
    gap: 0.5rem;
  }

  .gallery-tab-link {
    padding: 0.75rem 1rem;
  }

  .product-icon-large {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .product-title {
    font-size: 1.5rem;
  }

  .product-subtitle {
    font-size: 1rem;
  }

  .info-box {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-section h3 {
    font-size: 1.75rem;
  }

  .cta-section .btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0.5rem auto;
  }

  /* Make carousel and videopool show 1 column on mobile */
  .carousel.initialized ul li,
  .videopool.initialized ul li {
    min-width: 100% !important;
  }

  /* Adjust padding for single column layout */
  .carousel.initialized ul li {
    padding-bottom: 56.25% !important; /* 16:9 aspect ratio for single column */
  }

  /* Hide navigation arrows on mobile for single column */
  .carousel.initialized .prev,
  .carousel.initialized .next,
  .videopool.initialized .prev,
  .videopool.initialized .next {
    display: none !important;
  }

  /* Adjust bullet indicators for single column */
  .carousel.initialized ol,
  .videopool.initialized ol {
    justify-content: center;
  }
}

/* Tab Content Animation */
.tab-pane {
  animation: tabFadeIn 0.5s ease-out;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
