/* Define Modern CSS Theme variables */
:root {
  --bg-dark: #090b0f;
  --bg-card: rgba(17, 22, 32, 0.75);
  --bg-terminal: #07090d;
  --border-glow: rgba(0, 245, 160, 0.15);
  --border-card: rgba(255, 255, 255, 0.07);
  --neon-green: #00f5a0;
  --neon-blue: #00d2ff;
  --neon-pink: #ff007f;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --success: #22c55e;
  --error: #ef4444;
}

/* Reset and body rules */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 60px;
}

/* Background glowing spheres */
.glow-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: var(--neon-green);
  top: -100px;
  right: -100px;
  animation: float-glow 8s infinite alternate;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: var(--neon-blue);
  bottom: -150px;
  left: -200px;
  animation: float-glow 12s infinite alternate-reverse;
}

@keyframes float-glow {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(50px) scale(1.1); }
}

/* Header styles */
header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.prompt-sym {
  color: var(--neon-green);
  font-family: 'Fira Code', monospace;
  text-shadow: 0 0 10px rgba(0, 245, 160, 0.4);
}

.logo-accent {
  background: linear-gradient(135deg, var(--neon-green), var(--neon-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 14px;
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
  padding: 6px 12px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(5px);
}

/* Main layouts */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Card Design (Glassmorphism) */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 10px 35px rgba(0, 245, 160, 0.05);
}

.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-card);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-body {
  padding: 24px;
}

/* Form elements */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 14px;
  color: var(--text-secondary);
}

input[type="password"],
input[type="text"] {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-card);
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
}

input:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 10px rgba(0, 245, 160, 0.15);
}

/* URL Input layout */
.url-input-container {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 4px;
  margin-top: 15px;
}

.url-input-container:focus-within {
  border-color: var(--neon-green);
  box-shadow: 0 0 10px rgba(0, 245, 160, 0.15);
}

.http-prefix {
  font-family: 'Fira Code', monospace;
  padding: 0 12px;
  color: var(--text-muted);
  user-select: none;
}

.url-input-container input {
  background: transparent;
  border: none;
  flex-grow: 1;
  padding: 10px;
  box-shadow: none !important;
}

/* Buttons */
.btn {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-green), var(--neon-blue));
  color: #030712;
  box-shadow: 0 4px 15px rgba(0, 245, 160, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 245, 160, 0.35);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-secondary);
}

.btn-accent {
  background: linear-gradient(135deg, var(--neon-pink), #a855f7);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 0, 127, 0.25);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 127, 0.35);
}

/* Terminal logs console styling */
.terminal {
  background: var(--bg-terminal);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  margin-top: 25px;
  overflow: hidden;
  font-family: 'Fira Code', monospace;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.terminal-header {
  background: rgba(255,255,255,0.03);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: var(--error); }
.dot.yellow { background: #eab308; }
.dot.green { background: var(--success); }

.terminal-title {
  color: var(--text-muted);
  font-size: 11px;
  margin-left: 10px;
}

.terminal-body {
  padding: 18px;
  height: 180px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.6;
}

.log-line {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.log-prefix {
  color: var(--neon-green);
  user-select: none;
}

.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }

/* Suggestions Table styling */
.site-profile-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-card);
  padding: 18px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

th, td {
  padding: 16px;
  border-bottom: 1px solid var(--border-card);
  vertical-align: middle;
}

th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ideas-table tbody tr:hover,
.pbn-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.01);
}

.traffic-badge {
  background: rgba(0, 245, 160, 0.1);
  color: var(--neon-green);
  border: 1px solid rgba(0, 245, 160, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-family: 'Fira Code', monospace;
}

.intent-badge {
  background: rgba(0, 210, 255, 0.1);
  color: var(--neon-blue);
  border: 1px solid rgba(0, 210, 255, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
}

.keyword-tag {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 4px;
  display: inline-block;
  margin-bottom: 4px;
  font-size: 11px;
}

/* Modals styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-box {
  background: #0f131a;
  border: 1px solid var(--border-card);
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.close-modal {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-modal:hover {
  color: var(--neon-pink);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-body .terminal {
  margin-top: 0;
  height: 350px;
}

/* Markdown preview container */
.article-content-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.markdown-preview {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  max-height: 50vh;
  overflow-y: auto;
}

.markdown-preview h1, 
.markdown-preview h2, 
.markdown-preview h3 {
  margin-top: 25px;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.markdown-preview p {
  margin-bottom: 15px;
}

.markdown-preview ul, 
.markdown-preview ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

.markdown-preview code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Fira Code', monospace;
  font-size: 13px;
}

/* Success Publish modal details */
.success-box {
  max-width: 600px;
}

.success-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pbn-link-card {
  background: rgba(0, 245, 160, 0.03);
  border: 1px dashed var(--neon-green);
  border-radius: 10px;
  padding: 18px;
}

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

.link-url-box {
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 12px;
  border-radius: 6px;
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
}

.link-url-box code {
  font-family: 'Fira Code', monospace;
  color: var(--neon-blue);
  font-size: 13px;
  word-break: break-all;
}

.verification-controls {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-card);
  padding: 20px;
  border-radius: 12px;
}

.verification-controls h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.verification-controls p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 15px;
}

.btn-group {
  display: flex;
  gap: 10px;
}

.btn-group .btn {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  padding: 10px;
}

.verification-note {
  margin-top: 15px !important;
  font-size: 11px !important;
  color: var(--text-muted) !important;
}

/* Helper Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Responsive adjustments */
@media(max-width: 768px) {
  header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  .btn-group {
    flex-direction: column;
  }
  .url-input-container {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 10px;
  }
  .http-prefix {
    display: none;
  }
  .btn {
    width: 100%;
  }
}

/* Custom Styled Checkbox */
.custom-checkbox {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--neon-green);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.4);
  vertical-align: middle;
  margin-right: 10px;
  position: relative;
  top: -1px;
}
.custom-checkbox.checked::after {
  content: "✓";
  position: absolute;
  top: -4px;
  left: 1px;
  color: var(--neon-green);
  font-size: 11px;
  font-weight: bold;
}

/* Blockquotes and HR styling */
.markdown-preview blockquote {
  border-left: 4px solid var(--neon-green);
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.02);
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
}

.markdown-preview hr {
  border: none;
  height: 1px;
  background: var(--border-card);
  margin: 30px 0;
}


