/* assets/css/style.css */
:root {
  --bg-dark: #0f172a;
  --panel-bg: #1e293b;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: #334155;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  margin: 0;
  line-height: 1.6;
}

/* --- Layout --- */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 2rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--panel-bg);
}

header nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.5rem;
  transition: color 0.2s;
}

header nav a:hover {
  color: var(--primary);
}

/* --- Components --- */
.panel {
  background: var(--panel-bg);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.hero {
  text-align: center;
  padding: 5rem 1rem;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #818cf8, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Forms --- */
input, textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: white;
  border-radius: 6px;
  box-sizing: border-box;
  font-family: inherit;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Buttons --- */
.btn {
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.btn.primary {
  background: var(--primary);
  color: white;
}

.btn.primary:hover {
  background: var(--primary-hover);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn.ghost:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

.row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* --- Portfolio Specifics --- */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.card {
  background: var(--bg-dark);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.output {
  margin-top: 20px;
  background: var(--bg-dark);
  padding: 20px;
  border-radius: 8px;
  white-space: pre-wrap; /* Preserves AI formatting */
  border-left: 4px solid var(--primary);
}

@media (max-width: 768px) {
  .wrap { grid-template-columns: 1fr; }
}