/* README Generator — style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0F0F14;
  --bg-card: rgba(18, 18, 28, 0.9);
  --surface: rgba(35, 35, 50, 0.7);
  --border: rgba(100, 100, 140, 0.12);
  --text: #E4E4EC;
  --text-dim: #8888A0;
  --text-muted: #555570;
  --primary: #7C3AED;
  --primary-dim: rgba(124, 58, 237, 0.12);
  --accent: #10B981;
  --radius: 10px;
  --radius-sm: 6px;
  --glass: rgba(15, 15, 22, 0.8);
  --transition: 0.2s ease;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-left { display: flex; align-items: center; gap: 10px; }
.logo {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--primary), #A78BFA);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.header h1 {
  font-size: 15px; font-weight: 600;
  background: linear-gradient(135deg, var(--primary), #C4B5FD);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.header-right { display: flex; gap: 8px; }

.btn {
  padding: 7px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 500; cursor: pointer;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { border-color: var(--primary); }
.btn-primary { background: linear-gradient(135deg, var(--primary), #6D28D9); border-color: transparent; color: #fff; }
.btn-primary:hover { filter: brightness(1.15); }
.btn-sm { padding: 5px 10px; font-size: 11px; }

.app-layout { display: flex; height: calc(100vh - 59px); }

/* Form */
.form-panel {
  width: 420px; min-width: 320px;
  overflow-y: auto; padding: 16px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
}

.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.section-card h3 {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-dim); margin-bottom: 10px;
}

.input {
  width: 100%; padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg); color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 13px;
  outline: none; transition: var(--transition);
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim); }
.input::placeholder { color: var(--text-muted); }
select.input { cursor: pointer; }

.textarea { min-height: 70px; resize: vertical; font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.5; }
.textarea-sm { min-height: 50px; resize: vertical; font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.5; }

.badge-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.badge-option {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px; border-radius: var(--radius-sm);
  font-size: 12px; color: var(--text-dim);
  cursor: pointer; transition: var(--transition);
}
.badge-option:hover { background: var(--surface); color: var(--text); }
.badge-option input { accent-color: var(--primary); }

/* Preview */
.preview-panel { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.preview-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.preview-header h3 {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-dim);
}
.preview-content {
  flex: 1; overflow-y: auto; padding: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; line-height: 1.7;
  white-space: pre-wrap; word-break: break-word;
  color: var(--text);
}

.toast {
  position: fixed; bottom: 20px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 20px; font-size: 13px; color: var(--text);
  opacity: 0; transition: all 0.3s ease; z-index: 200; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 3px; }

@media (max-width: 768px) {
  .app-layout { flex-direction: column; }
  .form-panel { width: 100%; min-width: unset; max-height: 50vh; border-right: none; border-bottom: 1px solid var(--border); }
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F8F8FC;
    --bg-card: rgba(255,255,255,0.95);
    --surface: rgba(230,230,240,0.7);
    --border: rgba(100,100,140,0.15);
    --text: #1A1A2E;
    --text-dim: #555570;
    --text-muted: #8888A0;
    --glass: rgba(248,248,252,0.9);
  }
}
