/* ==========================================================================
   TRAMOYA CMS · L'ATELIER DES ARTS - ESTILOS PRINCIPALES & CERTIFICADOS
   ========================================================================== */

/* Custom Scrollbars */
::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0E0E12;
}
::-webkit-scrollbar-thumb {
  background: #262632;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #D9383A;
}

/* Glassmorphism Styles */
.glass-card {
  background: rgba(20, 20, 26, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel {
  background: rgba(14, 14, 18, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-sidebar {
  background: rgba(12, 12, 16, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

/* Glowing effects */
.shadow-glow-crimson {
  box-shadow: 0 0 25px rgba(217, 56, 58, 0.35);
}

.shadow-glow-ochre {
  box-shadow: 0 0 25px rgba(229, 169, 60, 0.35);
}

.shadow-theatrical {
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(217, 56, 58, 0.15);
}

/* Custom Live Pulses */
.live-pulse {
  box-shadow: 0 0 0 0 rgba(217, 56, 58, 0.7);
  animation: pulse-ring 2s infinite cubic-bezier(0.66, 0, 1, 1);
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(217, 56, 58, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(217, 56, 58, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(217, 56, 58, 0); }
}

/* Audio Waveform Simulator */
.waveform-container {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 48px;
  padding: 0 8px;
}

.wave-bar {
  flex: 1;
  background: #646480;
  border-radius: 4px;
  min-height: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.wave-bar:hover,
.wave-bar.active {
  background: #E5A93C;
  box-shadow: 0 0 8px rgba(229, 169, 60, 0.6);
}

.wave-bar.played {
  background: #D9383A;
}

/* Certificate Styles & Templates */
.certificate-preview-box {
  width: 100%;
  max-width: 860px;
  aspect-ratio: 1.414 / 1; /* A4 Landscape aspect ratio */
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9);
}

/* Template 1: Classic Atelier Gold & Velvet */
.cert-template-gold {
  background: linear-gradient(135deg, #0d0d11 0%, #15151c 50%, #0d0d11 100%);
  border: 12px solid #1a1a24;
  outline: 2px solid #E5A93C;
  outline-offset: -8px;
}

.cert-template-gold .cert-inner-border {
  border: 1px solid rgba(229, 169, 60, 0.4);
  background: radial-gradient(circle at 50% 50%, rgba(229, 169, 60, 0.04) 0%, transparent 80%);
}

/* Template 2: Imperial Velvet Crimson */
.cert-template-crimson {
  background: linear-gradient(135deg, #12080a 0%, #1c0d10 50%, #0e0709 100%);
  border: 12px solid #241215;
  outline: 2px solid #D9383A;
  outline-offset: -8px;
}

.cert-template-crimson .cert-inner-border {
  border: 1px solid rgba(217, 56, 58, 0.4);
  background: radial-gradient(circle at 50% 50%, rgba(217, 56, 58, 0.05) 0%, transparent 80%);
}

/* Template 3: Modern Ivory Atelier (Light High-Contrast) */
.cert-template-ivory {
  background: #FDFCFA;
  color: #121214 !important;
  border: 14px solid #EAE6DF;
  outline: 2px solid #C28925;
  outline-offset: -8px;
}

.cert-template-ivory .cert-inner-border {
  border: 1px solid rgba(194, 137, 37, 0.35);
  background: radial-gradient(circle at 50% 50%, rgba(229, 169, 60, 0.03) 0%, transparent 80%);
}

.cert-template-ivory h1, 
.cert-template-ivory h2, 
.cert-template-ivory h3,
.cert-template-ivory .cert-text-main {
  color: #1a1a1f !important;
}

.cert-template-ivory .cert-text-sub {
  color: #555566 !important;
}

.cert-template-ivory .cert-seal {
  background: radial-gradient(circle, #D4AF37 0%, #AA7C11 100%);
  box-shadow: 0 4px 15px rgba(170, 124, 17, 0.35);
  color: #FFFFFF !important;
}

/* Official Embossed Gold Seal */
.cert-seal {
  background: radial-gradient(circle at 35% 35%, #FCD385 0%, #E5A93C 45%, #9E6B11 100%);
  box-shadow: 0 6px 20px rgba(229, 169, 60, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.6);
  border: 2px solid #FCD385;
}

/* Digital Signature Canvas */
#signature-pad-canvas {
  touch-action: none;
  background: #0E0E12;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  cursor: crosshair;
}

/* Video Timecode Marker Pins */
.timecode-chip {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.timecode-chip:hover {
  transform: translateY(-1px);
}

/* Print Stylesheet for Certificate Printing */
@media print {
  body * {
    visibility: hidden;
  }
  #certificate-print-zone,
  #certificate-print-zone * {
    visibility: visible;
  }
  #certificate-print-zone {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0E0E12 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .certificate-preview-box {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}
