/* Portal - Creative Network Styles */

/* Layout */
.p-app { display: flex; min-height: 100vh; background: var(--bg-primary); color: var(--text-primary); }
.p-sidebar {
  width: 240px; background: var(--bg-secondary); border-right: 1px solid var(--border);
  padding: 24px 0; display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; z-index: 50;
}
.p-main { flex: 1; margin-left: 240px; padding: 32px; min-height: 100vh; }

/* Sidebar */
.p-sidebar-logo {
  font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--text-primary);
  padding: 0 20px 24px; border-bottom: 1px solid var(--border);
}
.p-sidebar-logo span { color: var(--purple); }
.p-sidebar-nav { padding: 16px 0; flex: 1; }
.p-sidebar-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 20px;
  color: var(--text-secondary); font-size: 14px; text-decoration: none;
  transition: all 0.2s; border-left: 3px solid transparent;
}
.p-sidebar-nav a:hover { color: var(--text-primary); background: var(--bg-hover); }
.p-sidebar-nav a.active { color: var(--cyan); border-left-color: var(--cyan); background: rgba(0,212,255,0.05); }
.p-sidebar-nav a svg { width: 18px; height: 18px; opacity: 0.6; }
.p-sidebar-user {
  padding: 16px 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.p-sidebar-avatar {
  width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
}
.p-sidebar-name { font-size: 13px; color: var(--text-primary); }
.p-sidebar-vibe { font-size: 10px; color: var(--text-muted); font-family: var(--font-mono); }

/* Login */
.p-login {
  display: flex; align-items: center; justify-content: center; min-height: 100vh;
  background: var(--bg-primary); padding: 24px;
}
.p-login-card {
  width: 100%; max-width: 380px; background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 32px; text-align: center;
}
.p-login-logo {
  font-family: var(--font-mono); font-size: 20px; font-weight: 700; margin-bottom: 8px;
}
.p-login-logo span { color: var(--purple); }
.p-login-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 32px; line-height: 1.6; }
.p-login-input {
  width: 100%; padding: 12px 16px; background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-primary); font-size: 14px;
  font-family: inherit; outline: none; margin-bottom: 12px; box-sizing: border-box;
}
.p-login-input:focus { border-color: var(--purple); }
.p-login-input::placeholder { color: var(--text-muted); }
.p-login-btn {
  width: 100%; padding: 12px; background: var(--gradient-brand); border: none;
  border-radius: var(--radius-md); color: #fff; font-family: var(--font-mono);
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px; cursor: pointer;
  text-transform: uppercase; transition: opacity 0.2s; margin-top: 8px;
}
.p-login-btn:hover { opacity: 0.9; }
.p-login-error { color: var(--red); font-size: 12px; margin-top: 12px; display: none; }

/* Dashboard */
.p-welcome {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; margin-bottom: 24px;
}
.p-welcome h2 { font-size: 22px; margin: 0 0 6px; }
.p-welcome h2 span { color: var(--cyan); }
.p-welcome .p-vibe { font-family: var(--font-mono); font-size: 11px; color: var(--purple); margin-bottom: 12px; }
.p-welcome p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin: 0; }

.p-onboarding {
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(0,212,255,0.05));
  border: 1px solid rgba(124,58,237,0.2); border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 24px; display: none;
}
.p-onboarding p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin: 0; }
.p-onboarding .p-bio { font-style: italic; color: var(--cyan); margin-top: 12px; }
.p-onboarding-dismiss {
  background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: 11px; font-family: var(--font-mono);
  padding: 6px 14px; cursor: pointer; margin-top: 16px;
}

/* Section headers */
.p-section-title {
  font-size: 16px; font-weight: 600; margin-bottom: 16px; display: flex;
  align-items: center; gap: 8px;
}
.p-section-title span { color: var(--text-muted); font-weight: 400; font-size: 13px; }

/* Project cards */
.p-projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 32px; }
.p-project-card {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px; cursor: pointer; transition: all 0.2s;
}
.p-project-card:hover { border-color: var(--purple); transform: translateY(-2px); }
.p-project-card h3 { font-size: 15px; margin: 0 0 6px; }
.p-project-card .p-card-vibe { font-family: var(--font-mono); font-size: 11px; color: var(--purple); margin-bottom: 8px; }
.p-project-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0 0 12px; }
.p-project-card .p-card-meta {
  display: flex; gap: 12px; font-family: var(--font-mono); font-size: 10px; color: var(--text-muted);
}
.p-status-badge {
  font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 1px;
  padding: 3px 8px; border-radius: 4px; display: inline-block;
}
.p-status-badge.idea { background: rgba(124,58,237,0.08); color: var(--purple); }
.p-status-badge.active { background: rgba(0,255,157,0.08); color: var(--green); }
.p-status-badge.paused { background: rgba(245,158,11,0.08); color: var(--amber); }
.p-status-badge.shipped { background: rgba(0,212,255,0.08); color: var(--cyan); }

/* Activity timeline */
.p-timeline { position: relative; padding-left: 20px; }
.p-timeline::before {
  content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.p-timeline-entry {
  position: relative; margin-bottom: 16px; padding: 12px 16px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-md); font-size: 13px;
}
.p-timeline-entry::before {
  content: ''; position: absolute; left: -19px; top: 16px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bg-primary); border: 2px solid var(--purple);
}
.p-timeline-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.p-timeline-actor { font-weight: 600; color: var(--cyan); font-size: 12px; }
.p-timeline-time { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); margin-left: auto; }
.p-timeline-detail { color: var(--text-secondary); line-height: 1.5; }

/* Kanban */
.p-kanban { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 16px; min-height: 400px; }
.p-kanban-col {
  min-width: 240px; flex: 1; background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 12px; display: flex; flex-direction: column;
}
.p-kanban-col-header {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted); margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between;
}
.p-kanban-col-count {
  background: var(--bg-tertiary); border-radius: 10px; padding: 2px 8px;
  font-size: 10px; color: var(--text-muted);
}
.p-kanban-cards { flex: 1; min-height: 60px; }
.p-kanban-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px; margin-bottom: 8px; cursor: grab; transition: all 0.2s;
}
.p-kanban-card:hover { border-color: var(--purple); }
.p-kanban-card.dragging { opacity: 0.5; transform: rotate(2deg); }
.p-kanban-card h4 { font-size: 13px; margin: 0 0 6px; color: var(--text-primary); }
.p-kanban-card .p-card-assignee {
  font-size: 11px; color: var(--cyan); font-family: var(--font-mono);
}
.p-kanban-card .p-card-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.p-kanban-card .p-card-tag {
  font-family: var(--font-mono); font-size: 9px; padding: 2px 6px;
  border-radius: 3px; background: var(--bg-tertiary); color: var(--text-muted);
}
.p-kanban-card .p-card-due {
  font-family: var(--font-mono); font-size: 10px; color: var(--amber); margin-top: 6px;
}
.p-kanban-col.drag-over { background: rgba(124,58,237,0.05); border-color: var(--purple); }

/* Admin */
.p-admin-table {
  width: 100%; border-collapse: collapse; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden;
}
.p-admin-table th {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-muted); padding: 12px 16px; text-align: left;
  background: var(--bg-tertiary); border-bottom: 1px solid var(--border);
}
.p-admin-table td {
  padding: 12px 16px; font-size: 13px; color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.p-admin-table tr:hover td { background: var(--bg-hover); }

/* Forms */
.p-form-group { margin-bottom: 16px; }
.p-form-label {
  display: block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 6px;
}
.p-form-input {
  width: 100%; padding: 10px 14px; background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary); font-size: 14px;
  font-family: inherit; outline: none; box-sizing: border-box;
}
.p-form-input:focus { border-color: var(--purple); }
.p-form-textarea { min-height: 80px; resize: vertical; }
.p-form-btn {
  padding: 10px 24px; background: var(--purple); border: none; border-radius: var(--radius-sm);
  color: #fff; font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  cursor: pointer; letter-spacing: 0.5px; transition: opacity 0.2s;
}
.p-form-btn:hover { opacity: 0.85; }
.p-form-btn.secondary { background: var(--bg-tertiary); color: var(--text-secondary); }

/* Modal */
.p-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6);
  z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px;
}
.p-modal-overlay.open { display: flex; }
.p-modal {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
}
.p-modal h3 { font-size: 18px; margin: 0 0 20px; }
.p-modal-close {
  float: right; background: none; border: none; color: var(--text-muted);
  font-size: 20px; cursor: pointer;
}

/* Skill tags */
.p-skill-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.p-skill-tag {
  font-family: var(--font-mono); font-size: 11px; padding: 4px 10px;
  border-radius: var(--radius-sm); background: rgba(124,58,237,0.08);
  color: var(--purple); border: 1px solid rgba(124,58,237,0.15);
}
.p-skill-tag.expert { background: rgba(0,255,157,0.08); color: var(--green); border-color: rgba(0,255,157,0.15); }

/* Responsive */
@media (max-width: 768px) {
  .p-sidebar { display: none; }
  .p-main { margin-left: 0; padding: 16px; }
  .p-kanban { flex-direction: column; }
  .p-kanban-col { min-width: unset; }
  .p-projects-grid { grid-template-columns: 1fr; }
  .p-pc-split { grid-template-columns: 1fr; }
}
