/* ============================================
   SIMRACES WEBSTORE STYLES
   ============================================ */

/* Hero Section - Neon Blue Theme */
.webstore-hero {
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.7) 0%, rgba(0, 119, 255, 0.7) 100%);
  color: white;
  padding: 30px 0;
  text-align: center;
  margin-bottom: 0;
  backdrop-filter: blur(8px);
}

.webstore-hero h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.webstore-hero p {
  font-size: 1.1rem;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Affiliate Disclosure */
.affiliate-disclosure-banner {
  background-color: rgba(255, 243, 205, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid #ffc107;
  padding: 12px 0;
  margin-bottom: 30px;
}

.affiliate-disclosure-banner p {
  margin: 0;
  color: #856404;
  font-size: 14px;
  text-align: center;
}

.affiliate-disclosure-footer {
  text-align: center;
  padding: 30px 0;
  margin-top: 50px;
  background-color: rgba(248, 249, 250, 0.8);
}

.affiliate-disclosure-footer p {
  margin: 0;
  color: #999;
  font-size: 12px;
}

/* Webstore Container */
.webstore-container {
  min-height: calc(100vh - 200px);
  padding-bottom: 50px;
}

/* Filters Bar - Horizontal Layout */
.webstore-filters-bar {
  background: rgba(255, 255, 255, 0.85);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 153, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 153, 255, 0.1);
}

.webstore-filters-bar .input-group {
  box-shadow: 0 2px 4px rgba(0, 153, 255, 0.15);
}

.webstore-filters-bar input {
  background-color: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 153, 255, 0.2);
}

.webstore-filters-bar input:focus {
  border-color: #0099ff;
  box-shadow: 0 0 0 0.2rem rgba(0, 153, 255, 0.25);
}

.webstore-filters-bar button {
  background-color: #0099ff;
  color: white;
  border-color: #0099ff;
  transition: all 0.2s;
}

.webstore-filters-bar button:hover {
  background-color: #0077ff;
  border-color: #0077ff;
  color: white;
  box-shadow: 0 0 15px rgba(0, 153, 255, 0.5);
}

.webstore-filters-bar button:focus,
.webstore-filters-bar button:active {
  background-color: #0066dd;
  border-color: #0066dd;
  color: white;
  box-shadow: 0 0 0 0.2rem rgba(0, 153, 255, 0.25);
}

/* Sort Dropdown */
.sort-dropdown {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-label {
  color: #333;
  font-weight: 500;
  font-size: 14px;
  margin: 0;
  white-space: nowrap;
}

.sort-dropdown .form-select {
  background-color: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(0, 153, 255, 0.2);
  border-radius: 6px;
  padding: 8px 35px 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230099ff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 12px;
}

.sort-dropdown .form-select:hover {
  border-color: #0099ff;
  box-shadow: 0 0 8px rgba(0, 153, 255, 0.2);
}

.sort-dropdown .form-select:focus {
  border-color: #0099ff;
  box-shadow: 0 0 0 0.2rem rgba(0, 153, 255, 0.25);
  outline: none;
}

/* Results Info Bar */
.results-info {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  padding: 15px 20px;
  border-radius: 8px;
  border: 1px solid rgba(0, 153, 255, 0.1);
}

.results-info h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0;
}

.product-count {
  background: rgba(0, 153, 255, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 500;
  border: 1px solid rgba(0, 153, 255, 0.2);
}

.product-count span {
  font-size: 14px;
}

.text-light-secondary {
  opacity: 0.8;
}

/* Categories Horizontal Layout */
.categories-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.categories-horizontal .category-link {
  display: inline-block;
  padding: 8px 16px;
  color: #333;
  text-decoration: none;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid #e9ecef;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.categories-horizontal .category-link:hover {
  background-color: rgba(0, 153, 255, 0.1);
  border-color: #0099ff;
  color: #0077ff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 153, 255, 0.3);
}

.categories-horizontal .category-link.active {
  background: linear-gradient(135deg, #0099ff 0%, #0077ff 100%);
  border-color: #0099ff;
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(0, 153, 255, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Products Grid - Full Width, More Columns */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  transition: opacity 0.3s ease;
}

/* Product Card - More transparent with neon blue accents */
.product-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 153, 255, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 153, 255, 0.05);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 153, 255, 0.3);
  border-color: rgba(0, 153, 255, 0.2);
}

.product-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: rgba(248, 249, 250, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 153, 255, 0.1);
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 10px;
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #333;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}

.product-description {
  font-size: 14px;
  color: #666;
  margin: 0 0 15px 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.product-price {
  font-size: 22px;
  font-weight: bold;
  color: #B12704;
  margin: 0 0 15px 0;
}

/* Amazon Button */
.btn-amazon {
  display: inline-block;
  width: 100%;
  padding: 12px 20px;
  background-color: #FF9900;
  color: #111;
  text-decoration: none;
  text-align: center;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  transition: all 0.2s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-top: auto;
}

.btn-amazon:hover {
  background-color: #F08804;
  color: #111;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

.btn-amazon i {
  margin-right: 8px;
}

/* No Products Message */
.no-products {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 153, 255, 0.15);
  border: 1px solid rgba(0, 153, 255, 0.1);
}

.no-products p {
  font-size: 18px;
  color: #666;
  margin-bottom: 10px;
}

.no-products a {
  color: #0099ff;
  font-weight: 600;
  transition: all 0.2s;
}

.no-products a:hover {
  color: #0077ff;
  text-decoration: none;
  text-shadow: 0 0 8px rgba(0, 153, 255, 0.5);
}

/* Product Detail Page */
.product-detail {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 153, 255, 0.15);
  margin-bottom: 30px;
  border: 1px solid rgba(0, 153, 255, 0.1);
}

.product-image-large {
  background: rgba(248, 249, 250, 0.8);
  border-radius: 8px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.product-image-large img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
}

.product-title-large {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

.product-price-large {
  font-size: 2.5rem;
  font-weight: bold;
  color: #B12704;
  margin-bottom: 20px;
}

.product-description-full {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
}

.product-actions {
  margin-top: 30px;
}

.product-actions .btn-amazon {
  max-width: 300px;
  font-size: 18px;
  padding: 15px 30px;
}

.product-tags {
  margin-top: 20px;
}

.product-tags h5 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-tags .badge {
  font-size: 14px;
  padding: 8px 12px;
  font-weight: normal;
  background-color: #0099ff;
  color: white;
}

.product-meta {
  padding-top: 20px;
  border-top: 1px solid rgba(0, 153, 255, 0.1);
}

.product-meta p {
  margin: 5px 0;
  color: #666;
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 20px;
}

.breadcrumb-item a {
  color: #0099ff;
  text-decoration: none;
  transition: all 0.2s;
}

.breadcrumb-item a:hover {
  color: #0077ff;
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(0, 153, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 1400px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  }
}

@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .categories-horizontal {
    justify-content: center;
  }
  
  .sort-dropdown {
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  /* Full width on mobile - remove container padding */
  .webstore-hero {
    padding: 25px 0;
    margin-left: -15px;
    margin-right: -15px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }
  
  .webstore-hero .container {
    padding: 0 15px;
  }

  .webstore-hero h1 {
    font-size: 2rem;
  }

  .webstore-hero p {
    font-size: 1rem;
  }
  
  /* Full width affiliate banner */
  .affiliate-disclosure-banner {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }
  
  .affiliate-disclosure-banner .container {
    padding: 0 15px;
  }
  
  /* Full width container on mobile */
  .container-fluid {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* Wider product cards on tablet/mobile */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
  }
  
  /* Make product cards take full width */
  .product-card {
    width: 100%;
    max-width: 100%;
  }
  
  .webstore-filters-bar {
    padding: 12px;
    margin-left: 0;
    margin-right: 0;
  }
  
  .categories-horizontal {
    justify-content: flex-start;
  }
  
  .sort-dropdown {
    justify-content: flex-start;
    width: 100%;
  }
  
  .sort-label {
    min-width: 60px;
  }
  
  .sort-dropdown .form-select {
    flex: 1;
  }
  
  .results-info {
    padding: 12px 15px;
    margin-left: 0;
    margin-right: 0;
  }
  
  .results-info h2 {
    font-size: 1.5rem;
  }
  
  .results-info .d-flex {
    flex-direction: column;
    gap: 10px;
  }
  
  .product-count {
    align-self: flex-start;
  }

  .product-detail {
    padding: 15px;
    margin-left: 0;
    margin-right: 0;
  }

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

  .product-price-large {
    font-size: 2rem;
  }

  .product-actions .btn-amazon {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  /* Extra full width for small mobile devices */
  .webstore-hero {
    padding: 20px 0;
  }
  
  .webstore-hero .container {
    padding: 0 10px;
  }

  .webstore-hero h1 {
    font-size: 1.75rem;
  }
  
  .webstore-hero p {
    font-size: 0.95rem;
  }
  
  /* Minimal padding for maximum card width */
  .container-fluid {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
  
  .webstore-filters-bar {
    padding: 10px;
  }
  
  .results-info {
    padding: 10px 12px;
  }

  .product-image-large {
    min-height: 250px;
    padding: 15px;
  }
  
  /* Single column, full width cards */
  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 8px;
    margin-left: 0;
    margin-right: 0;
  }
  
  /* Maximize product card width */
  .product-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  
  /* Optimize card internal spacing */
  .product-info {
    padding: 16px;
  }
  
  .product-image {
    height: 200px;
  }
  
  .product-title {
    font-size: 15px;
    margin-bottom: 10px;
    min-height: 40px;
  }
  
  .product-description {
    font-size: 13px;
    margin-bottom: 12px;
  }
  
  .product-price {
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  .btn-amazon {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .categories-horizontal .category-link {
    font-size: 13px;
    padding: 6px 12px;
  }
  
  .sort-dropdown .form-select {
    font-size: 13px;
    padding: 6px 30px 6px 10px;
  }
  
  /* Full width footer on mobile */
  .affiliate-disclosure-footer {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }
  
  .affiliate-disclosure-footer .container {
    padding: 0 10px;
  }
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Neon Blue Glow Effects */
.webstore-filters-bar button:hover,
.categories-horizontal .category-link.active {
  animation: neon-glow 1.5s ease-in-out infinite alternate;
}

@keyframes neon-glow {
  from {
    box-shadow: 0 0 5px rgba(0, 153, 255, 0.2), 
                0 0 10px rgba(0, 153, 255, 0.2), 
                0 0 15px rgba(0, 153, 255, 0.2);
  }
  to {
    box-shadow: 0 0 10px rgba(0, 153, 255, 0.4), 
                0 0 20px rgba(0, 153, 255, 0.4), 
                0 0 30px rgba(0, 153, 255, 0.4);
  }
}
