/* ============================================
   MAS DES FUGUEYROLLES - ENHANCEMENTS CSS
   CRO, Weather, i18n styles
   ============================================ */

/* === CRO: SOCIAL PROOF NOTIFICATIONS === */
.cro-notification-container {
  position: fixed;
  bottom: 100px;
  left: 20px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.cro-notification {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-left: 4px solid var(--color-secondary);
  max-width: 340px;
  opacity: 0;
  transform: translateX(-100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

.cro-notification-show {
  opacity: 1;
  transform: translateX(0);
}

.cro-notification-hide {
  opacity: 0;
  transform: translateX(-100%);
}

.cro-notification-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.cro-notification-content {
  flex: 1;
  min-width: 0;
}

.cro-notification-text {
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.cro-notification-detail {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.cro-notification-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.cro-notification-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.cro-notification-close:hover {
  opacity: 1;
}

/* === CRO: FLOATING CTA === */
.cro-floating-cta {
  position: fixed;
  bottom: 185px;
  right: 24px;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 25px rgba(139, 115, 85, 0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.cro-floating-cta-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cro-floating-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(139, 115, 85, 0.5);
  color: white;
}

.cro-floating-cta svg {
  flex-shrink: 0;
}

/* === CRO: VIEWER BADGE === */
.cro-viewer-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.cro-viewer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: cro-pulse 1.5s infinite;
}

@keyframes cro-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === WEATHER WIDGET === */
#weather-widget {
  display: none;
}

.weather-widget-inner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 248, 245, 0.95));
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gray-light);
  max-width: 320px;
}

.weather-main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.weather-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.weather-info {
  display: flex;
  flex-direction: column;
}

.weather-temp {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.weather-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.weather-city {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.weather-suggestion {
  font-size: 0.8rem;
  color: var(--color-secondary-dark);
  background: rgba(107, 123, 94, 0.08);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  line-height: 1.4;
}

/* === i18n LANGUAGE POPUP === */
.i18n-popup {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--color-gray-light);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  font-size: 0.88rem;
}

.i18n-popup-show {
  opacity: 1;
  transform: translateY(0);
}

.i18n-popup span {
  white-space: nowrap;
}

.i18n-popup-yes {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.i18n-popup-yes:hover {
  background: var(--color-primary-dark);
}

.i18n-popup-no {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .cro-notification-container {
    bottom: 80px;
    left: 10px;
    right: 10px;
  }

  .cro-notification {
    max-width: 100%;
  }

  .cro-floating-cta {
    bottom: 175px;
    right: 16px;
    padding: 12px 20px;
    font-size: 0.82rem;
  }

  .cro-floating-cta span {
    display: none;
  }

  .cro-floating-cta {
    padding: 14px;
    border-radius: 50%;
  }

  .weather-widget-inner {
    max-width: 100%;
  }

  .i18n-popup {
    right: 10px;
    left: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
}
