/* SlideKop - Custom Premium Styling Sheet */

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Color Palette - Vibrant Dark Theme with Rich Pink/Orange accents */
  --bg-deep: #080305;
  --bg-card: rgba(18, 8, 14, 0.6);
  --bg-card-hover: rgba(26, 12, 21, 0.75);
  --border-glass: rgba(255, 255, 255, 0.05);
  --border-glass-focused: rgba(236, 72, 153, 0.4);
  
  --primary-start: #ec4899; /* Pink */
  --primary-end: #f97316;   /* Orange */
  --accent: #f43f5e;        /* Rose */
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  --shadow-glow: 0 0 25px rgba(236, 72, 153, 0.15);
  --shadow-glow-large: 0 0 50px rgba(236, 72, 153, 0.25);
  --shadow-card: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Background Blobs */
.glass-bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(125px);
  opacity: 0.16;
  mix-blend-mode: screen;
  animation: float-around 22s infinite alternate ease-in-out;
}

.blob-1 {
  width: 550px;
  height: 550px;
  background: var(--primary-start);
  top: -10%;
  left: 10%;
  animation-duration: 18s;
}

.blob-2 {
  width: 480px;
  height: 480px;
  background: var(--primary-end);
  bottom: -5%;
  right: 15%;
  animation-duration: 25s;
}

.blob-3 {
  width: 380px;
  height: 380px;
  background: #a855f7; /* Violet */
  top: 35%;
  left: 45%;
  animation-duration: 20s;
}

@keyframes float-around {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.08); }
  100% { transform: translate(40px, -30px) scale(0.92); }
}

/* App Container */
.app-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: space-between;
}

/* Header */
.app-header {
  margin-bottom: 25px;
  text-align: center;
}

.logo-area {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #fff;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-normal);
}

.animate-sway {
  animation: sway 6s infinite ease-in-out;
}

@keyframes sway {
  0%, 100% { transform: rotate(-3deg) scale(1); }
  50% { transform: rotate(3deg) scale(1.04); }
}

.logo-text h1 {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(135deg, #fce7f3 0%, #ffedd5 30%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.tagline {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 3px;
  font-weight: 400;
}

/* Privacy Banner */
.privacy-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(236, 72, 153, 0.03);
  border: 1px solid rgba(236, 72, 153, 0.15);
  border-radius: 16px;
  padding: 14px 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.privacy-icon {
  font-size: 20px;
  color: var(--primary-start);
  flex-shrink: 0;
  text-shadow: 0 0 10px rgba(236, 72, 153, 0.4);
}

.privacy-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  text-align: left;
}

.privacy-text strong {
  color: var(--text-primary);
}

/* General Glass Cards */
.card {
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

/* Split Pane Grid */
.main-card-layout {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
}

.main-card-layout.active {
  display: grid;
}

.panel-editor, .panel-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 520px;
}

.panel-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Textareas */
textarea {
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 16px;
  color: #e2e8f0;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 13px;
  line-height: 1.6;
  resize: none;
  width: 100%;
  flex-grow: 1;
  outline: none;
  transition: var(--transition-fast);
}

textarea:focus {
  border-color: var(--border-glass-focused);
  background-color: rgba(0, 0, 0, 0.35);
}

/* Editor bottom settings */
.editor-settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.editor-settings-row .form-group {
  margin-bottom: 0;
  flex-grow: 1;
  max-width: 250px;
}

.editor-metrics {
  font-size: 13px;
  color: var(--text-secondary);
}

.editor-metrics strong {
  color: var(--primary-start);
  font-family: var(--font-heading);
  font-size: 14.5px;
}

/* Select Form */
.form-select {
  background-color: #120a0e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  height: 38px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 0 10px;
  outline: none;
  cursor: pointer;
}

.form-select option {
  background-color: #120a0e;
  color: var(--text-primary);
}

/* Panel Buttons */
.panel-buttons {
  display: flex;
  gap: 12px;
}

.btn-action-text {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-fast);
}

.btn-action-text:hover {
  color: var(--primary-start);
}

.btn-action-text.text-error:hover {
  color: var(--error);
}

/* Preview Scroll Viewport */
.preview-scroll-viewport {
  width: 100%;
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 12px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-scroll-viewport::-webkit-scrollbar {
  width: 5px;
}
.preview-scroll-viewport::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  color: var(--text-secondary);
  gap: 12px;
}

.preview-placeholder i {
  font-size: 40px;
  color: var(--text-muted);
}

.preview-placeholder p {
  font-size: 13px;
  max-width: 250px;
  line-height: 1.5;
}

/* Tiny Slide Cards in preview */
.mini-slide-card {
  width: 100%;
  aspect-ratio: 16/9;
  background: #090d16;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 20px;
  overflow: hidden;
  color: #f8fafc;
  font-size: 10px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Preview slide content styling (miniaturized) */
.mini-slide-card h1, .mini-slide-card h2, .mini-slide-card h3 {
  font-family: var(--font-heading);
  color: var(--primary-start);
  margin-bottom: 8px;
  font-size: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding-bottom: 4px;
}

.mini-slide-card p, .mini-slide-card li {
  font-size: 10px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.mini-slide-card ul, .mini-slide-card ol {
  padding-left: 14px;
}

.mini-slide-number-badge {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 9px;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  padding: 1px 4px;
  border-radius: 3px;
}

/* ==========================================
   FULLSCREEN PRESENTATION VIEW OVERLAY
   ========================================== */
.presentation-overlay-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: opacity 0.3s;
}

.presentation-overlay-view.hidden {
  display: none;
  opacity: 0;
}

/* Themes declarations */
.presentation-overlay-view.theme-cyber-dark {
  background-color: #090c15;
  color: #f8fafc;
}
.presentation-overlay-view.theme-cyber-dark h1,
.presentation-overlay-view.theme-cyber-dark h2,
.presentation-overlay-view.theme-cyber-dark h3 {
  color: #06b6d4;
}

.presentation-overlay-view.theme-corporate-light {
  background-color: #f8fafc;
  color: #0f172a;
}
.presentation-overlay-view.theme-corporate-light h1,
.presentation-overlay-view.theme-corporate-light h2,
.presentation-overlay-view.theme-corporate-light h3 {
  color: #3b82f6;
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

.presentation-overlay-view.theme-sunset-glow {
  background: linear-gradient(135deg, #4c0519, #1c1917);
  color: #fef2f2;
}
.presentation-overlay-view.theme-sunset-glow h1,
.presentation-overlay-view.theme-sunset-glow h2,
.presentation-overlay-view.theme-sunset-glow h3 {
  color: #f43f5e;
}

.presentation-overlay-view.theme-aurora-green {
  background: linear-gradient(135deg, #022c22, #0a0f0d);
  color: #f0fdf4;
}
.presentation-overlay-view.theme-aurora-green h1,
.presentation-overlay-view.theme-aurora-green h2,
.presentation-overlay-view.theme-aurora-green h3 {
  color: #10b981;
}

/* Slide viewport inside overlay */
.fullscreen-slide-viewport {
  width: 90%;
  max-width: 960px;
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
  box-sizing: border-box;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.25s, transform 0.25s;
}

.fullscreen-slide-viewport.active-slide {
  opacity: 1;
  transform: scale(1);
}

/* Slide contents sizing */
.fullscreen-slide-viewport h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  border-bottom: 2px solid rgba(255,255,255,0.05);
  padding-bottom: 12px;
}

.fullscreen-slide-viewport h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.fullscreen-slide-viewport h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.fullscreen-slide-viewport p, .fullscreen-slide-viewport li {
  font-size: 1.35rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.fullscreen-slide-viewport ul, .fullscreen-slide-viewport ol {
  padding-left: 36px;
}

.fullscreen-slide-viewport blockquote {
  border-left: 4px solid var(--primary-start);
  padding-left: 18px;
  font-style: italic;
  color: var(--text-secondary);
}

.fullscreen-slide-viewport pre {
  background: rgba(0,0,0,0.35);
  border-radius: 8px;
  padding: 14px;
  font-family: monospace;
  font-size: 1rem;
  overflow-x: auto;
}

/* Controls overlay */
.presentation-bottom-bar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 30px;
  padding: 6px 14px;
  gap: 12px;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.btn-control-icon {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.btn-control-icon:hover {
  color: white;
  background: rgba(255,255,255,0.05);
}

.slide-position-text {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  min-width: 90px;
  text-align: center;
}

.vertical-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.1);
}

/* Presentation Progress bar along bottom */
.presentation-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 4px;
  background: rgba(255,255,255,0.03);
}

.presentation-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-start), var(--primary-end));
  transition: width 0.2s ease-out;
}


/* General Buttons */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
  color: white;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.2);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #f472b6, #ea580c);
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.3);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-small {
  height: 30px;
  font-size: 11.5px;
  padding: 4px 10px;
}

/* Footer info */
.app-footer {
  text-align: center;
  margin-top: 25px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.app-footer p {
  color: var(--text-muted);
  font-size: 11.5px;
}

/* Responsive Explorer Layout */
@media (max-width: 800px) {
  .main-card-layout {
    grid-template-columns: 1fr;
  }
  .app-container {
    padding: 20px 10px;
  }
  .panel-editor, .panel-preview {
    height: 420px;
  }
  .fullscreen-slide-viewport {
    padding: 10px;
    width: 95%;
  }
  .fullscreen-slide-viewport h1 { font-size: 1.8rem; }
  .fullscreen-slide-viewport h2 { font-size: 1.4rem; }
  .fullscreen-slide-viewport p, .fullscreen-slide-viewport li { font-size: 1rem; }
}
