/**
 * Exploration & Geology Equipment Page Styles
 * Minecraft Mining & Industrial Solutions
 * Developer: Baxium Hub (blaxium.com) - Brian Guvava
 */

/* Page Header */
.product-header {
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark-gray) 100%);
  color: var(--color-white);
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}

.product-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="geology-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="%23F6E71D" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23F5D10D" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23geology-pattern)"/></svg>');
}

.product-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.product-subtitle {
  font-size: 1.2rem;
  color: #e0e0e0;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.breadcrumb {
  background: transparent;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 2;
}

.breadcrumb-item,
.breadcrumb-item a {
  color: #e0e0e0;
  font-weight: 500;
}

.breadcrumb-item.active {
  color: var(--color-light-yellow);
}

.breadcrumb-item+.breadcrumb-item::before {
  color: #e0e0e0;
}

/* Product Overview Section */
.product-overview {
  position: relative;
}

.overview-content {
  padding-right: 2rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 1.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(45deg, var(--color-yellow), var(--color-light-yellow));
  border-radius: 2px;
}

.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  padding: 0.5rem 0;
  font-size: 1rem;
}

.overview-image {
  position: relative;
}

.overview-image img {
  border-radius: 15px;
  transition: transform var(--transition-medium);
}

.overview-image:hover img {
  transform: scale(1.02);
}

/* Product Categories Section */
.product-categories {
  background: var(--color-light-gray);
}

.category-card {
  background: var(--color-white);
  border-radius: 15px;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-medium);
  border: 1px solid #e9ecef;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-yellow), var(--color-light-yellow));
  transition: left 0.4s ease;
}

.category-card:hover::before {
  left: 0;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--color-yellow);
}

.category-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-yellow), var(--color-light-yellow));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all var(--transition-medium);
}

.category-icon i {
  font-size: 2rem;
  color: var(--color-black);
}

.category-card:hover .category-icon {
  transform: rotate(10deg) scale(1.1);
  box-shadow: 0 10px 25px rgba(245, 209, 13, 0.3);
}

.category-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 1rem;
  transition: color var(--transition-fast);
}

.category-card:hover .category-content h3 {
  color: var(--color-yellow);
}

.category-content p {
  color: var(--color-medium-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
  color: #555;
  transition: all var(--transition-fast);
}

.category-list li:last-child {
  border-bottom: none;
}

.category-list li:hover {
  color: var(--color-black);
  padding-left: 10px;
}

.category-list li strong {
  color: var(--color-black);
  font-weight: 600;
}

/* Enhanced Animations and Interactive Effects */

/* Notification System */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 10000;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 300px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification-success {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.notification-warning {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.notification-info {
  background: linear-gradient(135deg, #17a2b8, #6f42c1);
}

/* Advanced Product Card Animations */
.product-card.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px) scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.product-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245, 209, 13, 0.1), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.product-card:hover::before {
  left: 100%;
}

/* Enhanced Image Effects */
.product-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.product-image img {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
}

.product-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(245, 209, 13, 0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-card:hover .product-image::after {
  opacity: 1;
}

/* Overlay Enhancements */
.product-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(2, 2, 2, 0.95));
  padding: 20px;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.product-card:hover .product-overlay {
  transform: translateY(0);
  opacity: 1;
}

.product-overlay .btn {
  margin: 0 5px 5px 0;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.product-card:hover .product-overlay .btn {
  transform: translateY(0);
  opacity: 1;
}

.product-overlay .btn:nth-child(1) { transition-delay: 0.1s; }
.product-overlay .btn:nth-child(2) { transition-delay: 0.2s; }
.product-overlay .btn:nth-child(3) { transition-delay: 0.3s; }

/* Enhanced Filter Buttons */
.category-filter {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  background: transparent;
  border: 2px solid var(--color-medium-gray);
  color: var(--color-medium-gray);
}

.category-filter::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--color-yellow);
  border-radius: 50%;
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.category-filter:hover::before,
.category-filter.active::before {
  width: 300px;
  height: 300px;
}

.category-filter:hover,
.category-filter.active {
  color: var(--color-black);
  border-color: var(--color-yellow);
  transform: translateY(-2px);
}

.category-filter span {
  position: relative;
  z-index: 1;
}

/* Modal Enhancements */
.modal {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.modal.show {
  animation: modalFadeIn 0.3s ease;
}

.modal .modal-dialog {
  transform: scale(0.8) translateY(-50px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-dialog {
  transform: scale(1) translateY(0);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(5px);
  }
}

/* Specs Grid Enhancement */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.spec-item {
  padding: 15px;
  background: var(--color-light-gray);
  border-radius: 8px;
  border-left: 4px solid var(--color-yellow);
  transition: all 0.3s ease;
}

.spec-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(245, 209, 13, 0.2);
}

.spec-label {
  font-weight: 600;
  color: var(--color-dark);
  display: block;
  margin-bottom: 5px;
}

.spec-value {
  color: var(--color-medium-gray);
}

/* Comparison Panel */
#comparisonPanel {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  min-width: 300px;
  border: 2px solid var(--color-yellow);
  animation: slideUpIn 0.4s ease;
}

@keyframes slideUpIn {
  from {
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.comparison-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-light-gray);
}

.comparison-products {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.comparison-item {
  background: var(--color-yellow);
  color: var(--color-black);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Search Results Enhancement */
#searchResults {
  padding: 15px;
  background: var(--color-light-gray);
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid var(--color-yellow);
  animation: fadeInUp 0.4s ease;
}

/* Loading States */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Lazy Loading Images */
img.lazy {
  opacity: 0;
  transition: opacity 0.4s ease;
}

img.lazy.loaded {
  opacity: 1;
}

/* Parallax Hero Effect */
.page-hero {
  will-change: transform;
  backface-visibility: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-header {
    padding: 100px 0 40px;
  }
  
  .product-title {
    font-size: 2rem;
  }
  
  .product-subtitle {
    font-size: 1rem;
  }
  
  .overview-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .category-card {
    margin-bottom: 2rem;
  }
  
  .category-icon {
    width: 60px;
    height: 60px;
  }
  
  .category-icon i {
    font-size: 1.5rem;
  }
  
  .notification {
    right: 10px;
    left: 10px;
    transform: translateY(-100px);
    min-width: auto;
  }
  
  .notification.show {
    transform: translateY(0);
  }
  
  #comparisonPanel {
    left: 10px;
    right: 10px;
    transform: none;
    min-width: auto;
  }
  
  .specs-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .product-overlay {
    position: static;
    transform: none;
    opacity: 1;
    background: transparent;
    padding: 15px;
  }
  
  .product-overlay .btn {
    transform: none;
    opacity: 1;
    margin: 5px 5px 5px 0;
  }
}

@media (max-width: 576px) {
  .product-title {
    font-size: 1.5rem;
  }
  
  .category-content h3 {
    font-size: 1.2rem;
  }
  
  .category-list li {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .category-filters {
    gap: 8px;
  }
  
  .category-filter {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

/* Performance Optimizations */
.product-card,
.category-filter,
.btn {
  will-change: transform;
  backface-visibility: hidden;
}

/* Print Styles */
@media print {
  .product-overlay,
  .category-filters,
  #comparisonPanel,
  .notification {
    display: none !important;
  }
}
