@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&display=swap');

/* Reset and Base Styles */
.aliexpress-page-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #fff5f0 0%, #ffffff 50%, #fff8f0 100%);
  font-family: 'Cairo', sans-serif;
  position: relative;
  overflow-x: hidden;
}

/* Animated Background Pattern */
.aliexpress-bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 107, 0, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 140, 0, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 165, 0, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Main Content */
.aliexpress-main-content {
  position: relative;
  z-index: 1;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Security Status Bar */
.aliexpress-security-bar {
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 1rem;
  padding: 0.75rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.aliexpress-security-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.aliexpress-security-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.aliexpress-security-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  animation: aliexpress-pulse 2s infinite;
}

.aliexpress-secure { background: #34d399; animation-delay: 0s; }
.aliexpress-fast { background: #60a5fa; animation-delay: 0.5s; }
.aliexpress-accurate { background: #a78bfa; animation-delay: 1s; }

@keyframes aliexpress-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

/* Hero Section */
.aliexpress-hero-section {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.aliexpress-hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.aliexpress-logo-container {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.aliexpress-logo {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(255, 107, 0, 0.3));
  animation: aliexpress-logo-float 3s ease-in-out infinite;
}

.aliexpress-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6rem;
  height: 6rem;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: aliexpress-glow-pulse 2s ease-in-out infinite;
}

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

@keyframes aliexpress-glow-pulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.aliexpress-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #FF6B00, #FF8C00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.aliexpress-hero-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.aliexpress-performance-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.aliexpress-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  padding: 0.75rem 1.25rem;
  border-radius: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  transition: all 0.3s ease;
}

.aliexpress-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.aliexpress-badge-icon {
  font-size: 1.25rem;
}

.aliexpress-badge-text {
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
}

/* Search Section */
.aliexpress-search-section {
  margin-bottom: 3rem;
}

.aliexpress-search-card {
  background: white;
  border-radius: 2rem;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border: 1px solid #f3f4f6;
  position: relative;
  overflow: hidden;
}

.aliexpress-search-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FF6B00, #FF8C00);
}

.aliexpress-search-form {
  margin-bottom: 2rem;
}

.aliexpress-input-group {
  margin-bottom: 2rem;
}

.aliexpress-input-wrapper {
  position: relative;
  margin-bottom: 0.75rem;
}

.aliexpress-search-input {
  width: 100%;
  padding: 1.25rem 4rem 1.25rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 1rem;
  font-size: 1rem;
  font-family: 'Cairo', sans-serif;
  background: #fafafa;
  color: #1f2937;
  transition: all 0.3s ease;
  text-align: right;
}

.aliexpress-search-input:focus {
  outline: none;
  border-color: #FF6B00;
  background: white;
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

.aliexpress-input-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #FF6B00;
}

.aliexpress-search-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.aliexpress-validation-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
}

.aliexpress-clear-btn {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

.aliexpress-clear-btn:hover {
  color: #ef4444;
  background: #fef2f2;
}

.aliexpress-clear-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.aliexpress-input-help {
  text-align: center;
}

.aliexpress-help-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.aliexpress-help-icon {
  width: 1rem;
  height: 1rem;
}

/* Guide Button */
.aliexpress-guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #FF6B00;
  background: rgba(255, 107, 0, 0.1);
  padding: 0.75rem 1.25rem;
  border-radius: 1rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.aliexpress-guide-btn:hover {
  background: rgba(255, 107, 0, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

/* Submit Button */
.aliexpress-submit-btn {
  width: 100%;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, #FF6B00, #FF8C00);
  color: white;
  border: none;
  border-radius: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aliexpress-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(255, 107, 0, 0.4);
}

.aliexpress-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.aliexpress-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.aliexpress-btn-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.aliexpress-btn-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.aliexpress-btn-text {
  font-weight: 700;
}

.aliexpress-btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.aliexpress-submit-btn:hover .aliexpress-btn-glow {
  left: 100%;
}

/* Loading State */
.aliexpress-loading {
  text-align: center;
  padding: 3rem 0;
}

.aliexpress-loading-container {
  max-width: 400px;
  margin: 0 auto;
}

.aliexpress-loading-spinner {
  position: relative;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 2rem;
}

.aliexpress-spinner-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 4px solid rgba(255, 107, 0, 0.2);
  border-top: 4px solid #FF6B00;
  border-radius: 50%;
  animation: aliexpress-spin 1s linear infinite;
}

.aliexpress-spinner-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #FF6B00, #FF8C00);
  border-radius: 50%;
  animation: aliexpress-pulse 1.5s ease-in-out infinite;
}

@keyframes aliexpress-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.aliexpress-loading-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.aliexpress-loading-subtitle {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.aliexpress-loading-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.aliexpress-loading-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: #FF6B00;
  border-radius: 50%;
  animation: aliexpress-bounce 1.4s ease-in-out infinite both;
}

.aliexpress-loading-dot:nth-child(1) { animation-delay: -0.32s; }
.aliexpress-loading-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes aliexpress-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Results Container */
.aliexpress-results-container {
  margin-top: 2rem;
}

/* Product Card Styles */
.aliexpress-product-card {
  background: white;
  border-radius: 1.5rem;
  border: 2px solid #FF6B00;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  position: relative;
  margin-top: 2rem;
}

.aliexpress-product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FF6B00, #FF8C00);
}

.aliexpress-product-body {
  padding: 2rem;
}

.aliexpress-product-title {
  color: #FF6B00;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  position: relative;
}

.aliexpress-product-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #FF6B00, #FF8C00);
  border-radius: 2px;
}

.aliexpress-product-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.aliexpress-product-table th {
  background: linear-gradient(135deg, #FF6B00, #FF8C00);
  color: white;
  padding: 1.25rem 1rem;
  font-weight: 700;
  text-align: center;
  font-size: 1rem;
  border: none;
  position: relative;
}

.aliexpress-product-table th::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
}

.aliexpress-product-table td {
  padding: 1.25rem 1rem;
  text-align: center;
  border-bottom: 1px solid #f3f4f6;
  background: white;
  font-weight: 500;
  color: #1f2937;
  transition: all 0.3s ease;
}

.aliexpress-product-table tr:hover td {
  background: #fff7ed;
  transform: translateY(-2px);
}

.aliexpress-product-table tr:last-child td {
  border-bottom: none;
}

.aliexpress-add-to-cart-btn {
  background: linear-gradient(135deg, #FF6B00, #FF8C00);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  border: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 0.875rem;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  font-family: 'Cairo', sans-serif;
}

.aliexpress-add-to-cart-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(255, 107, 0, 0.4);
}

.aliexpress-price-animate {
  display: inline-block;
  animation: aliexpress-price-flash 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes aliexpress-price-flash {
  0% { background: #fff7ed; color: #FF6B00; }
  50% { background: #FF6B00; color: #fff; }
  100% { background: #fff7ed; color: #FF6B00; }
}

/* Features Section */
.aliexpress-features-section {
  margin-top: 4rem;
}

.aliexpress-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.aliexpress-feature-card {
  background: white;
  padding: 2rem;
  border-radius: 1.5rem;
  text-align: center;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  transition: all 0.3s ease;
}

.aliexpress-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.15);
}

.aliexpress-feature-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #FF6B00, #FF8C00);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
}

.aliexpress-feature-icon svg {
  width: 2rem;
  height: 2rem;
}

.aliexpress-feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.aliexpress-feature-description {
  color: #6b7280;
  line-height: 1.6;
}

/* Notification Styles */
.aliexpress-notification {
  display: flex;
  flex-direction: column;
  max-width: 300px;
  margin: 10px auto;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  position: relative;
  animation: aliexpress-fadeIn 0.3s ease;
}

.aliexpress-notification-success {
  background-color: #d4edda;
  border-left: 5px solid #28a745;
  color: #155724;
}

.aliexpress-notification-error {
  background-color: #f8d7da;
  border-left: 5px solid #dc3545;
  color: #721c24;
}

.aliexpress-notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.aliexpress-notification-header strong {
  font-size: 16px;
}

.aliexpress-notification-body p {
  margin: 0;
  line-height: 1.5;
}

.aliexpress-close-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #000;
  transition: color 0.2s ease;
}

.aliexpress-close-btn:hover {
  color: #dc3545;
}

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

/* Utility Classes */
.aliexpress-hidden {
  display: none !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .aliexpress-main-content {
    padding: 0.5rem;
  }

  .aliexpress-security-indicators {
    gap: 1rem;
  }

  .aliexpress-security-item {
    font-size: 0.75rem;
  }

  .aliexpress-hero-title {
    font-size: 2rem;
  }

  .aliexpress-hero-subtitle {
    font-size: 1rem;
  }

  .aliexpress-performance-badges {
    gap: 1rem;
  }

  .aliexpress-badge {
    padding: 0.5rem 1rem;
  }

  .aliexpress-search-card {
    padding: 1.5rem;
    border-radius: 1.5rem;
  }

  .aliexpress-search-input {
    padding: 1rem 3.5rem 1rem 1rem;
    font-size: 0.875rem;
  }

  .aliexpress-submit-btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .aliexpress-features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .aliexpress-product-table {
    font-size: 0.875rem;
  }

  .aliexpress-product-table th,
  .aliexpress-product-table td {
    padding: 0.75rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .aliexpress-hero-title {
    font-size: 1.75rem;
  }

  .aliexpress-logo {
    width: 4rem;
    height: 4rem;
  }

  .aliexpress-search-card {
    padding: 1rem;
  }

  .aliexpress-product-body {
    padding: 1rem;
  }

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