/* ==========================================================================
   PLANCK — SIGNATURE BADGE FOR CLIENT FOOTERS ("Desenvolvido por Planck")
   Design System & Attributable Footer Badge Engine
   Aesthetics: Obsidian Glass, 24k Gold Metallic, Tactile Micro-Interactions
   Fully isolated BEM namespace: .planck-signature
   Non-intrusive: Designed exclusively for website footers (zero floating/fixed code)
   Zero framework dependencies — Works in any HTML/CSS/JS, WordPress, React, etc.
   ========================================================================== */

/* Google Font: Plus Jakarta Sans */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- Root & Reset Scope --- */
.planck-signature {
  --ps-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ps-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ps-transition: all 0.3s var(--ps-ease);
  
  /* Default: Obsidian & 24k Gold Theme */
  --ps-bg: rgba(12, 12, 18, 0.85);
  --ps-bg-hover: rgba(20, 20, 30, 0.98);
  --ps-border: rgba(245, 192, 68, 0.28);
  --ps-border-hover: rgba(245, 192, 68, 0.75);
  --ps-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 15px rgba(245, 192, 68, 0.08);
  --ps-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 192, 68, 0.25);
  --ps-text-label: #94a3b8;
  --ps-text-brand: #ffffff;
  --ps-gold: #f5c044;
  --ps-gold-light: #ffebaa;
  --ps-arrow-color: #f5c044;
  
  box-sizing: border-box;
  font-family: var(--ps-font);
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  line-height: 1;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.planck-signature *,
.planck-signature *::before,
.planck-signature *::after {
  box-sizing: border-box;
}

/* --- Main Interactive Anchor Link --- */
.planck-signature__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 9px;
  background: var(--ps-bg);
  border: 1px solid var(--ps-border);
  border-radius: 9999px;
  text-decoration: none;
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: var(--ps-shadow);
  transition: var(--ps-transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

.planck-signature__link:hover {
  background: var(--ps-bg-hover);
  border-color: var(--ps-border-hover);
  box-shadow: var(--ps-shadow-hover);
  transform: translateY(-1.5px);
}

.planck-signature__link:active {
  transform: translateY(0);
}

/* --- Animated Shimmer Light Sweep on Hover --- */
.planck-signature__shimmer {
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 30%,
    rgba(245, 192, 68, 0.25) 50%,
    rgba(255, 255, 255, 0.08) 70%,
    transparent 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  transition: left 0.75s ease;
}

.planck-signature__link:hover .planck-signature__shimmer {
  left: 160%;
}

/* --- Emblem Container with Radial Glow --- */
.planck-signature__emblem {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.planck-signature__glow {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 192, 68, 0.45) 0%, transparent 75%);
  filter: blur(4px);
  opacity: 0.6;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.planck-signature__link:hover .planck-signature__glow {
  opacity: 1;
  transform: scale(1.2);
}

.planck-signature__logo {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 5px rgba(245, 192, 68, 0.35));
  transition: transform 0.45s var(--ps-ease);
}

.planck-signature__link:hover .planck-signature__logo {
  transform: rotate(20deg) scale(1.08);
}

/* --- Text Content --- */
.planck-signature__content {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.planck-signature__label {
  color: var(--ps-text-label);
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
}

.planck-signature__brand {
  color: var(--ps-text-brand);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color 0.3s ease;
}

.planck-signature__dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ps-gold);
  box-shadow: 0 0 7px var(--ps-gold);
}

/* --- External Link Arrow Icon --- */
.planck-signature__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ps-arrow-color);
  opacity: 0.75;
  transition: transform 0.3s var(--ps-ease), opacity 0.3s ease, color 0.3s ease;
}

.planck-signature__link:hover .planck-signature__arrow {
  opacity: 1;
  transform: translate(2px, -2px);
  color: var(--ps-gold-light);
}

/* --- Status LED Pulse Dot (Optional Tech variant) --- */
.planck-signature__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  margin-right: 3px;
  animation: psPulse 2s infinite ease-in-out;
}

@keyframes psPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px #10b981;
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
    box-shadow: 0 0 2px #10b981;
  }
}

/* ==========================================================================
   FOOTER STYLES / VARIANTS (100% NON-FLOATING)
   ========================================================================== */

/* 1. Standard Footer Pill (Balanced and sleek) */
.planck-signature--footer-pill .planck-signature__link {
  border-radius: 9999px;
  padding: 6px 14px 6px 9px;
}

/* 2. Minimalist / Discreto (No background, sits right alongside copyright) */
.planck-signature--footer-minimal .planck-signature__link {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 4px 8px;
}

.planck-signature--footer-minimal .planck-signature__link:hover {
  background: rgba(245, 192, 68, 0.08);
  border-color: rgba(245, 192, 68, 0.25);
  box-shadow: 0 2px 12px rgba(245, 192, 68, 0.1);
  border-radius: 6px;
}

/* 3. Micro Pill Compact (26px height, ultra slim for tight copyright lines) */
.planck-signature--footer-compact .planck-signature__link {
  padding: 4px 10px 4px 6px;
  gap: 7px;
}

.planck-signature--footer-compact .planck-signature__emblem {
  width: 18px;
  height: 18px;
}

.planck-signature--footer-compact .planck-signature__content {
  font-size: 10.5px;
}

/* 4. Tech Card Badge (Square-curved, engineered authority) */
.planck-signature--footer-card .planck-signature__link {
  border-radius: 8px;
  padding: 6px 12px 6px 8px;
}

/* ==========================================================================
   PALETTES / THEMES FOR FOOTERS
   ========================================================================== */

/* Theme: Obsidian & Ouro 24k (Padrão Planck para rodapés escuros/pretos) */
.planck-signature--theme-gold {
  --ps-bg: rgba(12, 12, 18, 0.85);
  --ps-bg-hover: rgba(20, 20, 30, 0.98);
  --ps-border: rgba(245, 192, 68, 0.3);
  --ps-border-hover: rgba(245, 192, 68, 0.8);
  --ps-text-label: #94a3b8;
  --ps-text-brand: #ffffff;
  --ps-gold: #f5c044;
  --ps-arrow-color: #f5c044;
}

/* Theme: Studio Light (Para rodapés brancos, bege ou claros de clientes) */
.planck-signature--theme-light {
  --ps-bg: rgba(255, 255, 255, 0.94);
  --ps-bg-hover: #ffffff;
  --ps-border: rgba(15, 23, 42, 0.12);
  --ps-border-hover: rgba(212, 154, 29, 0.65);
  --ps-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  --ps-shadow-hover: 0 8px 25px rgba(212, 154, 29, 0.18);
  --ps-text-label: #64748b;
  --ps-text-brand: #0f172a;
  --ps-gold: #b8861c;
  --ps-arrow-color: #b8861c;
}

.planck-signature--theme-light .planck-signature__glow {
  background: radial-gradient(circle, rgba(245, 192, 68, 0.3) 0%, transparent 75%);
}

.planck-signature--theme-light .planck-signature__shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 40%,
    rgba(245, 192, 68, 0.25) 60%,
    transparent 100%
  );
}

/* Theme: Stealth Slate (Para rodapés em tons de cinza/grafite neutro) */
.planck-signature--theme-stealth {
  --ps-bg: rgba(20, 24, 33, 0.85);
  --ps-bg-hover: rgba(30, 36, 50, 0.95);
  --ps-border: rgba(255, 255, 255, 0.1);
  --ps-border-hover: rgba(255, 255, 255, 0.35);
  --ps-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  --ps-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.6);
  --ps-text-label: #94a3b8;
  --ps-text-brand: #f8fafc;
  --ps-gold: #94a3b8;
  --ps-arrow-color: #cbd5e1;
}

/* Theme: Monocromático (Pure minimal) */
.planck-signature--theme-mono {
  --ps-bg: rgba(18, 18, 18, 0.8);
  --ps-bg-hover: rgba(28, 28, 28, 0.95);
  --ps-border: rgba(255, 255, 255, 0.12);
  --ps-border-hover: rgba(255, 255, 255, 0.4);
  --ps-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  --ps-shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.6);
  --ps-text-label: #888888;
  --ps-text-brand: #ffffff;
  --ps-gold: #ffffff;
  --ps-arrow-color: #aaaaaa;
}

.planck-signature--theme-mono .planck-signature__glow {
  opacity: 0.2;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Para rodapés mobile)
   ========================================================================== */
@media (max-width: 640px) {
  .planck-signature {
    margin: 6px 0;
  }
  .planck-signature__link {
    padding: 5px 12px 5px 7px;
    gap: 7px;
  }
  .planck-signature__content {
    font-size: 10.5px;
  }
  .planck-signature__emblem {
    width: 20px;
    height: 20px;
  }
}
