/* ===== PROFILE PAGE ===== */

/* Header */
.pf-header {
  padding: 100px 0 0;
  background: var(--bg);
  border-bottom: 1.5px solid var(--border);
}

.pf-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 24px;
}

.pf-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #ff7b6b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 2rem;
  color: #fff;
  flex-shrink: 0;
}

.pf-info {
  flex: 1;
}

.pf-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.pf-role {
  font-family: 'DM Sans', sans-serif;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.pf-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pf-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--muted);
}

.pf-meta-item svg {
  opacity: 0.6;
}

.pf-header-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Tabs */
.pf-tabs {
  display: flex;
  gap: 0;
  margin-top: 0;
}

.pf-tab {
  padding: 14px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  white-space: nowrap;
}

.pf-tab:hover {
  color: var(--text);
}

.pf-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Layout */
.pf-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  padding: 36px 0 80px;
}

/* Tab content */
.pf-tab-content {
  display: none;
}

.pf-tab-content.active {
  display: block;
}

/* ===== RESUME TAB ===== */

.pf-section {
  margin-bottom: 32px;
}

.pf-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.pf-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.pf-edit-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.pf-edit-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pf-about-text {
  font-family: 'DM Sans', sans-serif;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Experience */
.pf-exp-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.pf-exp-item:first-child {
  border-top: none;
  padding-top: 0;
}

.pf-exp-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f0f0f2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.pf-exp-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pf-exp-info {
  flex: 1;
}

.pf-exp-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.pf-exp-company {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 500;
}

.pf-exp-period {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

.pf-exp-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: #555;
  line-height: 1.7;
  margin-top: 8px;
}

/* Education */
.pf-edu-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.pf-edu-item:first-child {
  border-top: none;
  padding-top: 0;
}

.pf-edu-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(56,132,244,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #3884f4;
}

.pf-edu-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.pf-edu-place {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2px;
}

.pf-edu-year {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Skills / Certs */
.pf-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pf-skill-tag {
  padding: 6px 14px;
  border-radius: 100px;
  background: #f0f0f2;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
}

.pf-cert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.pf-cert-item:first-child {
  border-top: none;
  padding-top: 0;
}

.pf-cert-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(232,68,58,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.pf-cert-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.pf-cert-org {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===== APPLICATIONS TAB ===== */

.pf-app-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
}

.pf-app-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.pf-app-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f0f2;
}

.pf-app-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pf-app-info {
  flex: 1;
}

.pf-app-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.pf-app-company {
  font-size: 0.82rem;
  color: var(--muted);
}

.pf-app-status {
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.pf-app-status.viewed { background: rgba(56,132,244,0.1); color: #3884f4; }
.pf-app-status.pending { background: rgba(243,156,18,0.1); color: #d4880f; }
.pf-app-status.interview { background: rgba(46,160,67,0.1); color: #2ea043; }
.pf-app-status.rejected { background: rgba(200,200,200,0.2); color: #999; }

.pf-app-date {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ===== FAVORITES TAB ===== */

.pf-fav-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.pf-fav-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.pf-fav-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f0f2;
}

.pf-fav-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pf-fav-info {
  flex: 1;
}

.pf-fav-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.pf-fav-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.pf-fav-salary {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.pf-fav-remove {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.pf-fav-remove:hover {
  color: var(--accent);
}

/* ===== SETTINGS TAB ===== */

.pf-settings-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
}

.pf-settings-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}

.pf-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.pf-setting-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.pf-setting-label {
  font-size: 0.9rem;
  color: var(--text);
}

.pf-setting-label span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Toggle */
.pf-toggle {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #ddd;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.pf-toggle.on {
  background: var(--accent);
}

.pf-toggle::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.pf-toggle.on::after {
  transform: translateX(20px);
}

/* ===== SIDEBAR ===== */

.pf-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.pf-sidebar-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

.pf-sidebar-card h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pf-completeness {
  margin-bottom: 16px;
}

.pf-completeness-bar {
  height: 8px;
  border-radius: 4px;
  background: #f0f0f2;
  overflow: hidden;
  margin-bottom: 8px;
}

.pf-completeness-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--accent);
  transition: width 0.5s;
}

.pf-completeness-label {
  font-size: 0.82rem;
  color: var(--muted);
}

.pf-completeness-label strong {
  color: var(--accent);
}

.pf-sidebar-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.pf-sidebar-tip:first-of-type {
  border-top: none;
  padding-top: 0;
}

.pf-sidebar-tip svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

.pf-sidebar-tip p {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
}

/* Quick stats */
.pf-quick-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pf-quick-stat {
  text-align: center;
  padding: 14px 8px;
  border-radius: 12px;
  background: #f7f7f8;
}

.pf-quick-stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}

.pf-quick-stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Empty state */
.pf-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
}

.pf-empty svg {
  margin-bottom: 16px;
  opacity: 0.3;
}

.pf-empty p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  .pf-layout { grid-template-columns: 1fr; }
  .pf-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (max-width: 768px) {
  .pf-header-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .pf-avatar { width: 72px; height: 72px; font-size: 1.5rem; }
  .pf-name { font-size: 1.3rem; }
  .pf-header-actions { width: 100%; }
  .pf-header-actions .btn { flex: 1; }
  .pf-tabs { overflow-x: auto; }
  .pf-tab { padding: 12px 16px; white-space: nowrap; }
  .pf-sidebar { grid-template-columns: 1fr; }
  .pf-app-card { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .pf-header { padding: 80px 0 0; }
  .pf-meta { gap: 8px; }
  .pf-exp-item { flex-direction: column; gap: 10px; }
}
