/* -------------------------------------------------------------------------- */
/*                    BADGES & PREMIUM UI COMPONENTS STYLING                     */
/* -------------------------------------------------------------------------- */

/* Common style for all badges */
.core-badge, .pro-badge, .ultimate-badge {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 0.8rem;
  color: white !important;
  
  i {
    margin-right: 0.3rem;
    font-size: 0.9rem;
    color: white !important;
  }
  
  span {
    color: white !important;
  }
  
  /* Style for compact badges */
  &.badge-sm {
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    
    i {
      font-size: 0.8rem;
    }
  }
  
  /* Style for absolute positioned badges */
  &.badge-floating {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
  }
  
  /* Style for corner badges */
  &.badge-corner {
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 0 0.25rem 0 0.5rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Specific styles for each badge type */
.core-badge {
  background-color: var(--primary-color);
}

.pro-badge {
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.ultimate-badge {
  background: linear-gradient(135deg, #0277BD 0%, #01579B 100%);
}

/* Feature badge variant */
.feature-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  
  i {
    font-size: 0.9rem;
  }
}

/* Disabled badge variant */
.badge-disabled {
  opacity: 0.6;
  filter: grayscale(30%);
}

/* License status badges */
.license-free-badge {
  background-color: var(--blue-500);
}

.license-expired-badge {
  background-color: var(--red-500);
}

.license-valid-badge {
  background-color: var(--green-500);
}

/* -------------------------------------------------------------------------- */
/*                          PREMIUM INDICATOR & MENUS                         */
/* -------------------------------------------------------------------------- */

/* Premium indicator for menu items */
.is-premium-menu {
  position: relative;
  color: var(--primary-color) !important;

  &::after {
    content: "";
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--warning-color) 0%, var(--danger-color) 100%);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 193, 7, 0.6);
  }
}

/* Pro indicator for menu items */
.is-pro-menu {
  position: relative;

  &::after {
    content: "";
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 152, 0, 0.6);
  }
}

/* Ultimate indicator for menu items */
.is-ultimate-menu {
  position: relative;

  &::after {
    content: "";
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #0277BD 0%, #01579B 100%);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(2, 119, 189, 0.6);
  }
}

/* Hover effect on premium menu items */
.sidebar-menu :deep(.p-menuitem) .p-menuitem-link:hover .is-premium-menu,
.sidebar-menu :deep(.p-menuitem) .p-menuitem-link:hover .is-pro-menu,
.sidebar-menu :deep(.p-menuitem) .p-menuitem-link:hover .is-ultimate-menu {
  animation: pulse 1.5s infinite;
}

/* -------------------------------------------------------------------------- */
/*                    PREMIUM CONTAINERS & FEATURE SECTIONS                   */
/* -------------------------------------------------------------------------- */

/* Premium feature container */
.premium-feature-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  background-color: var(--surface-card);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* Premium header with badge */
.premium-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  
  h1 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--text-color);
  }
}

/* Premium banner for upgrade messaging */
.premium-banner {
  display: flex;
  align-items: center;
  background-color: var(--surface-hover);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border-left: 4px solid var(--warning-color);
  
  .banner-icon {
    font-size: 2.5rem;
    color: var(--warning-color);
    margin-right: 1.5rem;
  }
  
  .banner-content {
    h2 {
      margin: 0 0 0.5rem 0;
      font-size: 1.4rem;
      color: var(--text-color);
    }
    
    p {
      margin: 0.25rem 0;
      color: var(--text-color-secondary);
    }
    
    .banner-message {
      margin-top: 0.5rem;
      font-weight: 500;
    }
  }
}

/* Premium features sections */
.premium-features {
  h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 1.5rem 0 1rem;
  }
}

/* Feature demo layout */
.feature-demo {
  display: flex;
  margin-bottom: 1.5rem;
  
  @media (max-width: 768px) {
    flex-direction: column;
  }
}

/* Feature fields */
.feature-fields {
  flex: 1;
  margin-right: 2rem;
  
  @media (max-width: 768px) {
    margin-right: 0;
    margin-bottom: 1.5rem;
  }
  
  .p-field {
    margin-bottom: 1rem;
    
    label {
      display: block;
      margin-bottom: 0.5rem;
      font-weight: 500;
      color: var(--text-color-secondary);
    }
  }
}

/* Feature preview */
.feature-preview {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-section);
  border-radius: 8px;
  padding: 1.5rem;
  min-height: 150px;
  position: relative;
}

/* -------------------------------------------------------------------------- */
/*                      PREMIUM BLUR EFFECTS & OVERLAYS                       */
/* -------------------------------------------------------------------------- */

/* Blurred content effect for premium features */
.premium-blur {
  position: relative;
  width: 100%;
  
  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 1;
    border-radius: 8px;
  }
}

/* Overlay for premium sections */
.premium-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: rgba(var(--surface-card-rgb), 0.5);
  border-radius: 0 0 8px 8px;
}

/* Content wrapper for premium sections */
.section-content-wrapper {
  position: relative;
}

/* -------------------------------------------------------------------------- */
/*                             DIALOG COMPONENTS                             */
/* -------------------------------------------------------------------------- */

/* Dialog preview in premium sections */
.dialog-preview {
  width: 100%;
  padding: 1.5rem;
  background-color: var(--surface-card);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  
  h4 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    color: var(--text-color);
  }
  
  p {
    margin: 0 0 1.5rem 0;
    color: var(--text-color-secondary);
  }
  
  .dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }
}

/* Upgrade action section */
.upgrade-action {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* -------------------------------------------------------------------------- */
/*                             ANIMATION & EFFECTS                            */
/* -------------------------------------------------------------------------- */

/* Pulse animation for premium elements */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* -------------------------------------------------------------------------- */
/*                              DARK MODE SUPPORT                            */
/* -------------------------------------------------------------------------- */

/* Dark mode adjustments */
body[data-theme="dark"] {
  .is-premium-menu {
    color: var(--warning-color) !important;
  }
  
  .is-premium-menu::after {
    background: linear-gradient(135deg, var(--warning-color) 0%, var(--danger-color) 100%);
    box-shadow: 0 0 4px rgba(255, 193, 7, 0.6);
  }
  
  .premium-blur {
    &::before {
      background-color: rgba(0, 0, 0, 0.3);
    }
  }
  
  .premium-overlay {
    background-color: rgba(0, 0, 0, 0.5);
  }
} 

/* -------------------------------------------------------------------------- */
/*                      PROGRESSIVE PREVIEW BLUR EFFECTS                      */
/* -------------------------------------------------------------------------- */

/* Style pour la prévisualisation progressive des fonctionnalités premium */
.progressive-preview {
  position: relative;
  overflow: hidden;
}

.progressive-preview.premium-blur::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  backdrop-filter: blur(0);
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 20%,
    rgba(255, 255, 255, 0.5) 40%,
    rgba(255, 255, 255, 0.7) 60%,
    rgba(255, 255, 255, 0.9) 80%
  );
  mask-image: linear-gradient(180deg, 
    transparent 15%, 
    rgba(0, 0, 0, 0.4) 30%, 
    rgba(0, 0, 0, 0.8) 50%, 
    rgba(0, 0, 0, 1) 70%
  );
  -webkit-mask-image: linear-gradient(180deg, 
    transparent 15%, 
    rgba(0, 0, 0, 0.4) 30%, 
    rgba(0, 0, 0, 0.8) 50%, 
    rgba(0, 0, 0, 1) 70%
  );
  pointer-events: none;
}

/* Dark mode adjustments for progressive preview */
body[data-theme="dark"] {
  .progressive-preview.premium-blur::before {
    background: linear-gradient(180deg, 
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.3) 20%,
      rgba(0, 0, 0, 0.5) 40%,
      rgba(0, 0, 0, 0.7) 60%,
      rgba(0, 0, 0, 0.9) 80%
    );
  }
} 