/* ==========================================================================
   Mahalya Premium UI Components
   ========================================================================== */

/* 1. General Typography Helpers & Utilities */
.text-gradient-purple {
  background: var(--gradient-purple-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.text-gradient-gold {
  background: var(--gradient-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* 2. Premium Badge Component */
.badge-launch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(108, 74, 182, 0.06);
  border: 1px solid rgba(108, 74, 182, 0.15);
  border-radius: var(--border-radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  user-select: none;
}

.badge-launch:hover {
  background: rgba(108, 74, 182, 0.1);
  border-color: rgba(108, 74, 182, 0.25);
  transform: translateY(-1px);
}

.badge-launch .badge-emoji {
  animation: badge-bounce 2s infinite ease-in-out;
}

@keyframes badge-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* 3. Premium Buttons Component */
.btn-custom {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--border-radius-full);
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-custom::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: var(--transition-fast);
  z-index: -1;
}

.btn-custom:hover::after {
  opacity: 1;
}

/* Primary Button: Explore Platform */
.btn-primary-custom {
  background: var(--gradient-primary);
  color: #FFFFFF !important;
  box-shadow: var(--shadow-button);
}

.btn-primary-custom:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 74, 182, 0.35);
}

.btn-primary-custom:active:not(:disabled) {
  transform: translateY(0);
}

/* Secondary Button: Become a Partner */
.btn-secondary-custom {
  background: #FFFFFF;
  border-color: rgba(108, 74, 182, 0.2);
  color: var(--color-primary) !important;
  box-shadow: var(--shadow-sm);
}

.btn-secondary-custom:hover:not(:disabled) {
  background: rgba(108, 74, 182, 0.03);
  border-color: rgba(108, 74, 182, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary-custom:active:not(:disabled) {
  transform: translateY(0);
}

/* Navbar CTA Button: Become a Partner (Compact) */
.btn-nav-custom {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 8px 20px;
  border-radius: var(--border-radius-full);
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary) !important;
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-nav-custom:hover {
  background: var(--color-primary);
  color: #FFFFFF !important;
  box-shadow: 0 4px 10px rgba(108, 74, 182, 0.15);
  transform: translateY(-1px);
}

.btn-nav-custom:active {
  transform: translateY(0);
}

/* 4. Decorative Background Blur Blobs */
.blur-blob-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.blur-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.blur-blob-primary {
  background: var(--color-primary);
  width: 500px;
  height: 500px;
  top: -150px;
  right: -50px;
  animation: float-blob-slow 25s infinite ease-in-out alternate;
}

.blur-blob-accent {
  background: var(--color-accent);
  width: 450px;
  height: 450px;
  bottom: -100px;
  left: -50px;
  opacity: 0.08;
  animation: float-blob-slower 30s infinite ease-in-out alternate;
}

@keyframes float-blob-slow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 40px) scale(1.1); }
  100% { transform: translate(-20px, 80px) scale(0.95); }
}

@keyframes float-blob-slower {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, -30px) scale(0.9); }
  100% { transform: translate(40px, 50px) scale(1.05); }
}

/* 5. Entrance Fade Up Animation */
.fade-up-init {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up-active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Delay modifiers for sequential fade-up */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* 6. Standard Reusable Brand Logo System */
.navbar-logo-img,
.owner-logo-img,
.admin-logo-img {
  height: 48px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.footer-logo-img {
  height: 60px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .navbar-logo-img,
  .owner-logo-img,
  .admin-logo-img {
    height: 40px;
    max-width: 135px;
  }
  .footer-logo-img {
    height: 52px;
    max-width: 170px;
  }
}

/* ==========================================================================
   7. Premium Empty State / Discovery Showcase System
   ========================================================================== */
.empty-state-showcase {
  background: linear-gradient(155deg, #FFFFFF 0%, #FDFBF7 45%, #F8F2E8 100%);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 28px;
  box-shadow: 0 20px 48px rgba(108, 74, 182, 0.07), 0 4px 16px rgba(201, 162, 39, 0.08);
  padding: 52px 32px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.empty-state-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6C4AB6, #D4A017, #B8325E, #6C4AB6);
  background-size: 200% 100%;
  animation: shimmerBorder 4s linear infinite;
}

@keyframes shimmerBorder {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.empty-state-showcase__icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.18) 0%, rgba(108, 74, 182, 0.12) 100%);
  border: 1px solid rgba(201, 162, 39, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: 0 10px 28px rgba(201, 162, 39, 0.2);
  transition: transform 0.3s ease;
}

.empty-state-showcase:hover .empty-state-showcase__icon {
  transform: scale(1.06) rotate(3deg);
}

.empty-state-showcase__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 9999px;
  color: #8C6B10;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.empty-state-showcase__title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1E1B4B;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.3;
}

.empty-state-showcase__subtitle {
  font-size: 1rem;
  color: #64748B;
  max-width: 640px;
  margin: 0 auto 26px;
  line-height: 1.6;
}

.empty-state-showcase__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  max-width: 820px;
  margin: 0 auto 32px;
  text-align: left;
}

.empty-state-showcase__feature-card {
  background: #FFFFFF;
  border: 1px solid rgba(108, 74, 182, 0.12);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.empty-state-showcase__feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 39, 0.4);
  box-shadow: 0 8px 24px rgba(108, 74, 182, 0.08);
}

.empty-state-showcase__feature-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.empty-state-showcase__feature-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1E1B4B;
  margin-bottom: 2px;
}

.empty-state-showcase__feature-desc {
  font-size: 0.8rem;
  color: #64748B;
  line-height: 1.4;
  margin-bottom: 0;
}

.empty-state-showcase__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.btn-showcase-primary {
  background: linear-gradient(135deg, #6C4AB6 0%, #523497 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 26px;
  border-radius: 9999px;
  border: none;
  box-shadow: 0 6px 18px rgba(108, 74, 182, 0.3);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.btn-showcase-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(108, 74, 182, 0.4);
  background: linear-gradient(135deg, #7A56C8 0%, #5C3BA8 100%);
}

.btn-showcase-gold {
  background: linear-gradient(135deg, #D4A017 0%, #B8860B 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 26px;
  border-radius: 9999px;
  border: none;
  box-shadow: 0 6px 18px rgba(212, 160, 23, 0.3);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.btn-showcase-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(212, 160, 23, 0.4);
  background: linear-gradient(135deg, #E2AF24 0%, #C49214 100%);
}

.btn-showcase-outline {
  background: #FFFFFF;
  color: #6C4AB6 !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 11px 24px;
  border-radius: 9999px;
  border: 1.5px solid #6C4AB6;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.btn-showcase-outline:hover {
  background: #6C4AB6;
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

.empty-state-showcase__helper {
  font-size: 0.88rem;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.empty-state-showcase__helper a {
  color: #128C7E;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.empty-state-showcase__helper a:hover {
  text-decoration: underline;
}

.empty-state-showcase__quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}

.showcase-chip {
  background: #FFFFFF;
  border: 1px solid rgba(108, 74, 182, 0.18);
  color: #475569;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.showcase-chip:hover {
  background: #6C4AB6;
  color: #FFFFFF;
  border-color: #6C4AB6;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .empty-state-showcase {
    padding: 36px 18px;
    border-radius: 20px;
  }
  .empty-state-showcase__title {
    font-size: 1.35rem;
  }
  .empty-state-showcase__subtitle {
    font-size: 0.92rem;
    margin-bottom: 20px;
  }
  .empty-state-showcase__features {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 24px;
  }
  .empty-state-showcase__actions {
    flex-direction: column;
    width: 100%;
  }
  .empty-state-showcase__actions .btn-showcase-primary,
  .empty-state-showcase__actions .btn-showcase-gold,
  .empty-state-showcase__actions .btn-showcase-outline {
    width: 100%;
    justify-content: center;
  }
}
