/* ═══════════════════════════════════════════════════════════════
   UI KIT — Layout & Styles
   ═══════════════════════════════════════════════════════════════ */

:root {
  --sidebar-w: 260px;
  --header-h: 70px;
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar (Removido para usar Top Nav) ── */
.uk-sidebar { display: none; }

/* ════════════════════════════════════════════════════════════════
   BOTÕES SEMÂNTICOS — Exclusivos do UI Kit
   (Removidos do styles.css principal para manter o site leve)
   ════════════════════════════════════════════════════════════════ */

/* --- Solid Semantic Variants --- */
.btn-success {
  background: var(--gradient-success);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
}
.btn-success:hover {
  box-shadow: 0 0 45px rgba(16, 185, 129, 0.5);
}

.btn-danger {
  background: var(--gradient-danger);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
  box-shadow: 0 0 45px rgba(239, 68, 68, 0.5);
}

.btn-warning {
  background: var(--gradient-warning);
  color: #05051A;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.3);
}
.btn-warning:hover {
  box-shadow: 0 0 45px rgba(245, 158, 11, 0.5);
  color: #000;
}

.btn-info {
  background: var(--gradient-info);
  box-shadow: 0 0 25px rgba(14, 165, 233, 0.3);
}
.btn-info:hover {
  box-shadow: 0 0 45px rgba(14, 165, 233, 0.5);
}

.btn-light {
  background: #f8fafc;
  color: #05051A;
  border-color: #f8fafc;
}
.btn-light:hover {
  background: #fff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.45);
}

.btn-dark {
  background: #0f172a;
  border: 1px solid #1e293b;
}
.btn-dark:hover {
  background: #020617;
  border-color: #334155;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* --- Outline Variants --- */
.btn-outline-primary { border: 1px solid var(--purple-main); background: transparent; color: var(--purple-main); }
.btn-outline-success { border: 1px solid var(--success); background: transparent; color: var(--success); }
.btn-outline-danger  { border: 1px solid var(--danger); background: transparent; color: var(--danger); }
.btn-outline-warning { border: 1px solid var(--warning); background: transparent; color: var(--warning); }
.btn-outline-info    { border: 1px solid var(--info); background: transparent; color: var(--info); }

.btn-outline-primary:hover { background: var(--purple-main); color: #fff; box-shadow: var(--glow-purple); }
.btn-outline-success:hover { background: var(--success); color: #fff; box-shadow: 0 0 25px rgba(16, 185, 129, 0.35); }
.btn-outline-danger:hover  { background: var(--danger); color: #fff; box-shadow: 0 0 25px rgba(239, 68, 68, 0.35); }
.btn-outline-warning:hover { background: var(--warning); color: #05051A; box-shadow: 0 0 25px rgba(245, 158, 11, 0.35); }
.btn-outline-info:hover    { background: var(--info); color: #fff; box-shadow: 0 0 25px rgba(14, 165, 233, 0.35); }

/* --- Link Style --- */
.btn-link {
  background: transparent;
  border: none;
  color: var(--cyan);
  padding: 0;
  height: auto;
  border-radius: 0;
  text-transform: none;
  font-weight: 600;
  letter-spacing: 0;
  min-width: unset;
}
.btn-link:hover {
  color: #fff;
  text-decoration: underline;
  transform: none;
}

/* --- Disabled State --- */
.btn-disabled, .btn:disabled {
  opacity: 0.35 !important;
  pointer-events: none !important;
  cursor: not-allowed;
  filter: grayscale(0.8);
}

/* --- White Button --- */
.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  color: #05051A;
  border: 1px solid #ffffff;
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all var(--ease-normal);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}
.btn-white:hover {
  background: #f0f0f0;
  border-color: #f0f0f0;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* --- Tag Semantic Variants --- */
.tag-primary {
  background: rgba(123, 47, 255, 0.2);
  color: #c084fc;
  border-color: rgba(123, 47, 255, 0.4);
}
.tag-primary::before {
  background: var(--purple-main);
  box-shadow: 0 0 10px var(--purple-main);
}

.tag-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.15);
}
.tag-secondary::before {
  background: #e2e8f0;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.tag-success {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}
.tag-success::before {
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
}

.tag-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}
.tag-danger::before {
  background: var(--danger);
  box-shadow: 0 0 10px var(--danger);
}

.tag-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}
.tag-warning::before {
  background: var(--warning);
  box-shadow: 0 0 10px var(--warning);
}

.tag-info {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  border-color: rgba(14, 165, 233, 0.4);
}
.tag-info::before {
  background: var(--info);
  box-shadow: 0 0 10px var(--info);
}

/* ── Main Content ── */
.uk-main {
  margin-left: 0;
  flex: 1;
  padding: 8rem 0 3rem; /* Espaço para a navbar fixa, padding lateral via container */
  max-width: 100%;
  position: relative;
}

.uk-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.uk-hero {
  margin-bottom: 5rem;
  text-align: center;
}

.uk-section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 15px;
}

.uk-section-title i { opacity: 0.5; font-size: 0.8em; }

/* ── Grid of Items ── */
.uk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.uk-card-demo {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  backdrop-filter: blur(10px);
}

.uk-card-demo span {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: monospace;
}

/* ── Color Swatches ── */
.uk-swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.5rem;
}

.uk-swatch {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.uk-swatch-color {
  height: 80px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
}

.uk-swatch-info {
  font-size: 0.8rem;
}

.uk-swatch-info strong { display: block; margin-bottom: 2px; }

/* ── Liquid Ether Demo ── */
.uk-ether-demo {
  width: 100%;
  height: 600px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 2rem;
  border: 1px solid var(--border-subtle);
}

.uk-ether-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  pointer-events: none; /* Let clicks pass through to LiquidEther simulation? No, we want buttons interactive */
}

.uk-ether-content * { pointer-events: auto; }

.uk-ether-overlay-text {
  text-align: center;
  max-width: 600px;
}

/* ── Typography Scale ── */
.uk-type-row {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.uk-type-label {
  width: 100px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.uk-type-content { flex: 1; }

/* ── Comparison Columns ── */
.uk-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
}

.uk-comparison-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--purple-light);
  margin-bottom: 2rem;
  border-left: 3px solid var(--purple-main);
  padding-left: 10px;
}

.uk-comparison-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .uk-comparison-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ── Cursor Toggle UI ── */
.uk-cursor-panel {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 1rem;
}

.cursor-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  color: white;
  font-size: 0.75rem;
  font-family: var(--font-display);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cursor-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--purple-main);
  transform: translateY(-2px);
}

.cursor-toggle-btn.active {
  background: var(--purple-main);
  box-shadow: 0 5px 15px rgba(123, 47, 255, 0.4);
}

/* ── Button Extras Toggles ── */
.uk-extras-panel {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 1rem;
}

.extra-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  color: white;
  font-size: 0.75rem;
  font-family: var(--font-display);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.extra-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--purple-main);
  transform: translateY(-2px);
}

.extra-toggle-btn.active {
  background: var(--purple-main);
  box-shadow: 0 5px 15px rgba(123, 47, 255, 0.4);
}

/* ── Pulsing Animations ── */
@keyframes ukPulsePrimary {
    0%, 100% { box-shadow: var(--pulse-glass, 0 0 0 transparent), 0 0 20px rgba(123, 47, 255, 0.4); }
    50% { box-shadow: var(--pulse-glass, 0 0 0 transparent), 0 0 45px rgba(123, 47, 255, 0.8), 0 0 15px rgba(224, 64, 251, 0.4); }
}
@keyframes ukPulseSecondary {
    0%, 100% { box-shadow: var(--pulse-glass, 0 0 0 transparent), 0 0 20px rgba(107, 114, 128, 0.4); }
    50% { box-shadow: var(--pulse-glass, 0 0 0 transparent), 0 0 45px rgba(107, 114, 128, 0.8); }
}
@keyframes ukPulseSuccess {
    0%, 100% { box-shadow: var(--pulse-glass, 0 0 0 transparent), 0 0 20px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: var(--pulse-glass, 0 0 0 transparent), 0 0 45px rgba(16, 185, 129, 0.8); }
}
@keyframes ukPulseDanger {
    0%, 100% { box-shadow: var(--pulse-glass, 0 0 0 transparent), 0 0 20px rgba(239, 68, 68, 0.4); }
    50% { box-shadow: var(--pulse-glass, 0 0 0 transparent), 0 0 45px rgba(239, 68, 68, 0.8); }
}
@keyframes ukPulseWarning {
    0%, 100% { box-shadow: var(--pulse-glass, 0 0 0 transparent), 0 0 20px rgba(245, 158, 11, 0.4); }
    50% { box-shadow: var(--pulse-glass, 0 0 0 transparent), 0 0 45px rgba(245, 158, 11, 0.8); }
}
@keyframes ukPulseInfo {
    0%, 100% { box-shadow: var(--pulse-glass, 0 0 0 transparent), 0 0 20px rgba(14, 165, 233, 0.4); }
    50% { box-shadow: var(--pulse-glass, 0 0 0 transparent), 0 0 45px rgba(14, 165, 233, 0.8); }
}
@keyframes ukPulseWhite {
    0%, 100% { box-shadow: var(--pulse-glass, 0 0 0 transparent), 0 0 15px rgba(255, 255, 255, 0.3); }
    50% { box-shadow: var(--pulse-glass, 0 0 0 transparent), 0 0 35px rgba(255, 255, 255, 0.6); }
}

/* Global Toggle Support */

/* Pre-requisite for Glass Surface (Preserve background shadow) */
.uk-pulse-active .glass-surface {
    --pulse-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Primary Layer */
.uk-pulse-active .btn-primary, 
.uk-pulse-active .btn-outline-primary,
.uk-pulse-active .star-border--primary, 
.uk-pulse-active .gs-primary,
.uk-pulse-active .pixel-card--primary,
.uk-pulse-active .tag-primary {
    animation: ukPulsePrimary 2.5s ease-in-out infinite !important;
}

/* Secondary Layer */
.uk-pulse-active .btn-secondary, 
.uk-pulse-active .star-border--secondary, 
.uk-pulse-active .gs-secondary,
.uk-pulse-active .pixel-card--secondary,
.uk-pulse-active .tag-secondary {
    animation: ukPulseSecondary 2.5s ease-in-out infinite !important;
}

/* Success Layer */
.uk-pulse-active .btn-success, 
.uk-pulse-active .btn-outline-success,
.uk-pulse-active .star-border--success, 
.uk-pulse-active .gs-success,
.uk-pulse-active .pixel-card--success,
.uk-pulse-active .tag-success {
    animation: ukPulseSuccess 2.5s ease-in-out infinite !important;
}

/* Danger Layer */
.uk-pulse-active .btn-danger, 
.uk-pulse-active .btn-outline-danger,
.uk-pulse-active .star-border--danger, 
.uk-pulse-active .gs-danger,
.uk-pulse-active .pixel-card--danger,
.uk-pulse-active .tag-danger {
    animation: ukPulseDanger 2.5s ease-in-out infinite !important;
}

/* Warning Layer */
.uk-pulse-active .btn-warning, 
.uk-pulse-active .btn-outline-warning,
.uk-pulse-active .star-border--warning, 
.uk-pulse-active .gs-warning,
.uk-pulse-active .pixel-card--warning,
.uk-pulse-active .tag-warning {
    animation: ukPulseWarning 2.5s ease-in-out infinite !important;
}

/* Info Layer */
.uk-pulse-active .btn-info, 
.uk-pulse-active .btn-outline-info,
.uk-pulse-active .star-border--info, 
.uk-pulse-active .gs-info,
.uk-pulse-active .pixel-card--info,
.uk-pulse-active .star-border--cyan,
.uk-pulse-active .tag-info {
    animation: ukPulseInfo 2.5s ease-in-out infinite !important;
}

/* White Layer */
.uk-pulse-active .btn-white,
.uk-pulse-active .btn-light,
.uk-pulse-active .star-border--white, 
.uk-pulse-active [class*="pixel-btn--white-"] {
    animation: ukPulseWhite 2.5s ease-in-out infinite !important;
}

/* ═══════════════════════════════════════════════════
   BUTTON GALLERY — Interactive Preview Card
   ═══════════════════════════════════════════════════ */

/* ── Background Switcher ── */
.bg-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2rem 0 1.5rem;
}

.bg-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.25s ease;
}

.bg-switch-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
  transform: translateY(-2px);
}

.bg-switch-btn.active {
  background: rgba(123, 47, 255, 0.25);
  border-color: var(--purple-main);
  color: #fff;
  box-shadow: 0 0 20px rgba(123,47,255,0.3);
}

/* ── Background Swatches (pills) ── */
.bg-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.bg-swatch--animated {
  background: linear-gradient(135deg, #5227FF, #FF9FFC, #B497CF);
  animation: swatchSpin 3s linear infinite;
}

.bg-swatch--prismatic {
  background: conic-gradient(#7B2FFF, #00D4FF, #E040FB, #FF6B9D, #7B2FFF);
  animation: swatchSpin 4s linear infinite;
}

@keyframes swatchSpin {
  to { filter: hue-rotate(360deg); }
}

/* ── Gallery Card ── */
.btn-gallery-card {
  position: relative;
  min-height: 480px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  /* Padding handled by gallery-content */
}

/* ── Fullscreen animated bg layers ── */
.gallery-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
  z-index: 0;
}

#gallery-prismatic-canvas, #surface-prismatic-canvas {
  mix-blend-mode: lighten;
  opacity: 0.85;
}

#gallery-ether-container, #surface-ether-container {
  mix-blend-mode: normal;
  opacity: 1;
}

/* ── Hero Glow Effect (mimics .section-glow) ── */
.gallery-hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(123,47,255,0.12) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  display: none;
  animation: galleryGlowPulse 8s ease-in-out infinite;
}

@keyframes galleryGlowPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.2); }
}

/* ── Gallery Content (above bg layers) ── */
.gallery-content {
  position: relative;
  z-index: 2;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Each Row (categoria de botão) ── */
.gallery-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.gallery-row:last-child {
  border-bottom: none;
}

/* ── Row Label (sidebar) ── */
.gallery-row-label {
  width: 120px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  padding-top: 18px;
  border-left: 2px solid var(--purple-main);
  padding-left: 10px;
}

/* ── Row Buttons (flex wrap) ── */
.gallery-row-buttons {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: flex-end;
}

/* ── Each Gallery Item (button + label) ── */
.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.gallery-item code {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.35);
  font-family: monospace;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .gallery-row {
    flex-direction: column;
    gap: 1rem;
  }
  .gallery-row-label {
    width: auto;
    padding-top: 0;
  }
  .gallery-content {
    padding: 1.5rem;
  }
}
