/* ============================
   Store Page Styles
   ============================ */

/* Store Hero Section */
.store-hero {
  position: relative;
  padding: calc(var(--spacing-4xl) + 60px) 0 var(--spacing-4xl);
  background: var(--bg-primary);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(var(--bg-primary-rgb), 0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--bg-primary-rgb), 0.8) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.1;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  width: 100px;
  height: 100px;
  background: var(--primary-gradient);
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  top: 20%;
  right: 10%;
  animation-delay: 0s;
}

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

.store-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.breadcrumb-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: var(--primary-light);
}

.breadcrumb-current {
  color: var(--text-tertiary);
}

.hero-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.2;
}

.hero-title .title-line {
  display: block;
}

.hero-title .highlight {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .hero-title .title-line.highlight {
  color: var(--light-text-black);
  -webkit-text-fill-color: var(--light-text-black);
  background: none;
  background-clip: unset;
  -webkit-background-clip: unset;
}

.hero-description {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-2xl);
  line-height: var(--line-height-relaxed);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.store-stats {
  display: flex;
  justify-content: center;
  gap: var(--spacing-2xl);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--bg-quaternary);
  border-radius: var(--radius-lg);
  min-width: 120px;
}

.stat-number {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

/* Game Categories Section */
.game-categories {
  padding: var(--spacing-4xl) 0;
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin: 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-3xl);
}

.category-card {
  background: var(--bg-primary);
  border: 1px solid var(--bg-quaternary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

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

.category-image {
  position: relative;
  height: 200px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.category-logo {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.category-card:hover .category-logo {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(var(--bg-primary-rgb), 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.category-info {
  text-align: center;
  color: var(--text-primary);
}

.category-name {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-sm);
}

.category-description {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.category-features {
  display: flex;
  gap: var(--spacing-xs);
  justify-content: center;
  flex-wrap: wrap;
}

.feature-tag {
  background: var(--primary-color);
  color: var(--dark-text-primary);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

.category-actions {
  padding: var(--spacing-xl);
}

.category-actions .btn {
  width: 100%;
  margin-bottom: var(--spacing-lg);
}

.category-stats {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-sm);
}

.stat {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.stat i {
  color: var(--primary-color);
  font-size: var(--font-size-base);
}

/* Featured Products Section */
.featured-products {
  padding: var(--spacing-4xl) 0;
  background: var(--bg-primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-3xl);
}

/* Product Cards */
.product-card {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-quaternary);
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

/* 3D Product Cards - Simple overflow effect */
.product-card-3d {
  overflow: visible;
  margin-top: 40px;
  position: relative;
}

.product-card-3d .product-image {
  position: relative;
  height: 220px;
  overflow: visible;
  margin-top: -40px;
  margin-left: -15px;
  margin-right: -15px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.product-card-3d .product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transition: transform 0.3s ease;
}

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

.product-card-3d .product-content {
  position: relative;
  z-index: 2;
  background: var(--bg-secondary);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding: var(--spacing-xl);
  transform: translateZ(10px);
}

/* Regular Product Cards */
.product-card:not(.product-card-3d) {
  overflow: hidden;
}

.product-card:not(.product-card-3d) .product-image {
  position: relative;
  height: 200px;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.product-card:not(.product-card-3d) .product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:not(.product-card-3d):hover .product-img {
  transform: scale(1.1);
}

.product-badge {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--dark-text-primary);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.badge-best-seller {
  background: var(--secondary-color);
}

.badge-new {
  background: var(--success-color);
}

.badge-premium {
  background: var(--accent-color);
}

.badge-free {
  background: var(--info-color);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(var(--bg-primary-rgb), 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.product-content {
  padding: var(--spacing-xl);
}

.product-category {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--spacing-sm);
}

.product-category i {
  color: var(--primary-color);
}

.product-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  line-height: var(--line-height-tight);
}

.product-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--spacing-sm);
  font-weight: var(--font-weight-medium);
}

.product-description {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-sm);
}

.product-features {
  display: flex;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.product-features .feature-tag {
  background: var(--bg-quaternary);
  color: var(--text-secondary);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
}

.product-rating {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.stars {
  display: flex;
  gap: 2px;
}

.stars i {
  color: var(--secondary-color);
  font-size: var(--font-size-sm);
}

.rating-text {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
}

.product-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
}

.price-current {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
}

.price-old {
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.product-actions {
  margin-top: var(--spacing-lg);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.section-actions {
  text-align: center;
}

/* Store Features Section */
.store-features {
  padding: var(--spacing-4xl) 0;
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-2xl);
}

.feature-card {
  text-align: center;
  padding: var(--spacing-xl);
  background: var(--bg-primary);
  border: 1px solid var(--bg-quaternary);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  font-size: var(--font-size-xl);
  color: var(--dark-text-primary);
}

.feature-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.feature-description {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* Footer */
/* Footer styles removed - now uses main.css footer styles */

/* Responsive Design */
@media (max-width: 768px) {
  .store-hero {
    padding: calc(var(--spacing-3xl) + 60px) 0 var(--spacing-3xl);
  }
  
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .store-stats {
    gap: var(--spacing-lg);
  }
  
  .stat-item {
    min-width: 100px;
    padding: var(--spacing-md);
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .category-stats {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  /* Footer responsive styles removed - now uses main.css footer styles */
  
    /* 3D Cards Mobile Adjustments */
  .product-card-3d {
    margin-top: 35px;
  }

  .product-card-3d .product-image {
    margin-top: -35px;
    margin-left: -12px;
    margin-right: -12px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--font-size-2xl);
  }
  
  .hero-description {
    font-size: var(--font-size-base);
  }
  
  .store-stats {
    flex-direction: column;
    align-items: center;
  }
  
  .stat-item {
    width: 100%;
    max-width: 200px;
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .categories-grid {
    gap: var(--spacing-lg);
  }
  
    /* 3D Cards Small Mobile Adjustments */
  .product-card-3d {
    margin-top: 25px;
  }

  .product-card-3d .product-image {
    margin-top: -25px;
    margin-left: -10px;
    margin-right: -10px;
    height: 180px;
  }
  
  .products-grid {
    gap: var(--spacing-lg);
  }
}

/* Dark/Light Theme Transitions */
* {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

.slide-in-left {
  animation: slideInLeft 0.5s ease-out;
}

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

.slide-in-right {
  animation: slideInRight 0.5s ease-out;
}

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

/* Simple 3D Card Entry Animation */
.product-card-3d {
  animation: cardEntry 0.6s ease-out forwards;
}

.product-card-3d:nth-child(odd) {
  animation-delay: 0.1s;
}

.product-card-3d:nth-child(even) {
  animation-delay: 0.2s;
}

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

/* No overlay effect on hover */
.product-card-3d:hover .product-overlay {
  opacity: 0;
}

.product-card-3d .product-overlay {
  transition: opacity 0.3s ease;
}

/* Simple badge animation */
.product-badge {
  animation: badgeFloat 2s ease-in-out infinite;
}

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

/* Hover Effects */
.category-card:hover,
.feature-card:hover {
  border-color: var(--primary-color);
}

/* Focus States for Accessibility */
.category-card:focus-within,
.feature-card:focus-within {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
