/* css/profile.css — DevKit Profile Page Styles */

/* Profile Hero */
.profile-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--sp8) 0;
  position: relative;
  z-index: 1;
}

.profile-hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp8);
  display: flex;
  align-items: center;
  gap: var(--sp6);
  position: relative;
  z-index: 2;
}

/* Avatar */
.avatar-container {
  position: relative;
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 2px solid var(--acid);
  box-shadow: 0 0 16px rgba(0,255,178,0.2);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}
.avatar-container img { width: 100%; height: 100%; object-fit: cover; }
.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 var(--t-mid);
  font-size: 18px;
}
.avatar-container:hover .avatar-overlay { opacity: 1; }

/* Profile Info */
.profile-user-info h1 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 4px;
}
.profile-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* Quick Stats */
.profile-quick-stats {
  display: flex;
  gap: var(--sp4);
  margin-left: auto;
}
.stat-badge {
  background: var(--raised);
  border: 1px solid var(--border-glow);
  padding: var(--sp3) var(--sp5);
  border-radius: var(--r3);
  text-align: center;
}
.stat-badge .val {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--acid);
  letter-spacing: -0.02em;
}
.stat-badge .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* Profile Layout */
.profile-layout {
  display: grid;
  grid-template-columns: 230px 1fr 270px;
  gap: var(--sp5);
  margin-top: var(--sp6);
  margin-bottom: var(--sp16);
  position: relative;
  z-index: 1;
}

/* Sidebar Nav */
.profile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp1);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: var(--sp3);
  height: fit-content;
  position: sticky;
  top: 80px;
}

.profile-nav-btn {
  display: flex;
  align-items: center;
  gap: var(--sp3);
  padding: var(--sp3) var(--sp4);
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--r2);
  cursor: pointer;
  transition: all var(--t-fast) var(--t-ease);
  border-left: 2px solid transparent;
}
.profile-nav-btn:hover { background: var(--raised); color: var(--text); }
.profile-nav-btn.active {
  background: var(--acid-halo);
  color: var(--bright);
  border-left-color: var(--acid);
}

/* Content Area */
.profile-content-area { min-height: 400px; }

.tab-pane { display: none; animation: fadeSlideUp 0.3s var(--t-ease); }
.tab-pane.active { display: block; }

/* Chart */
.chart-container {
  width: 100%;
  height: 280px;
  margin-bottom: var(--sp5);
}

/* Activity */
.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-item {
  padding: var(--sp4) 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
  display: flex;
  gap: var(--sp3);
  color: var(--text);
}
.activity-item:last-child { border-bottom: none; }
.activity-icon { color: var(--acid); font-size: 16px; flex-shrink: 0; }

/* GPA Table */
.gpa-table { width: 100%; border-collapse: collapse; }
.gpa-table th {
  text-align: left;
  padding: var(--sp3) var(--sp4);
  background: var(--raised);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border);
}
.gpa-table td {
  padding: var(--sp4);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 13px;
}
.gpa-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.gpa-table tbody tr:last-child td { border-bottom: none; }

/* Saved Calc Grid */
.saved-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp4);
}
.saved-calc-card {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: var(--sp5);
  position: relative;
  transition: border-color var(--t-mid) var(--t-ease);
}
.saved-calc-card:hover { border-color: var(--border-glow); }
.saved-calc-title { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--bright); margin-bottom: 4px; }
.saved-calc-result {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--acid);
  letter-spacing: -0.02em;
  margin: var(--sp3) 0;
}
.saved-calc-delete {
  position: absolute;
  top: var(--sp3); right: var(--sp3);
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  font-size: 14px;
  transition: color var(--t-fast);
}
.saved-calc-delete:hover { color: #FF4757; }

/* Widgets */
.widget { margin-bottom: var(--sp4); }
.widget-title {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--acid);
  margin-bottom: var(--sp4);
  padding-bottom: var(--sp3);
  border-bottom: 1px solid var(--border);
}

/* GPA Gauge Ring */
.gauge-ring {
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 8px solid var(--border);
  border-top-color: var(--acid);
  border-right-color: var(--acid);
  margin: 0 auto var(--sp4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 20px rgba(0,255,178,0.15);
}
.gauge-val {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--acid);
  letter-spacing: -0.02em;
}

/* Goal Progress */
.goal-progress {
  height: 4px;
  background: var(--raised);
  border-radius: 100px;
  overflow: hidden;
  margin-top: var(--sp3);
}
.goal-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--acid), var(--plasma));
  width: 0%;
  transition: width 1.2s var(--t-ease);
  box-shadow: 0 0 8px rgba(0,255,178,0.4);
}

/* Badges */
.badge-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp3); }
.badge-item {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--raised);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid var(--border);
  cursor: help;
  transition: all var(--t-mid) var(--t-spring);
  opacity: 0.35;
  filter: grayscale(1);
}
.badge-item.earned {
  opacity: 1;
  filter: none;
  border-color: var(--acid);
  box-shadow: 0 0 12px rgba(0,255,178,0.2);
}
.badge-item.earned:hover { transform: scale(1.1); }

/* Responsive */
@media (max-width: 1100px) {
  .profile-layout { grid-template-columns: 200px 1fr; }
  .widget-col { display: none; }
  .profile-quick-stats { display: none; }
}
@media (max-width: 768px) {
  .profile-layout { grid-template-columns: 1fr; margin-top: var(--sp4); }
  .profile-nav { 
    flex-direction: row; 
    overflow-x: auto; 
    position: sticky; 
    top: 60px;
    z-index: 100;
    background: rgba(13,13,26,0.9);
    backdrop-filter: blur(10px);
    margin: 0 calc(-1 * var(--sp4));
    padding: var(--sp2) var(--sp4);
    border-radius: 0;
    border-inline: none;
    scrollbar-width: none;
  }
  .profile-nav::-webkit-scrollbar { display: none; }
  .profile-nav-btn { 
    white-space: nowrap; 
    border-left: none; 
    border-bottom: 2px solid transparent; 
    border-radius: 0; 
    padding: var(--sp3) var(--sp5);
    font-size: 13px;
  }
  .profile-nav-btn.active { border-left: none; border-bottom-color: var(--acid); background: none; }
  .profile-hero-content { flex-direction: column; text-align: center; gap: var(--sp4); }
  .profile-quick-stats { margin: var(--sp4) 0 0; display: flex; width: 100%; justify-content: center; }
}