/* Dream Job AI — Shared Styles */

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

:root {
  --bg: #0a0a0f;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(79, 143, 255, 0.3);
  --text: #e4e4e7;
  --text-muted: #71717a;
  --text-heading: #fafafa;
  --accent: #4f8fff;
  --accent-glow: rgba(79, 143, 255, 0.15);
  --purple: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.15);
  --success: #22c55e;
  --warning: #f59e0b;
  --radius: 12px;
  --radius-lg: 16px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Background gradient */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-glow), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, var(--purple-glow), transparent);
  pointer-events: none;
  z-index: 0;
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  padding: 3rem 0 1rem;
  text-align: center;
}

.site-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.site-header h1 .accent {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-header .subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

/* Breadcrumb nav */
.breadcrumb {
  padding: 1.5rem 0 0;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--purple);
}

.breadcrumb .sep {
  color: var(--text-muted);
  margin: 0 0.5rem;
}

.breadcrumb .current {
  color: var(--text-muted);
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  padding: 2rem 0;
}

/* Glassmorphism card */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(79, 143, 255, 0.08);
}

.card .card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Page content panel */
.panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 1.5rem 0;
}

.panel h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.panel h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}

.panel h3:first-child {
  margin-top: 0;
}

.panel p {
  margin-bottom: 0.75rem;
  color: var(--text);
}

/* Bio-specific */
.bio-header {
  text-align: center;
  padding: 2.5rem 0 1rem;
}

.bio-header .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 1rem;
}

.bio-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-heading);
}

.bio-header .title-line {
  color: var(--accent);
  font-size: 1.05rem;
  margin-top: 0.35rem;
}

.bio-header .summary {
  max-width: 700px;
  margin: 1rem auto 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Skills tags */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.skill-tag {
  background: rgba(79, 143, 255, 0.1);
  border: 1px solid rgba(79, 143, 255, 0.2);
  color: var(--accent);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.skill-tag.purple {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
  color: var(--purple);
}

/* Table */
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead th {
  text-align: left;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.preparing {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.status-badge.applied {
  background: rgba(79, 143, 255, 0.15);
  color: var(--accent);
}

.status-badge.interview {
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple);
}

.status-badge.offer {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

/* Placeholder page */
.placeholder {
  text-align: center;
  padding: 4rem 2rem;
}

.placeholder .icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.placeholder h2 {
  font-size: 1.5rem;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.placeholder p {
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 0 3rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Links */
a.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  margin-top: 1.5rem;
  transition: color 0.2s;
}

a.back-link:hover {
  color: var(--purple);
}

/* Section divider */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* Responsive */
@media (max-width: 640px) {
  .site-header h1 {
    font-size: 1.75rem;
  }

  .site-header .subtitle {
    font-size: 0.9rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 1.25rem;
  }

  .bio-header h1 {
    font-size: 1.5rem;
  }

  .bio-header .title-line {
    font-size: 0.9rem;
  }

  thead th,
  tbody td {
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
  }
}
