/**
 * Diamond Products Page Styles - Minecraft Mining & Industrial Solutions
 * Developer: Baxium Hub (blaxium.com) - Brian Guvava
 * Version: 1.0.0
 */

/* Diamond Products Header */
.diamond-products-header {
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark-gray) 100%);
  padding: 120px 0 60px;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.diamond-products-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="diamond-pattern" width="40" height="40" patternUnits="userSpaceOnUse"><polygon points="20,5 35,20 20,35 5,20" fill="%23F6E71D" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23diamond-pattern)"/></svg>');
  opacity: 0.3;
}

.diamond-products-header .container {
  position: relative;
  z-index: 2;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 0;
}

.breadcrumb {
  background: transparent;
  margin-bottom: 2rem;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--color-light-yellow);
}

/* Diamond Overview Section */
.diamond-overview {
  position: relative;
}

.overview-content .section-title {
  color: var(--color-black);
  margin-bottom: 1.5rem;
}

.overview-content .lead {
  color: var(--color-medium-gray);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.diamond-highlights {
  background: rgba(246, 231, 29, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--color-yellow);
}

.highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlights-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(246, 231, 29, 0.1);
}

.highlights-list li:last-child {
  border-bottom: none;
}

.overview-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.overview-image img {
  transition: transform 0.5s ease;
}

.overview-image:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--color-white);
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.overview-image:hover .image-overlay {
  transform: translateY(0);
}

.overlay-content h5 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

/* Diamond Categories */
.diamond-categories {
  background: var(--color-light-gray);
}

.diamond-category-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  height: 100%;
  overflow: hidden;
  border: 2px solid transparent;
}

.diamond-category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-color: var(--color-yellow);
}

.category-header {
  background: linear-gradient(135deg, var(--color-yellow), var(--color-light-yellow));
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

.category-header::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 10px solid var(--color-light-yellow);
}

.category-icon {
  width: 60px;
  height: 60px;
  background: rgba(2, 2, 2, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--color-black);
  transition: all 0.3s ease;
}

.diamond-category-card:hover .category-icon {
  transform: scale(1.1) rotate(10deg);
  background: var(--color-white);
}

.category-header h3 {
  color: var(--color-black);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
}

.category-content {
  padding: 2rem 1.5rem;
}

.category-content p {
  color: var(--color-medium-gray);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.product-variants {
  background: rgba(246, 231, 29, 0.05);
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.product-variants h5 {
  color: var(--color-black);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.variant-grid {
  display: grid;
  gap: 0.5rem;
}

.variant-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(246, 231, 29, 0.2);
}

.variant-item:last-child {
  border-bottom: none;
}

.variant-label {
  font-weight: 500;
  color: var(--color-dark);
}

.variant-sizes {
  font-size: 0.9rem;
  color: var(--color-medium-gray);
  font-style: italic;
}

.technical-specs h6 {
  color: var(--color-black);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.technical-specs ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.technical-specs li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-medium-gray);
  font-size: 0.9rem;
}

.technical-specs li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--color-yellow);
  font-size: 0.7rem;
}

/* Technical Specifications Table */
.technical-specs-section {
  background: var(--color-white);
}

.specs-table-container {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid rgba(246, 231, 29, 0.2);
}

.specs-table {
  margin: 0;
  font-size: 0.9rem;
}

.specs-table thead {
  background: linear-gradient(135deg, var(--color-yellow), var(--color-light-yellow));
}

.specs-table thead th {
  color: var(--color-black);
  font-weight: 600;
  border: none;
  padding: 1rem;
}

.specs-table tbody td {
  padding: 0.8rem 1rem;
  border-color: rgba(246, 231, 29, 0.1);
  vertical-align: middle;
}

.specs-table tbody tr:hover {
  background-color: rgba(246, 231, 29, 0.05);
}

/* Wrench Spanners Section */
.wrench-spanners {
  background: var(--color-light-gray);
}

.wrench-content .section-title {
  color: var(--color-black);
  margin-bottom: 1.5rem;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.spec-item:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.spec-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--color-yellow), var(--color-light-yellow));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--color-black);
}

.spec-details h5 {
  color: var(--color-black);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.spec-details p {
  color: var(--color-medium-gray);
  margin: 0;
  line-height: 1.5;
}

.features-list {
  background: rgba(246, 231, 29, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--color-yellow);
}

.features-list h6 {
  color: var(--color-black);
  font-weight: 600;
  margin-bottom: 1rem;
}

.features-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--color-medium-gray);
}

.features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-yellow);
  font-weight: bold;
}

.wrench-image img {
  border-radius: 12px;
  transition: transform 0.5s ease;
}

.wrench-image:hover img {
  transform: scale(1.05);
}

/* CTA Section */
.diamond-cta {
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark-gray) 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.diamond-cta::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="cta-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="%23F6E71D" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23cta-pattern)"/></svg>');
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Related Products */
.related-products {
  background: var(--color-white);
}

.related-product-card {
  background: var(--color-white);
  border: 2px solid rgba(246, 231, 29, 0.2);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s ease;
  height: 100%;
}

.related-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: var(--color-yellow);
}

.related-product-card .product-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-yellow), var(--color-light-yellow));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  color: var(--color-black);
  transition: all 0.3s ease;
}

.related-product-card:hover .product-icon {
  transform: scale(1.1) rotate(10deg);
}

.related-product-card h5 {
  color: var(--color-black);
  font-weight: 600;
  margin-bottom: 1rem;
}

.related-product-card p {
  color: var(--color-medium-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Advanced Interactive Styles */
.diamond-product-card {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.diamond-product-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;
  z-index: 1;
}

.diamond-product-card:hover::before {
  left: 0;
}

/* Product Image Enhancements */
.product-image {
  position: relative;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.product-image img {
  transition: transform 0.5s ease;
}

.product-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 60%, rgba(245, 209, 13, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.diamond-product-card:hover .product-image::after {
  opacity: 1;
}

/* Download Button Enhancements */
.download-btn {
  background: linear-gradient(45deg, var(--color-yellow), var(--color-light-yellow));
  border: none;
  color: var(--color-black);
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.download-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: all 0.5s ease;
  transform: translate(-50%, -50%);
}

.download-btn:hover::before {
  width: 300px;
  height: 300px;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 209, 13, 0.4);
}

.download-btn.downloading {
  background: var(--color-medium-gray);
  cursor: not-allowed;
}

/* Search Suggestions */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
}

.search-suggestion {
  padding: 12px 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.search-suggestion:hover {
  background-color: var(--color-light-gray);
  color: var(--color-yellow);
}

.search-suggestion:last-child {
  border-bottom: none;
}

/* Detailed Specifications */
.detailed-specs {
  display: none;
  margin-top: 15px;
  padding: 15px;
  background: var(--color-light-gray);
  border-radius: 8px;
  border-left: 4px solid var(--color-yellow);
}

.detailed-specs h6 {
  color: var(--color-yellow);
  font-weight: 600;
  margin-bottom: 10px;
}

.detailed-specs ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detailed-specs li {
  padding: 5px 0;
  color: var(--color-dark);
  position: relative;
  padding-left: 20px;
}

.detailed-specs li::before {
  content: '•';
  color: var(--color-yellow);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Specs Toggle Button */
.specs-toggle {
  color: var(--color-yellow);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.specs-toggle:hover {
  color: var(--color-light-yellow);
  text-decoration: underline;
}

/* Animation Classes */
.animate-in {
  animation: slideInUp 0.6s ease forwards;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Result Counter */
.results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 15px 20px;
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.result-count {
  font-weight: 600;
  color: var(--color-dark);
}

.view-toggle {
  display: flex;
  gap: 10px;
}

.view-btn {
  padding: 8px 12px;
  border: 1px solid #ddd;
  background: var(--color-white);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
  background: var(--color-yellow);
  color: var(--color-black);
  border-color: var(--color-yellow);
}

/* Loading States */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-title {
    font-size: 2.2rem;
  }
  
  .diamond-category-card {
    margin-bottom: 2rem;
  }
  
  .spec-item {
    flex-direction: column;
    text-align: center;
  }
  
  .spec-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 576px) {
  .diamond-products-header {
    padding: 100px 0 40px;
  }
  
  .page-title {
    font-size: 1.8rem;
  }
  
  .category-content {
    padding: 1.5rem 1rem;
  }
  
  .specs-table {
    font-size: 0.8rem;
  }
  
  .specs-table thead th,
  .specs-table tbody td {
    padding: 0.5rem;
  }
}

/* Mobile Enhancements */
@media (max-width: 768px) {
  .filter-controls {
    flex-direction: column;
    gap: 15px;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .search-input {
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  .diamond-product-card:hover {
    transform: none; /* Disable hover effects on mobile */
  }
  
  .results-info {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* High Performance Mode */
@media (prefers-reduced-motion: reduce) {
  .diamond-product-card,
  .download-btn,
  .product-image img {
    transition: none !important;
    animation: none !important;
  }
}

/* Print Styles */
@media print {
  .filter-controls,
  .download-btn,
  .specs-toggle {
    display: none !important;
  }
  
  .diamond-product-card {
    break-inside: avoid;
    margin-bottom: 20px;
  }
}
