/**
 * VYRO - Home Page Spatial Styles
 */

/* ==========================================================================
   Hero Section
   ========================================================================== */
.vyro-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at center, #1a1a2e 0%, #0d0d17 100%);
  padding-bottom: 80px;
}

@media (min-width: 1024px) {
  .vyro-hero {
    grid-template-columns: 55% 45%;
    padding-bottom: 120px;
  }
}

.vyro-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vmin;
  height: 100vmin;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(236, 72, 153, 0.1) 40%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.vyro-hero__content {
  position: relative;
  z-index: 10;
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 1024px) {
  .vyro-hero__content {
    text-align: left;
    padding: 0 4rem 0 10%;
    margin: 0;
  }
}

.vyro-hero__stage {
  position: relative;
  z-index: 5;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

@media (min-width: 1024px) {
  .vyro-hero__stage {
    height: 100%;
  }
}

/* Typography & Content Elements */
.vyro-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: vyroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
}

.vyro-hero__headline-line {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.02em;
}

.vyro-hero__highlight {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.vyro-hero__sub-copy {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.7);
  margin: 1.5rem 0 2.5rem;
  max-width: 500px;
  line-height: 1.6;
}

/* Badges & Stats */
.vyro-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #d8b4fe;
  margin-bottom: 2rem;
}

.vyro-hero__badge-dot {
  width: 8px;
  height: 8px;
  background: #a855f7;
  border-radius: 50%;
  box-shadow: 0 0 10px #a855f7;
  animation: vyroPodiumPulse 2s infinite;
}

.vyro-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 3rem;
  justify-content: center;
}

@media (min-width: 1024px) {
  .vyro-hero__stats {
    justify-content: flex-start;
  }
}

.vyro-hero__stat {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vyro-hero__stat strong {
  color: #fff;
}

.vyro-hero__stat:not(:last-child)::after {
  content: '';
  display: block;
  width: 1px;
  height: 1rem;
  background: rgba(255, 255, 255, 0.2);
  margin-left: 1.5rem;
}

/* Actions */
.vyro-hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 1024px) {
  .vyro-hero__actions {
    justify-content: flex-start;
  }
}

.vyro-btn {
  padding: 1rem 2rem;
  border-radius: 99px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.vyro-btn--primary {
  background: #fff;
  color: #0d0d17;
}

.vyro-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.vyro-btn--outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: transparent;
}

.vyro-btn--outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Scroll Indicator */
.vyro-hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  animation: vyroScrollBounce 2s infinite;
}

.vyro-hero__scroll-indicator svg {
  width: 24px;
  height: 24px;
}

/* Benefits Strip */
.vyro-benefits {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(50%);
  width: 90%;
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem;
  z-index: 20;
  display: none;
}

@media (min-width: 768px) {
  .vyro-benefits {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }
}

.vyro-benefit {
  text-align: center;
  color: #fff;
}

.vyro-benefit__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a855f7;
  transition: transform 0.3s ease;
}

.vyro-benefit:hover .vyro-benefit__icon {
  transform: translateY(-3px) scale(1.05);
  background: rgba(168, 85, 247, 0.2);
}

.vyro-benefit__label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.vyro-benefit__sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}


/* ==========================================================================
   Category Grid
   ========================================================================== */
.vyro-categories {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.vyro-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.vyro-section-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.vyro-section-link {
  font-weight: 600;
  color: #a855f7;
  text-decoration: none;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vyro-category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .vyro-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .vyro-category-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .vyro-category-large {
    grid-row: span 2;
  }
}

.vyro-category-subgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.vyro-category-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  display: block;
  aspect-ratio: 1;
  background: #f1f5f9;
  text-decoration: none;
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

.vyro-category-large {
  aspect-ratio: auto;
  height: 100%;
  min-height: 400px;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.vyro-category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.vyro-category-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.vyro-category-tile:hover .vyro-category-img {
  transform: scale(1.05);
}

.vyro-category-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #fff;
}

.vyro-category-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.vyro-category-large .vyro-category-title {
  font-size: 2.5rem;
}

.vyro-category-count {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.9);
  color: #0f172a;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}


/* ==========================================================================
   Featured Showcase
   ========================================================================== */
.vyro-showcase {
  padding: 6rem 2rem;
  background: #fafaf9;
}

.vyro-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .vyro-product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .vyro-product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.vyro-product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.vyro-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.vyro-product-media {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f1f5f9;
}

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

.vyro-product-card:hover .vyro-product-img {
  transform: scale(1.05);
}

.vyro-product-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2;
}

.vyro-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: #0f172a;
  color: #fff;
}

.vyro-badge--sale {
  background: #ef4444;
}

.vyro-badge--new {
  background: #10b981;
}

.vyro-product-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.vyro-product-card:hover .vyro-product-actions {
  transform: translateY(0);
}

.vyro-quick-add {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  color: #0f172a;
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.vyro-quick-add:hover {
  background: #0f172a;
  color: #fff;
}

.vyro-product-wishlist {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s;
}

.vyro-product-wishlist:hover {
  background: #fff;
  transform: scale(1.1);
  color: #ef4444;
}

.vyro-product-info {
  padding: 1.25rem;
}

.vyro-product-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}

.vyro-product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.vyro-price-current {
  font-weight: 700;
  font-size: 1.125rem;
  color: #0f172a;
}

.vyro-price-original {
  color: #64748b;
  text-decoration: line-through;
  font-size: 0.875rem;
}

.vyro-product-rating {
  color: #fbbf24;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}


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

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

@keyframes vyroRingRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes vyroPodiumPulse {
  0%, 100% {
    transform: scale(1) translate(-50%, -50%);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2) translate(-50%, -50%);
    opacity: 0.8;
  }
}

@keyframes vyroScrollBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

@keyframes vyroShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
