/**
 * BRUSH & SMILE - Icon System
 * Professional SVG icons to replace emojis
 * Using Lucide-style icons
 */

/* Base icon styles */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  vertical-align: middle;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Icon sizes */
.icon-xs { font-size: 0.75rem; }
.icon-sm { font-size: 1rem; }
.icon-md { font-size: 1.25rem; }
.icon-lg { font-size: 1.5rem; }
.icon-xl { font-size: 2rem; }
.icon-2xl { font-size: 2.5rem; }
.icon-3xl { font-size: 3rem; }

/* Logo icon - Paintbrush/Palette */
.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  background: linear-gradient(135deg, var(--color-coral) 0%, var(--color-turquoise) 100%);
  border-radius: 50%;
  margin-right: 0.3em;
}

.logo-icon svg {
  width: 60%;
  height: 60%;
  stroke: white;
  fill: none;
}

/* Social media icons - filled style */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-cream);
  color: var(--color-charcoal);
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
}

.social-icon.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; }
.social-icon.facebook:hover { background: #1877f2; color: white; }
.social-icon.pinterest:hover { background: #e60023; color: white; }
.social-icon.tiktok:hover { background: #000; color: white; }

.social-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke: currentColor;
  fill: none;
}

/* Feature icons - for reassurance bar */
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-cream);
  color: var(--color-coral);
  margin-bottom: 0.5rem;
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Stars for ratings */
.star-rating {
  display: inline-flex;
  gap: 2px;
  color: #fbbf24;
}

.star-rating svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1;
}

.star-rating svg.empty {
  fill: none;
  stroke: #d1d5db;
}

/* Badge icons */
.badge-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-icon svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* Step icons for process flows */
.step-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--color-cream);
  color: var(--color-coral);
  margin: 0 auto 1rem;
}

.step-icon-wrapper svg {
  width: 2rem;
  height: 2rem;
}

/* Contact icons */
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-coral);
  color: white;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Language selector globe */
.globe-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-charcoal);
  opacity: 0.7;
}

.globe-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Flag badges for language */
.flag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 0.875rem;
  border-radius: 2px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-right: 0.25rem;
}

.flag-badge.fr {
  background: linear-gradient(90deg, #002395 33%, #fff 33%, #fff 66%, #ed2939 66%);
}

.flag-badge.en {
  background: #012169;
  position: relative;
  overflow: hidden;
}

/* Cart icon with badge */
.cart-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-icon-wrapper svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Search icon */
.search-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-charcoal);
  transition: color 0.3s ease;
}

.search-icon-btn:hover {
  color: var(--color-coral);
}

.search-icon-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Gift card icons */
.giftcard-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-coral) 0%, #ff8a80 100%);
  color: white;
  margin: 0 auto 1rem;
}

.giftcard-icon-wrapper svg {
  width: 2rem;
  height: 2rem;
}

/* FAQ category icons */
.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
}

.faq-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Add to cart button icon */
.btn-cart svg {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

/* Sparkle decoration - CSS only */
.sparkle {
  position: relative;
}

.sparkle::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-coral);
  border-radius: 50%;
  animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
}

/* Inline icon in text */
.icon-inline {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

/* Logo icon container */
.logo .logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--color-coral) 0%, #ff8a80 100%);
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}

.logo .logo-icon svg {
  width: 16px;
  height: 16px;
  stroke: white;
  stroke-width: 2;
}

/* Flag badges */
.flag-badge {
  display: inline-block;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  vertical-align: middle;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.flag-badge.fr {
  background: linear-gradient(90deg, #002395 33.33%, #fff 33.33%, #fff 66.66%, #ED2939 66.66%);
}

.flag-badge.en {
  background: #012169;
  position: relative;
}

.flag-badge.en::before,
.flag-badge.en::after {
  content: '';
  position: absolute;
}

.flag-badge.en::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: #C8102E;
  transform: translateY(-50%);
  box-shadow: 0 0 0 1px white;
}

.flag-badge.en::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #C8102E;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px white;
}

/* Social icons in footer */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social .social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-cream, #FFF5E6);
  color: var(--color-charcoal, #2D3436);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social .social-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.footer-social .social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.footer-social .social-icon.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
}

.footer-social .social-icon.facebook:hover {
  background: #1877f2;
  color: white;
}

.footer-social .social-icon.pinterest:hover {
  background: #e60023;
  color: white;
}

.footer-social .social-icon.tiktok:hover {
  background: #000;
  color: white;
}

/* Search and cart icons in header */
.nav-icons .search-icon,
.nav-icons .cart-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-charcoal, #2D3436);
  transition: color 0.3s ease;
}

.nav-icons .search-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-icons .search-icon:hover,
.nav-icons .cart-icon:hover {
  color: var(--color-coral, #ff6b6b);
}

.nav-icons .search-icon svg,
.nav-icons .cart-icon svg {
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Mobile nav close button */
.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-charcoal, #2D3436);
}

.mobile-nav-close:hover {
  color: var(--color-coral, #ff6b6b);
}

/* Search modal close */
.search-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #666;
  transition: color 0.3s ease;
}

.search-close:hover {
  color: var(--color-coral, #ff6b6b);
}

/* Reassurance icons */
.reassurance-item .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-coral, #ff6b6b);
}

.reassurance-item .icon svg {
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Step icons */
.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-coral, #ff6b6b);
  margin-bottom: 16px;
}

.step-icon svg {
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Newsletter icon */
.newsletter-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-coral, #ff6b6b);
  margin-bottom: 16px;
}

.newsletter-icon svg {
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hero badge icon */
.hero-badge svg {
  vertical-align: middle;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Badge icon */
.badge svg {
  vertical-align: middle;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Story badge */
.story-badge svg {
  vertical-align: middle;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hero image badge */
.hero-image-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Language selector */
.language-selector svg {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lang-btn .flag-badge {
  margin-right: 2px;
}
