/* Modern Cards CSS - Separated from HTML */

/* Modern Cards Container */
.modern-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

/* Modern Card */
.modern-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.16);
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.modern-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.25);
}

/* Featured section card borders */
.featured-section .modern-card {
  border: 1px solid rgba(0,0,0,0.06);
}

/* Professional gradient border ring */
.featured-section .modern-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 2px; /* border thickness */
  border-radius: inherit;
  background: linear-gradient(135deg, #6ee7ff, #3b82f6, #22c55e);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.featured-section .modern-card:hover::before {
  opacity: 1;
}

/* Discount Badge */
.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #0099ff;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.hot-badge {
  position: absolute;
  top: 35px;
  left: 10px;
  background: #ff4444;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

/* Action Buttons Container */
.action-buttons {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Action Button */
.action-btn {
  background: white;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Card Image Container */
.card-image-container {
  height: 300px;
  background-size: cover;
  background-position: center;
  background-color: #f0f0f0; /* Fallback background color */
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.card-image-container::after {
  content: "Image not available";
  color: #666;
  font-size: 16px;
  text-align: center;
  display: none;
}
.card-image-container:not([style*="background-image"])::after {
  display: block;
}
.modern-card:hover .card-image-container { filter: saturate(1.08) contrast(1.04); }

/* Card Content */
.card-content {
  padding: 15px;
}

/* Card Title */
.card-title {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: #333;
}

/* Rating Container */
.rating-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.stars {
  color: #ffd700;
}

.rating-text {
  margin-left: 5px;
  font-size: 12px;
  color: #666;
}

/* Price Container */
.price-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 14px;
}

.discounted-price {
  color: #0099ff;
  font-weight: bold;
  font-size: 18px;
}

/* Section Headers */
.section-header {
  margin-top: 40px;
}

/* Card Header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.card-name {
  font-size: 1.3em;
  font-weight: bold;
}

/* Card Image */
.card-img {
  display: block;
  margin: 20px auto 10px auto;
}

/* Quantity */
.quantity {
  text-align: center;
  margin: 10px 0;
}

/* Price Button */
.price-btn {
  width: 100%;
  padding: 10px;
  background: #0099ff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.price-btn:hover {
  background: #007acc;
}

.price-btn-margin {
  margin-bottom: 18px;
}

/* Gradient Circles for Pucks */
.gradient-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 10px auto;
  font-size: 2.5em;
}

.gradient-red {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.gradient-green {
  background: linear-gradient(135deg, #26de81, #20bf6b);
}

.gradient-blue {
  background: linear-gradient(135deg, #74b9ff, #0984e3);
}

.gradient-yellow {
  background: linear-gradient(135deg, #fdcb6e, #e17055);
}

.gradient-purple {
  background: linear-gradient(135deg, #a55eea, #8b5cf6);
}

.gradient-orange {
  background: linear-gradient(135deg, #fd79a8, #e84393);
}

.gradient-black {
  background: linear-gradient(135deg, #a29bfe, #6c5ce7);
}

.gradient-teal {
  background: linear-gradient(135deg, #00b894, #00a085);
}

.gradient-pink {
  background: linear-gradient(135deg, #e84393, #fd79a8);
}

.gradient-light-orange {
  background: linear-gradient(135deg, #fdcb6e, #e17055);
}

/* Emoji Section */
.emoji-section {
  margin-top: 40px;
}

.emoji-display {
  font-size: 48px;
  display: block;
  margin: 20px auto 10px auto;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modern-cards-container {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px 0;
  }
  
  .card-image-container {
    height: 250px;
    background-color: #f0f0f0; /* Fallback background color */
    background-repeat: no-repeat;
  }
  .card-image-container::after {
    content: "Image not available";
    color: #666;
    font-size: 14px;
    text-align: center;
    display: none;
  }
  .card-image-container:not([style*="background-image"])::after {
    display: block;
  }
  
  .card-title {
    font-size: 14px;
  }
  
  .discounted-price {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .modern-cards-container {
    gap: 10px;
    padding: 10px 0;
  }
  
  .card-image-container {
    height: 200px;
    background-color: #f0f0f0; /* Fallback background color */
    background-repeat: no-repeat;
  }
  .card-image-container::after {
    content: "Image not available";
    color: #666;
    font-size: 12px;
    text-align: center;
    display: none;
  }
  .card-image-container:not([style*="background-image"])::after {
    display: block;
  }
  
  .action-btn {
    width: 30px;
    height: 30px;
  }
  
  .discount-badge,
  .hot-badge {
    font-size: 10px;
    padding: 3px 8px;
  }
}

@media (max-width: 400px) {
  /* Featured Section - Small Mobile - 50%-50% width */
  .featured-section {
    padding: 10px 0;
  }
  .featured-section h2 {
    font-size: 16px;
    margin-bottom: 12px;
    padding: 0 6px;
  }
  .modern-cards-container {
    gap: 1px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;
    grid-template-columns: 1fr 1fr !important;
  }
  .card-image-container {
    height: 110px;
    background-color: #f0f0f0; /* Fallback background color */
    background-repeat: no-repeat;
  }
  .card-image-container::after {
    content: "Image not available";
    color: #666;
    font-size: 10px;
    text-align: center;
    display: none;
  }
  .card-image-container:not([style*="background-image"])::after {
    display: block;
  }
  .modern-card .action-btn {
    width: 20px;
    height: 20px;
    font-size: 8px;
  }
  .modern-card .card-content {
    padding: 6px;
  }
  .modern-card .card-title {
    font-size: 9px;
    margin-bottom: 3px;
  }
  .modern-card .stars {
    font-size: 8px;
  }
  .modern-card .rating-text {
    font-size: 7px;
  }
  .modern-card .original-price {
    font-size: 8px;
  }
  .modern-card .discounted-price {
    font-size: 11px;
  }
  .discount-badge, .hot-badge {
    font-size: 7px;
    padding: 1px 3px;
  }
}
