/* Webstore Enhanced Styles */

/* Testimonials Section */
.testimonials-section {
  margin: 30px 0;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.testimonials-section h3 {
  text-align: center;
  color: white;
  font-size: 24px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: slideInUp 0.6s ease-out;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.testimonial-avatar {
  font-size: 40px;
  text-align: center;
  margin-bottom: 15px;
}

.testimonial-content p {
  font-style: italic;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.6;
}

.testimonial-author {
  font-weight: bold;
  color: #666;
  text-align: right;
}

/* Product Cards with Images */
.product-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.preview-btn {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.preview-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 5% auto;
  padding: 0;
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
  padding: 20px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #ff6b6b;
}

#previewContent {
  padding: 20px;
  color: white;
}

.preview-header {
  text-align: center;
  margin-bottom: 30px;
}

.preview-header h2 {
  font-size: 28px;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.preview-header .preview-price {
  font-size: 24px;
  font-weight: bold;
  color: #ffd700;
}

.preview-image {
  text-align: center;
  margin-bottom: 30px;
}

.preview-image img {
  max-width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.preview-description {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.preview-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.preview-feature {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.preview-feature .feature-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.preview-actions {
  text-align: center;
  margin-top: 30px;
}

.preview-buy-btn {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.preview-buy-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Upload Area Styles */
.upload-area {
  border: 2px dashed #667eea;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 15px 0;
}

.upload-area:hover {
  border-color: #4f46e5;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
  transform: translateY(-2px);
}

.upload-area.dragover {
  border-color: #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
}

.upload-content {
  pointer-events: none;
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.7;
}

.upload-area p {
  margin: 10px 0;
  color: #374151;
  font-weight: 500;
}

.upload-hint {
  font-size: 14px;
  color: #6b7280;
  font-style: italic;
}

.upload-preview {
  margin-top: 15px;
  padding: 15px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 15px;
}

.upload-preview img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
}

.preview-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-info span {
  font-weight: 500;
  color: #374151;
  font-size: 14px;
}

.remove-btn {
  background: #ef4444;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.3s ease;
}

.remove-btn:hover {
  background: #dc2626;
}

/* Enhanced Testimonial with Proof */
.testimonial-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: slideInUp 0.6s ease-out;
  position: relative;
}

.testimonial-card.has-proof {
  border-left: 4px solid #10b981;
}

.testimonial-card.has-proof::before {
  content: "✅ Verified";
  position: absolute;
  top: 10px;
  right: 10px;
  background: #10b981;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: bold;
}

.testimonial-proof {
  margin-top: 10px;
  padding: 10px;
  background: #f0f9ff;
  border-radius: 8px;
  border-left: 3px solid #0ea5e9;
}

.testimonial-proof-text {
  font-size: 12px;
  color: #0369a1;
  font-weight: 500;
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .testimonials-container {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
  
  .discord-log {
    width: 300px;
    right: 10px;
    bottom: 10px;
  }
  
  .preview-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .testimonials-section {
    margin: 20px 0;
    padding: 15px;
  }
  
  .testimonials-section h3 {
    font-size: 20px;
  }
  
  .testimonial-card {
    padding: 15px;
  }
  
  .discord-log {
    width: 280px;
  }
  
  .modal-content {
    width: 98%;
    margin: 5% auto;
  }
}

/* Enhanced Product Card Hover Effects */
.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.product-card.selected {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
  border: 3px solid #667eea;
}

/* Loading Animation for Images */
.product-image img {
  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;
  }
}

/* Success Animation */
@keyframes successPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.success-animation {
  animation: successPulse 0.6s ease-in-out;
}

/* Debug Panel Styles */
.debug-panel {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 400px;
  max-height: 300px;
  background: #1a1a1a;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  font-family: 'Courier New', monospace;
}

.debug-header {
  background: #333;
  padding: 10px 15px;
  border-radius: 10px 10px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.debug-header h4 {
  color: #00ff00;
  margin: 0;
  font-size: 14px;
}

.debug-toggle {
  background: #555;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
}

.debug-toggle:hover {
  background: #666;
}

.debug-content {
  max-height: 250px;
  overflow-y: auto;
  padding: 10px;
  color: #00ff00;
  font-size: 12px;
  line-height: 1.4;
}

.debug-content div {
  margin: 2px 0;
  padding: 2px 5px;
  background: rgba(0, 255, 0, 0.1);
  border-radius: 3px;
  border-left: 2px solid #00ff00;
}

/* Scrollbar Styling */
.debug-content::-webkit-scrollbar {
  width: 6px;
}

.debug-content::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 3px;
}

.debug-content::-webkit-scrollbar-thumb {
  background: #00ff00;
  border-radius: 3px;
}

.debug-content::-webkit-scrollbar-thumb:hover {
  background: #00cc00;
}
