/* [split 5/9] servbg.com stylesheet: user profile, gamification, authentication, change-password modal. Split from style.css on 2026-10-12 (lines 3542-4249 of the original); the nine css/*.css parts load in numbered order, then the terminal css/app.css. See style.css stub. */
/* ============================================
   USER PROFILE STYLES
   ============================================ */

.profile-content {
  padding: 0;
}

.profile-login {
  text-align: center;
  padding: 40px 20px;
}

.profile-header-text {
  margin-bottom: 24px;
}

.profile-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}

.profile-header-text h3 {
  color: var(--accent);
  margin-bottom: 8px;
}

.profile-header-text p {
  color: var(--text-secondary);
  font-size: 13px;
}

.profile-note {
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 8px;
}

.profile-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}

.profile-input {
  flex: 1;
  background: var(--bg-console);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 13px;
}

.profile-input:focus {
  outline: none;
  border-color: var(--accent);
}

.profile-btn {
  background: var(--accent);
  border: none;
  color: var(--bg-primary);
  padding: 10px 20px;
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.15s;
}

.profile-btn:hover {
  opacity: 0.9;
}

/* Profile Locked State */
.profile-locked {
  text-align: center;
  padding: 60px 20px;
}

.lock-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.profile-locked h3 {
  color: var(--text-primary);
  margin-bottom: 12px;
}

.profile-locked p {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.profile-stats-hint {
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--font-ui);
  margin-bottom: 20px;
}

/* Full Profile View - Compact Version */
.profile-full {
  font-family: var(--font-ui);
  max-width: 100%;
  margin: 0 auto;
}

/* Compact Profile Header - Responsive Layout */
.profile-header-compact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: 12px;
}

.profile-header-top {
  display: flex;
  gap: 16px;
  align-items: center;
  grid-column: 1 / -1;
}

.profile-stats-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  grid-column: 1 / -1;
  margin-top: 8px;
}

.profile-avatar-section {
  flex-shrink: 0;
}

.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-console);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  font-size: 24px;
}

.avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  font-size: 16px;
}

.profile-avatar:hover .avatar-overlay {
  opacity: 1;
}

/* Compact Profile Info */
.profile-info-compact {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-nickname-input-compact {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--accent);
  padding: 6px 0;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  width: 100%;
}

.profile-motto-input-compact {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 0;
  font-family: var(--font-ui);
  font-size: 13px;
  font-style: italic;
  width: 100%;
}

.profile-nickname-input-compact:focus,
.profile-motto-input-compact:focus {
  outline: none;
  border-color: var(--accent);
}

.profile-actions-compact {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.profile-action-btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.profile-action-btn:hover {
  background: var(--accent);
  color: #000;
}

/* Compact Stats - Grid Layout */
.stat-item-compact {
  text-align: center;
  padding: 8px;
  background: var(--bg-console);
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-item-compact.nightmare .stat-value { color: #f85149; }
.stat-item-compact.survival .stat-value { color: var(--accent); }
.stat-item-compact.overall .stat-value { color: #58a6ff; }

.stat-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Quick Actions - Styled like Advanced Port Scanner */
.profile-quick-actions-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.quick-btn {
  background: var(--accent-dim);
  border: 1px dashed var(--accent-border);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  text-align: center;
}

.quick-btn:hover {
  background: var(--accent);
  border-style: solid;
  color: #000;
}

/* Compact Knowledge Matrix */
.profile-knowledge-compact {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px;
}

.profile-knowledge-compact h4 {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 6px 0;
  letter-spacing: 0.5px;
}

.knowledge-note-compact {
  color: var(--text-muted);
  font-size: 11px;
  margin: 0 0 10px 0;
}

.knowledge-bars-compact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.knowledge-row-compact {
  display: grid;
  grid-template-columns: 120px 1fr 45px;
  gap: 8px;
  align-items: center;
}

.knowledge-cat-compact {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.knowledge-bar-compact {
  background: var(--bg-console);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  height: 12px;
  overflow: hidden;
}

.knowledge-fill-compact {
  /* Unused in current markup (no .knowledge-fill-compact in index.php as of
     2026-08-29 — the live compact bar uses .pl-knowledge-fill instead).
     Converted to transform-based fill: a reviving caller should set
     element.style.transform = `scaleX(${fraction})` instead of width. */
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.knowledge-fill-compact.expert { background: var(--accent); }
.knowledge-fill-compact.proficient { background: #58a6ff; }
.knowledge-fill-compact.learning { background: #d29922; }
.knowledge-fill-compact.beginner { background: #6e7681; }

.knowledge-pct-compact {
  font-size: 11px;
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}
.claim-banner {
  background: linear-gradient(135deg, rgba(63, 185, 80, 0.15), rgba(63, 185, 80, 0.05));
  border: 1px solid rgba(63, 185, 80, 0.3);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: slideIn 0.3s ease-out;
}

.claim-banner.loading {
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.15), rgba(88, 166, 255, 0.05));
  border-color: rgba(88, 166, 255, 0.3);
  justify-content: center;
  padding: 12px;
}

.claim-banner.success {
  background: linear-gradient(135deg, rgba(63, 185, 80, 0.2), rgba(63, 185, 80, 0.1));
  border-color: rgba(63, 185, 80, 0.5);
}

.claim-banner.error {
  background: linear-gradient(135deg, rgba(248, 81, 73, 0.15), rgba(248, 81, 73, 0.05));
  border-color: rgba(248, 81, 73, 0.3);
}

.claim-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.claim-content {
  flex: 1;
}

.claim-title {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
}

.claim-desc {
  color: var(--text-secondary);
  font-size: 11px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.claim-actions {
  display: flex;
  gap: 8px;
}

.claim-btn {
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s;
}

.claim-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.claim-dismiss-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.claim-dismiss-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-secondary);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === CHANGE PASSWORD MODAL === */

.knowledge-cat {
  color: var(--text-muted);
  text-transform: uppercase;
}

.knowledge-bar {
  height: 8px;
  background: var(--bg-console);
  border-radius: 4px;
  overflow: hidden;
}

.knowledge-fill {
  /* Unused in current markup (no .knowledge-fill in index.php as of 2026-08-29
     — the live bar uses .pl-knowledge-fill instead). Converted to
     transform-based fill: a reviving caller should set
     element.style.transform = `scaleX(${fraction})` instead of width. */
  height: 100%;
  width: 100%;
  border-radius: 4px;
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.knowledge-fill.expert { background: var(--accent); }
.knowledge-fill.proficient { background: #58a6ff; }
.knowledge-fill.intermediate { background: #d29922; }
.knowledge-fill.beginner { background: #f85149; }

.knowledge-pct {
  color: var(--text-primary);
  text-align: right;
  font-weight: 600;
}

.knowledge-count {
  color: var(--text-muted);
  text-align: right;
}

.no-knowledge {
  text-align: center;
  color: var(--text-muted);
  padding: 20px;
  font-size: 11px;
}

/* Detailed Stats Section */
.profile-detailed-stats {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.profile-detailed-stats h4 {
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stats-section {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px;
}

.stats-section h5 {
  font-size: 11px;
  color: var(--text-primary);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color);
}

.stats-section.nightmare-stats h5 { color: #f85149; }
.stats-section.survival-stats h5 { color: #3fb950; }

.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  padding: 3px 0;
  color: var(--text-secondary);
}

.stat-value {
  font-weight: 600;
  color: var(--text-primary);
}

.stat-value.good { color: var(--accent); }
.stat-value.warn { color: var(--warning); }
.stat-value.bad { color: var(--error); }

.mini-chart {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-color);
}

.chart-label {
  font-size: 10px;
  color: var(--text-muted);
}

.score-trend {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.trend-dot {
  font-size: 12px;
  cursor: help;
}

.knowledge-insights {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.insight {
  flex: 1;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 11px;
}

.insight.good {
  background: rgba(63, 185, 80, 0.1);
  border: 1px solid rgba(63, 185, 80, 0.3);
  color: var(--accent);
}

.insight.warn {
  background: rgba(210, 153, 34, 0.1);
  border: 1px solid rgba(210, 153, 34, 0.3);
  color: var(--warning);
}

.no-stats, .stats-error, .stats-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 20px;
  font-size: 11px;
}

@media (max-width: 700px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .knowledge-insights {
    flex-direction: column;
  }
}

/* Responsive Profile Layout — consolidated into the AUTHORITATIVE MOBILE
   LAYOUT block (≤932px, near EOF) 2026-08-29. The old .modal.profile-modal
   96vw override was dead weight: it shared specificity with the later
   .modal-overlay .modal{width:100%} rule in the 932 block and always lost. */

/* Profile Footer */
.profile-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.profile-email {
  color: var(--text-muted);
  font-size: 10px;
}

.profile-refresh-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 10px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.profile-refresh-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 600px) {
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .profile-scores {
    grid-template-columns: 1fr;
  }
  
  .knowledge-row {
    grid-template-columns: 70px 1fr 40px;
  }
  
  .knowledge-count {
    display: none;
  }
}

