/* style.css */
:root {
  --color-bg: #0b0f19;
  --color-surface: rgba(19, 27, 47, 0.65);
  --color-surface-hover: rgba(26, 36, 61, 0.85);
  --color-text: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-light: rgba(255, 255, 255, 0.15);
  
  --color-integrate: #3B82F6;
  --color-verify: #8B5CF6;
  --color-locate: #0D9488;
  --color-enrich: #EA580C;
  --color-engage: #EC4899;
  
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .outfit {
  font-family: 'Outfit', sans-serif;
}

/* Background Effects */
.bg-elements {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--color-bg);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: floatOrb 25s infinite alternate ease-in-out;
}

.orb-1 { width: 500px; height: 500px; background: var(--color-integrate); top: -150px; left: -100px; }
.orb-2 { width: 600px; height: 600px; background: var(--color-verify); top: 10%; right: -250px; animation-delay: -5s; }
.orb-3 { width: 400px; height: 400px; background: var(--color-engage); bottom: -100px; left: 15%; animation-delay: -10s; opacity: 0.25; }
.orb-4 { width: 350px; height: 350px; background: var(--color-locate); bottom: 15%; right: 5%; animation-delay: -15s; }

.grid-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 40px) scale(1.05); }
  100% { transform: translate(-30px, -20px) scale(0.95); }
}

/* Glassmorphism */
.glass-panel {
  background: var(--color-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-glass);
}

.glass-btn {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border-light);
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--color-text);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-integrate);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--color-integrate);
}

/* Buttons */
button {
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  color: white;
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border-light);
}

.btn-primary:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid transparent;
}
.btn-secondary:hover {
  color: white;
  background: rgba(255,255,255,0.05);
  border-color: var(--color-border);
}

.icon-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-text-muted);
  padding: 0.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover {
  color: white;
  background: rgba(255,255,255,0.1);
  border-color: var(--color-border-light);
  transform: scale(1.05);
}

.glow-magenta {   
  background: rgba(236, 72, 153, 0.1);
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.3);  
  border-color: rgba(236, 72, 153, 0.5); 
}
.glow-magenta:hover { 
  background: rgba(236, 72, 153, 0.2);
  box-shadow: 0 0 25px rgba(236, 72, 153, 0.5); 
}

/* Layout */
.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  min-height: 50vh;
  padding: 3rem 0;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.gradient-text {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 90%;
  line-height: 1.7;
}

.search-bar-container {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.25rem;
  gap: 1rem;
  width: 100%;
  max-width: 550px;
  transition: var(--transition);
  position: relative;
}

.search-bar-container:focus-within {
  border-color: var(--color-integrate);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
}

.search-bar-container input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.1rem;
  outline: none;
  font-family: inherit;
}
.search-icon { color: var(--color-text-muted); transition: color 0.3s; }
.search-bar-container:focus-within .search-icon { color: var(--color-integrate); }

.kbd-shortcut {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--color-border);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.floating-svg {
  width: 100%;
  max-width: 550px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}

.float-1 { animation: float 6s ease-in-out infinite; }
.float-2 { animation: float 8s ease-in-out infinite 1s; }
.float-3 { animation: float 5s ease-in-out infinite 2s; }
.float-4 { animation: float 7s ease-in-out infinite 0.5s; }
.float-5 { animation: float 6.5s ease-in-out infinite 1.5s; }
.draw-line { animation: dash 10s linear infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes dash {
  from { stroke-dashoffset: 40; }
  to { stroke-dashoffset: 0; }
}

/* Content Layout */
.content-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

/* Sidebar */
.sidebar {
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.sidebar-header h3 {
  font-size: 1.1rem;
  color: white;
  letter-spacing: -0.5px;
  font-family: 'Outfit', sans-serif;
}

.category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  color: var(--color-text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.category-list li:hover {
  background: rgba(255,255,255,0.04);
  color: white;
}

.category-list li.active {
  background: rgba(255,255,255,0.08);
  border-color: var(--color-border);
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cat-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.storage-info {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.storage-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.pb-bg {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}
.pb-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-integrate), var(--color-verify));
  width: 0%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px var(--color-integrate);
}

/* Board */
.board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.board-header h2 {
  font-size: 2rem;
  letter-spacing: -1px;
}

.board-actions {
  display: flex;
  gap: 1rem;
}

.glass-select {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  backdrop-filter: blur(8px);
}
.glass-select:focus { border-color: var(--color-integrate); }
.glass-select option { background: var(--color-surface-hover); }

.prompts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

/* Cards */
.prompt-card {
  background: var(--color-surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.prompt-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: var(--card-color, var(--color-border));
  transition: var(--transition);
  opacity: 0.8;
}

.prompt-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at top right, var(--card-color), transparent 60%);
  opacity: 0.05;
  pointer-events: none;
  transition: var(--transition);
}

.prompt-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
  border-color: var(--card-color, var(--color-border-light));
}

.prompt-card:hover::after {
  opacity: 0.1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
  line-height: 1.3;
}

.c-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.c-badge.integrate { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.3); }
.c-badge.verify { background: rgba(139, 92, 246, 0.15); color: #c4b5fd; border: 1px solid rgba(139, 92, 246, 0.3); }
.c-badge.locate { background: rgba(13, 148, 136, 0.15); color: #5eead4; border: 1px solid rgba(13, 148, 136, 0.3); }
.c-badge.enrich { background: rgba(234, 88, 12, 0.15); color: #fdba74; border: 1px solid rgba(234, 88, 12, 0.3); }
.c-badge.engage { background: rgba(236, 72, 153, 0.15); color: #f9a8d4; border: 1px solid rgba(236, 72, 153, 0.3); }

.card-content {
  color: var(--color-text-muted);
  font-size: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
  line-height: 1.6;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.card-date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
}
.prompt-card:hover .card-actions { 
  opacity: 1; 
  transform: translateX(0);
}

.action-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.action-btn:hover { 
  color: white; 
  background: var(--color-integrate); 
  border-color: var(--color-integrate);
}
.action-btn[data-action="delete"]:hover {
  background: #ef4444; border-color: #ef4444;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;
}
.empty-icon {
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.1));
}
.empty-state h3 { font-size: 1.75rem; margin-bottom: 0.5rem; color: white; }
.empty-state p { color: var(--color-text-muted); max-width: 400px; line-height: 1.6; }
.hidden { display: none !important; }

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  width: 100%;
  max-width: 650px;
  padding: 2.5rem;
  transform: translateY(0) scale(1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.hidden .modal-content {
  transform: translateY(30px) scale(0.95);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.modal-header h2 { font-size: 1.8rem; }

.form-group {
  margin-bottom: 1.75rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.form-group input[type="text"], .form-group textarea {
  width: 100%;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--color-border);
  color: white;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
.form-group input[type="text"]:focus, .form-group textarea:focus {
  border-color: var(--color-integrate);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.category-selector {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.cat-radio input { display: none; }
.cat-radio .c-badge {
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}
.cat-radio:hover .c-badge { opacity: 0.8; }
.cat-radio input:checked + .c-badge {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

/* Toast */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.toast {
  background: var(--color-surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border-light);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
  animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.toast.fade-out { animation: slideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes slideIn {
  from { transform: translateX(120%) scale(0.9); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}
@keyframes slideOut {
  from { transform: translateX(0) scale(1); opacity: 1; }
  to { transform: translateX(120%) scale(0.9); opacity: 0; }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 4rem; }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .search-bar-container { justify-content: center; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; display: flex; flex-direction: column; gap: 1rem; }
  .category-list { flex-direction: row; flex-wrap: wrap; }
  .storage-info { margin-top: 1rem; }
  .navbar { padding: 1rem; }
  .nav-links { display: none; }
}
