@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Light Theme Variables */
  --bg-main: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.75);
  --border-card: rgba(226, 232, 240, 0.8);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #e0e7ff;
  --success: #16a34a;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  --glow-color: rgba(79, 70, 229, 0.15);
  --input-bg: #ffffff;
  --input-border: #cbd5e1;
  --tab-inactive-bg: transparent;
  --tab-inactive-text: #64748b;
  --preview-feed-bg: #ffffff;
  --preview-border: #e2e8f0;
  --meta-color: #64748b;
  
  --orb-1: rgba(99, 102, 241, 0.15);
  --orb-2: rgba(168, 85, 247, 0.15);
  --orb-3: rgba(236, 72, 153, 0.1);
}

body.dark {
  /* Dark Theme Variables */
  --bg-main: #070a13;
  --bg-card: rgba(15, 23, 42, 0.65);
  --border-card: rgba(30, 41, 59, 0.7);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #1e1b4b;
  --success: #22c55e;
  --shadow: 0 15px 35px -12px rgba(0, 0, 0, 0.5);
  --glow-color: rgba(99, 102, 241, 0.25);
  --input-bg: #0f172a;
  --input-border: #1e293b;
  --tab-inactive-bg: transparent;
  --tab-inactive-text: #475569;
  --preview-feed-bg: #0b0f19;
  --preview-border: #1e293b;
  --meta-color: #64748b;
  
  --orb-1: rgba(99, 102, 241, 0.2);
  --orb-2: rgba(168, 85, 247, 0.2);
  --orb-3: rgba(236, 72, 153, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
}

/* Background animated glow orbs */
.bg-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.orb-1 {
  width: 500px;
  height: 500px;
  background-color: var(--orb-1);
  top: -10%;
  left: -10%;
  animation: float1 25s infinite alternate ease-in-out;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background-color: var(--orb-2);
  bottom: -20%;
  right: -10%;
  animation: float2 30s infinite alternate ease-in-out;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background-color: var(--orb-3);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float1 20s infinite alternate-reverse ease-in-out;
}

@keyframes float1 {
  0% { transform: translate(0px, 0px) scale(1); }
  50% { transform: translate(60px, -80px) scale(1.1); }
  100% { transform: translate(-30px, 40px) scale(0.9); }
}

@keyframes float2 {
  0% { transform: translate(0px, 0px) scale(1); }
  50% { transform: translate(-70px, 60px) scale(0.95); }
  100% { transform: translate(50px, -50px) scale(1.05); }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-card);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Glassmorphism Card Style */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}

.glass-input {
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  border-radius: 0.75rem;
}

.glass-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--glow-color);
}

/* Premium gradient button */
.gradient-btn {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
  background-size: 200% 200%;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.gradient-btn:hover:not(:disabled) {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px var(--primary);
}

.gradient-btn:active:not(:disabled) {
  transform: translateY(0);
}

.gradient-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Tab buttons and active states */
.custom-tab {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0.5rem;
}

.custom-tab.active {
  background-color: var(--primary);
  color: white !important;
  box-shadow: 0 4px 12px -3px var(--primary);
}

.custom-tab:not(.active):hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* Social Media Simulated Previews */
.preview-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #a78bfa, #818cf8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-family: var(--font-heading);
}

/* Simulated LinkedIn Feed */
.linkedin-preview {
  background: var(--preview-feed-bg);
  border: 1px solid var(--preview-border);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

/* Simulated Twitter Thread */
.twitter-thread {
  position: relative;
}

.twitter-tweet {
  position: relative;
  display: flex;
  gap: 0.75rem;
  padding-bottom: 1.5rem;
}

.twitter-tweet:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 45px;
  bottom: 0;
  width: 2px;
  background-color: var(--preview-border);
}

/* Simulated Facebook Post */
.facebook-preview {
  background: var(--preview-feed-bg);
  border: 1px solid var(--preview-border);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

/* Simulated Short Video Teleprompter / Clapperboard */
.video-preview {
  background: var(--preview-feed-bg);
  border: 1px solid var(--preview-border);
  border-radius: 1rem;
  padding: 1.5rem;
  font-family: var(--font-body);
}

.video-section-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 99px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.badge-hook {
  background-color: #fee2e2;
  color: #ef4444;
}

body.dark .badge-hook {
  background-color: #991b1b;
  color: #fca5a5;
}

.badge-body {
  background-color: #dbeafe;
  color: #3b82f6;
}

body.dark .badge-body {
  background-color: #1e3a8a;
  color: #93c5fd;
}

.badge-visual {
  background-color: #fef3c7;
  color: #d97706;
}

body.dark .badge-visual {
  background-color: #78350f;
  color: #fcd34d;
}

/* Toast alert notification style */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Editable output styling */
.editable-output {
  outline: none;
  min-height: 50px;
  border-radius: 0.375rem;
  padding: 0.25rem;
}

.editable-output:focus {
  background-color: var(--primary-light);
  box-shadow: 0 0 0 2px var(--primary);
}

/* Theme Toggle styles */
.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  transform: rotate(15deg) scale(1.05);
  border-color: var(--primary);
}

.icon-sun {
  display: none;
}

body.dark .icon-sun {
  display: block;
}

body.dark .icon-moon {
  display: none;
}
