/**
 * @file
 * Styles for WhatsApp Group Link templates.
 */

/* Default template - Icon only */
.whatsapp-template-default {
  display: inline-block;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.whatsapp-template-default:hover {
  transform: scale(1.1);
}

/* Button with Text template */
.whatsapp-template-button {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 24px;
  background-color: #25D366;
  color: white;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.whatsapp-template-button svg {
  margin-right: 8px;
}

.whatsapp-template-button span {
  font-size: 16px;
  color: white;
}

.whatsapp-template-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Floating Button template */
.whatsapp-group-link-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

.whatsapp-template-floating {
  display: block;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Banner Style template */
.whatsapp-group-link-banner {
  width: 100%;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: #25D366;
}

.whatsapp-template-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
}

.whatsapp-banner-content {
  display: flex;
  align-items: center;
}

.whatsapp-banner-text {
  margin-left: 12px;
}

.whatsapp-banner-text h3 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: white;
}

.whatsapp-banner-text p {
  margin: 4px 0 0;
  font-size: 14px;
  opacity: 0.9;
  color: white;
}

.whatsapp-banner-button {
  background-color: white;
  color: #075e54;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.whatsapp-template-banner:hover .whatsapp-banner-button {
  transform: scale(1.05);
}

/* Card with Description template */
.whatsapp-group-link-card {
  max-width: 350px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.whatsapp-group-link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.whatsapp-card-header {
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #25D366;
  position: relative;
  overflow: hidden;
}

.whatsapp-card-header::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 140%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(-15deg);
}

.whatsapp-card-body {
  padding: 25px;
  background-color: white;
  text-align: center;
}

.whatsapp-card-body h3 {
  margin: 0 0 15px;
  font-size: 22px;
  color: #333;
  font-weight: 600;
}

.whatsapp-card-body p {
  margin: 0 0 25px;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.whatsapp-card-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  background-color: #25D366;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.whatsapp-card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

/* Dialog Box template */
.whatsapp-dialog-preview {
  max-width: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.whatsapp-dialog-header {
  display: flex;
  align-items: center;
  padding: 18px;
  background-color: #25D366;
  position: relative;
}

.whatsapp-dialog-header::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 20px;
  width: 20px;
  height: 20px;
  background: #25D366;
  transform: rotate(45deg);
}

.whatsapp-dialog-header svg {
  margin-right: 12px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

.whatsapp-dialog-header h3 {
  margin: 0;
  color: white;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.whatsapp-dialog-body {
  padding: 25px;
  background-color: white;
  text-align: center;
}

.whatsapp-dialog-body p {
  margin: 0 0 20px;
  font-size: 15px;
  color: #444;
  line-height: 1.5;
}

.whatsapp-dialog-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  background-color: #25D366;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.whatsapp-dialog-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

/* Popup Notification template */
.whatsapp-popup-preview {
  max-width: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.whatsapp-popup-header {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}

.whatsapp-popup-header svg {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.whatsapp-popup-header span {
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

.whatsapp-popup-body {
  padding: 18px;
  background-color: white;
  text-align: center;
}

.whatsapp-popup-body p {
  margin: 0 0 15px;
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}

.whatsapp-popup-button {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 24px;
  background-color: #25D366;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.whatsapp-popup-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

/* Sticky Header template */
.whatsapp-sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #25D366;
  color: white;
  padding: 12px 0;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.whatsapp-sticky-content {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.whatsapp-sticky-content svg {
  margin-right: 12px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.whatsapp-sticky-text {
  margin-right: 20px;
  font-size: 16px;
  color: white;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.whatsapp-sticky-button {
  background-color: white;
  color: #075e54;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.whatsapp-sticky-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Preview dialog styling */
.whatsapp-preview-dialog .ui-dialog-titlebar {
  background-color: #25D366;
  color: white;
  border: none;
  font-weight: 600;
}

.whatsapp-preview-dialog .ui-dialog-content {
  padding: 25px;
}

.preview-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  min-height: 150px;
}