/* === PROFILE SCREEN (Mobile First) === */

/* Profile Container */
.profile-screen {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0 var(--spacing-lg);
  box-sizing: border-box;
  background: transparent;
  align-items: center;
  justify-content: center;
}

/* Profile Header */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: calc(env(safe-area-inset-top) + 80px);
  padding-bottom: 16px;
}

.profile-avatar {
  position: relative;
  margin-bottom: 16px;
}

.profile-avatar-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #1c1c1e;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 800;
  color: #fff;
}

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

.profile-name {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
  text-align: center;
  color: #fff;
}

.profile-username {
  font-family: var(--font-mono);
  font-size: 15px;
  opacity: 0.4;
  margin-bottom: 0;
  font-weight: 500;
  color: #fff;
}

/* Stats Pills */
.profile-stats {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.stat-pill {
  background: rgba(255,255,255,0.05);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  color: #fff;
}

.stat-pill.active {
  background: rgba(46, 204, 113, 0.1);
  border-color: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
}

.stat-pill.inactive {
  background: rgba(231, 76, 60, 0.1);
  border-color: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

/* Actions Section */
.profile-actions {
  width: 100%;
  max-width: 400px;
  padding-top: auto;
  padding-bottom: calc(var(--spacing-lg) * 3 + env(safe-area-inset-bottom));
  margin-top: auto;
}

/* Stats inside actions */
.profile-actions .profile-stats {
  margin-bottom: 16px;
}

.actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  width: 100%;
}

/* Hero Action Card (Full Width) */
.action-card-hero {
  grid-column: 1 / -1;
  height: var(--card-hero-height);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-lg);
  border: 1px solid rgba(255, 215, 0, 0.3);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(0, 0, 0, 0) 100%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
  margin: 0;
}

.action-card-hero:active {
  transform: scale(0.98);
}

.action-card-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  to { left: 200%; }
}

.action-card-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.action-card-hero-title {
  font-weight: 800;
  font-size: 18px;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.action-card-hero-subtitle {
  font-size: 13px;
  opacity: 0.7;
  color: #fff;
}

.action-card-hero-icon {
  font-size: 42px;
  filter: drop-shadow(0 0 15px rgba(255,215,0,0.4));
  transform: rotate(15deg);
}

/* Standard Action Card */
.action-card {
  height: var(--card-action-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  gap: 8px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: transform 0.2s;
  margin: 0;
}

.action-card:active {
  transform: scale(0.98);
}

.action-card-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}

.action-card-label {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}
