/* ================================================
   PREMIUM HOMEPAGE DESIGN
   BINOX - Premium International Marketplace
   Hero, categories, deals, trending sections
   ================================================ */

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  padding: var(--space-8) 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-10%, -10%) scale(1.1);
  }
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-8);
  align-items: center;
}

/* ===== HERO CONTENT ===== */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  color: white;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(249, 115, 22, 0.2);
  border: 1px solid rgba(249, 115, 22, 0.4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: #fdba74;
  width: fit-content;
  backdrop-filter: blur(8px);
  animation: tagFloat 3s ease-in-out infinite;
}

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

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
  background: linear-gradient(135deg, #ffffff 0%, #fdba74 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleReveal 1s ease-out;
}

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

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: var(--leading-relaxed);
  color: #cbd5e1;
  max-width: 600px;
  animation: subtitleReveal 1s ease-out 0.2s both;
}

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

.hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: ctaReveal 1s ease-out 0.4s both;
}

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

.hero-cta .btn {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.hero-stats {
  display: flex;
  gap: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: statsReveal 1s ease-out 0.6s both;
}

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

.hero-stat {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hero-stat-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(249, 115, 22, 0.2);
  border-radius: var(--radius-lg);
  color: #fdba74;
}

.hero-stat-icon svg {
  width: 24px;
  height: 24px;
}

.hero-stat-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-extrabold);
  color: white;
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: #94a3b8;
}

/* ===== HERO IMAGE ===== */
.hero-image {
  position: relative;
  display: grid;
  place-items: center;
  animation: imageFloat 6s ease-in-out infinite;
}

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

.hero-image-main {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  border: 4px solid rgba(249, 115, 22, 0.3);
  box-shadow: 0 0 60px rgba(249, 115, 22, 0.3);
}

.hero-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  backdrop-filter: blur(12px);
  animation: cardFloat 4s ease-in-out infinite;
}

.hero-float-card.top-right {
  top: 10%;
  right: -10%;
}

.hero-float-card.bottom-left {
  bottom: 10%;
  left: -10%;
  animation-delay: 2s;
}

@keyframes cardFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

.hero-float-card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--brand-accent);
  border-radius: var(--radius-lg);
  color: white;
}

.hero-float-card-icon svg {
  width: 20px;
  height: 20px;
}

.hero-float-card-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hero-float-card-value {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-extrabold);
  color: var(--ink-900);
}

.hero-float-card-label {
  font-size: var(--text-xs);
  color: var(--ink-500);
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-3xl);
  min-height: 500px;
}

.hero-slider-track {
  display: flex;
  height: 100%;
  transition: transform var(--transition-slow);
}

.hero-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-12) var(--space-8);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.hero-slider-dots {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  z-index: 2;
}

.hero-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.hero-slider-dot.active {
  width: 36px;
  background: var(--brand-accent);
  border-radius: var(--radius-full);
}

.hero-slider-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.hero-slider-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 var(--space-4);
  z-index: 2;
}

.hero-slider-arrow {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.hero-slider-arrow:hover {
  background: var(--brand-accent);
  color: white;
  transform: scale(1.1);
}

.hero-slider-arrow svg {
  width: 24px;
  height: 24px;
}

/* ===== CATEGORY SHOWCASE ===== */
.category-showcase {
  padding: var(--space-12) 0;
  background: var(--surface-0);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: var(--font-extrabold);
  color: var(--ink-900);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--ink-500);
  margin-top: var(--space-2);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--brand-accent);
  transition: all var(--transition-base);
}

.section-link:hover {
  color: var(--brand-accent-dark);
  gap: var(--space-3);
}

.section-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-base);
}

.section-link:hover svg {
  transform: translateX(4px);
}

/* ===== CATEGORY GRID ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--surface-50);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-2xl);
  transition: all var(--transition-premium);
  cursor: pointer;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.category-card:hover {
  border-color: var(--brand-accent);
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.category-card:hover::before {
  opacity: 1;
}

.category-icon {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-premium);
  position: relative;
  z-index: 1;
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-xl);
}

.category-icon svg {
  width: 40px;
  height: 40px;
  color: var(--brand-accent);
}

.category-name {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--ink-900);
  text-align: center;
  position: relative;
  z-index: 1;
}

.category-count {
  font-size: var(--text-sm);
  color: var(--ink-500);
  position: relative;
  z-index: 1;
}

/* ===== FLASH DEALS ===== */
.flash-deals {
  padding: var(--space-12) 0;
  background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
  position: relative;
  overflow: hidden;
}

.flash-deals::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
}

.flash-deals-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  position: relative;
  z-index: 1;
}

.flash-deals-title {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.flash-deals-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--brand-accent);
  border-radius: var(--radius-xl);
  color: white;
  animation: pulse 2s ease-in-out infinite;
}

.flash-deals-icon svg {
  width: 24px;
  height: 24px;
}

.flash-timer {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--brand-error);
  border-radius: var(--radius-lg);
  color: white;
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
}

.flash-timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.flash-timer-value {
  font-size: var(--text-xl);
  line-height: 1;
}

.flash-timer-label {
  font-size: var(--text-xs);
  opacity: 0.8;
}

/* ===== TRENDING PRODUCTS ===== */
.trending-section {
  padding: var(--space-12) 0;
  background: var(--surface-0);
}

.trending-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: linear-gradient(135deg, #ec4899, #db2777);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
}

/* ===== FEATURED BRANDS ===== */
.brands-section {
  padding: var(--space-12) 0;
  background: var(--surface-50);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-6);
}

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6);
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  cursor: pointer;
}

.brand-card:hover {
  border-color: var(--brand-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.brand-logo {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  background: var(--surface-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--ink-700);
  text-align: center;
}

/* ===== SPECIAL OFFERS ===== */
.special-offers {
  padding: var(--space-12) 0;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
}

.special-offers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.offer-card {
  position: relative;
  padding: var(--space-8);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2xl);
  backdrop-filter: blur(12px);
  transition: all var(--transition-premium);
  overflow: hidden;
}

.offer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.offer-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
}

.offer-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--brand-accent);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: white;
  margin-bottom: var(--space-4);
}

.offer-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-extrabold);
  margin-bottom: var(--space-2);
}

.offer-description {
  color: #cbd5e1;
  margin-bottom: var(--space-4);
}

.offer-discount {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  color: var(--brand-accent);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-image {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .hero-slide {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .special-offers-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: var(--space-6) 0;
  }
  
  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .hero-stats {
    flex-direction: column;
    gap: var(--space-4);
  }
  
  .hero-float-card {
    display: none;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .flash-timer {
    padding: var(--space-1) var(--space-2);
  }
  
  .flash-timer-value {
    font-size: var(--text-base);
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-tag,
  .hero-title,
  .hero-subtitle,
  .hero-cta,
  .hero-stats,
  .hero-image,
  .hero-float-card,
  .category-icon,
  .flash-deals-icon {
    animation: none;
  }
  
  .hero-slider-track {
    transition: none;
  }
}
