/* ==========================================================================
   GINICRAFT - LIVE VISUAL EDITOR SIDE-PANEL STYLES
   Ultra-luxury gold & glassmorphic on-page editor
   ========================================================================== */

/* Floating Toggle Badge */
.live-editor-toggle-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999990;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #161922 0%, #0d0f14 100%);
  color: #e6ca65;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(212, 175, 55, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
}

.live-editor-toggle-btn:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(212, 175, 55, 0.8);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55), 0 0 30px rgba(212, 175, 55, 0.35);
  color: #fff;
}

.live-editor-toggle-btn svg {
  color: #d4af37;
  transition: transform 0.3s ease;
}

.live-editor-toggle-btn:hover svg {
  transform: rotate(15deg);
}

.live-editor-toggle-btn .badge-pill {
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #f7e7a9;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.08em;
}

/* Sliding Side Panel */
.live-editor-panel {
  position: fixed;
  top: 0;
  right: -460px;
  width: 440px;
  max-width: calc(100vw - 20px);
  height: 100vh;
  background: rgba(13, 16, 23, 0.96);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.6);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Outfit', sans-serif;
  color: #e2e8f0;
}

.live-editor-panel.open {
  right: 0;
}

/* Panel Header */
.live-editor-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(18, 22, 32, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-editor-title-wrap h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: #f3e5ab;
  letter-spacing: 0.03em;
  margin: 0 0 2px 0;
}

.live-editor-title-wrap p {
  font-size: 0.76rem;
  color: #94a3b8;
  margin: 0;
  letter-spacing: 0.02em;
}

.live-editor-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.live-editor-close-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: #d4af37;
  color: #fff;
  transform: rotate(90deg);
}

/* Panel Scrollable Content Body */
.live-editor-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px 100px 22px;
}

.live-editor-body::-webkit-scrollbar {
  width: 5px;
}

.live-editor-body::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 10px;
}

/* Section Card Accordion */
.live-section-accordion {
  background: rgba(22, 27, 39, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.live-section-accordion:hover {
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(26, 32, 46, 0.8);
}

.live-section-accordion.active {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(24, 30, 44, 0.95);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.live-accordion-trigger {
  width: 100%;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  color: #f1f5f9;
  cursor: pointer;
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  gap: 12px;
}

.live-accordion-trigger-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-sec-number {
  font-size: 0.7rem;
  color: #d4af37;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(212, 175, 55, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
}

.live-accordion-chevron {
  color: #94a3b8;
  transition: transform 0.25s ease;
}

.live-section-accordion.active .live-accordion-chevron {
  transform: rotate(180deg);
  color: #d4af37;
}

.live-accordion-content {
  display: none;
  padding: 6px 18px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.live-section-accordion.active .live-accordion-content {
  display: block;
}

/* Form Controls Inside Side Panel */
.live-field-group {
  margin-top: 12px;
}

.live-field-group label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #cbd5e1;
  margin-bottom: 6px;
  font-weight: 500;
}

.live-input,
.live-textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(10, 13, 19, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 9px 12px;
  color: #f8fafc;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  transition: all 0.2s ease;
}

.live-input:focus,
.live-textarea:focus {
  outline: none;
  border-color: #d4af37;
  background: rgba(15, 20, 30, 0.95);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.live-textarea {
  resize: vertical;
  min-height: 60px;
}

/* Panel Sticky Footer Action Bar */
.live-editor-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 16px 22px;
  background: rgba(14, 18, 26, 0.98);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  gap: 10px;
}

.btn-live-save {
  flex: 2;
  background: linear-gradient(135deg, #d4af37 0%, #aa8528 100%);
  color: #0b0d13;
  border: none;
  padding: 11px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-live-save:hover {
  background: linear-gradient(135deg, #e3c457 0%, #bc9431 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
}

.btn-live-admin {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 11px 12px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.82rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-live-admin:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Toast Message */
.live-editor-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000000;
  background: #11141d;
  color: #f7e7a9;
  border: 1px solid #d4af37;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.live-editor-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
