/* ============================================
   Freemium Dashboard Styles
   ============================================ */

/* Premium Blur Effect */
.premium-blur {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
  position: relative;
}

/* Premium Overlay */
.premium-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.98);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  text-align: center;
  max-width: 90%;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.premium-overlay i {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.premium-overlay h4 {
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #2c3e50;
}

.premium-overlay p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Locked Section */
.locked-section {
  position: relative;
  padding: 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border: 2px dashed #cbd5e0;
  transition: all 0.3s ease;
}

.locked-section:hover {
  border-color: #667eea;
  background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

.locked-section .lock-icon {
  font-size: 2rem;
  color: #667eea;
}

/* Plan Badges */
.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-badge-basic {
  background: rgba(23, 162, 184, 0.1);
  color: #17a2b8;
  border: 1px solid rgba(23, 162, 184, 0.3);
}

.plan-badge-premium {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border: 1px solid rgba(102, 126, 234, 0.3);
}

.plan-badge-enterprise {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

/* Locked Tab */
.nav-link.locked {
  opacity: 0.6;
  cursor: not-allowed;
  position: relative;
}

.nav-link.locked:hover {
  opacity: 0.8;
}

.nav-link.locked::before {
  content: "\f023"; /* Font Awesome lock icon */
  font-family: "boxicons";
  margin-right: 0.5rem;
}

/* Feature Card with Lock */
.feature-card-locked {
  position: relative;
  overflow: hidden;
}

.feature-card-locked::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(240, 240, 240, 0.9) 100%
  );
  backdrop-filter: blur(3px);
  z-index: 1;
}

.feature-card-locked .unlock-cta {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* Upgrade CTA Button */
.btn-upgrade {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-upgrade:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  color: white;
}

.btn-upgrade i {
  margin-right: 0.5rem;
}

/* Preview Image Blur */
.preview-blur {
  filter: blur(12px);
  opacity: 0.6;
  pointer-events: none;
}

/* Tooltip for Locked Features */
.locked-tooltip {
  position: relative;
  cursor: help;
}

.locked-tooltip:hover::after {
  content: attr(data-plan-required);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #2c3e50;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 0.5rem;
}

/* Comparison Table Locked Rows */
.comparison-row-locked {
  opacity: 0.5;
  position: relative;
}

.comparison-row-locked td {
  filter: blur(2px);
}

.comparison-row-locked::after {
  content: "🔒 Premium";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: #667eea;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .premium-overlay {
    padding: 1.5rem;
  }

  .premium-overlay i {
    font-size: 3rem;
  }

  .premium-overlay h4 {
    font-size: 1.25rem;
  }

  .premium-overlay p {
    font-size: 0.85rem;
  }

  .btn-upgrade {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* Animation for Locked Elements */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.locked-shake:hover {
  animation: shake 0.5s ease-in-out;
}

/* Gradient Background for Premium Sections */
.premium-section-bg {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(118, 75, 162, 0.05) 100%
  );
  border-left: 4px solid #667eea;
}
