/* FinaLove - Enhanced card styles for homepage sections */

/* Quiz card - neutral gray variant */
.quiz-card {
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}
body:not(.dark) .quiz-card { background: linear-gradient(135deg, #ffffff 0%, #f3f4f7 100%); }
body.dark .quiz-card { background: linear-gradient(135deg, #20242b 0%, #181a1f 100%); box-shadow: 0 8px 24px rgba(0,0,0,0.25); border-color: rgba(255,255,255,0.06); }

.quiz-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

/* Product cards - neutral gray */
.product-card {
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  transition: all 0.3s ease;
}

body:not(.dark) .product-card {
  background: #f7f8fa;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

body.dark .product-card {
  background: #2b2f37;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  border-color: rgba(255,255,255,0.06);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.16);
}

.product-card .card-img-top {
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-card .card-body {
  padding: 1.5rem;
}

.product-card .card-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #b0005b;
}

body.dark .product-card .card-title {
  color: #ff77ba;
}

.product-card .price-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff4da6 0%, #ff2d95 100%);
  color: white;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* Fallback when price-badge class is not used: style icon nicely */
.product-card .card-body .fa-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  margin-right: 8px;
  background: linear-gradient(135deg, #ff4da6 0%, #ff2d95 100%);
}
.product-card .card-body .fa-tag + * {
  vertical-align: middle;
}

/* Order form card - neutral */
.order-card {
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  overflow: hidden;
}

body:not(.dark) .order-card {
  background: linear-gradient(to bottom, #ffffff 0%, #f3f4f7 100%);
}

body.dark .order-card {
  background: linear-gradient(to bottom, #23262d 0%, #181a1f 100%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.06);
}

.order-card .card-body {
  padding: 2.5rem;
}

.order-card h3 {
  color: #b0005b;
  font-weight: 700;
  margin-bottom: 1rem;
}

body.dark .order-card h3 {
  color: #ff77ba;
}

/* Form enhancements */
.order-card .form-control,
.order-card .form-select {
  border-radius: 8px;
  border: 2px solid #eee;
  padding: 0.65rem 1rem;
  transition: all 0.3s ease;
}

body:not(.dark) .order-card .form-control:focus,
body:not(.dark) .order-card .form-select:focus {
  border-color: #ff4da6;
  box-shadow: 0 0 0 0.2rem rgba(255,77,166,0.15);
}

body.dark .order-card .form-control,
body.dark .order-card .form-select {
  background: #2b2430;
  border-color: #3a313f;
  color: #e9e4ee;
}

body.dark .order-card .form-control:focus,
body.dark .order-card .form-select:focus {
  border-color: #ff4da6;
  box-shadow: 0 0 0 0.2rem rgba(255,77,166,0.25);
}

.order-card .form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

body:not(.dark) .order-card .form-label {
  color: #555;
}

body.dark .order-card .form-label {
  color: #cbbfd1;
}

/* Button enhancements */
.btn-style.btn-primary {
  border-radius: 8px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255,77,166,0.3);
}

.btn-style.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,77,166,0.4);
}

.btn-outline-secondary {
  border-radius: 8px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Section headers enhancement */
.main-titles-head .header-name {
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

body:not(.dark) .main-titles-head .header-name {
  color: #333333;
}

body.dark .main-titles-head .header-name {
  color: #ff77ba;
}

.main-titles-head .header-name::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #ff4da6 0%, #ff2d95 100%);
  border-radius: 2px;
}

/* Catalogue grid spacing */
.gallery-image.row {
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.gallery-image.row > [class*='col-'] {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* Alert styling */
.alert-secondary {
  border-radius: 12px;
  border: none;
  padding: 1.25rem;
}

body:not(.dark) .alert-secondary {
  background: linear-gradient(135deg, #f5f5f7 0%, #fff7fb 100%);
  color: #555;
}

body.dark .alert-secondary {
  background: linear-gradient(135deg, #3a2f39 0%, #2a252f 100%);
  color: #f1d7e5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .product-card .card-img-top {
    height: 180px;
  }
  
  .order-card .card-body {
    padding: 1.5rem;
  }
  
  .quiz-card .card-body {
    padding: 1.5rem;
  }
}
