/* =============================================
   Kuaförim App - Profile Styles
   ============================================= */

/* Profile header */
.profile-header {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.profile-avatar-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto var(--space-md);
}

.profile-avatar-wrap img {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--primary);
}

.profile-avatar-wrap .verified-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  border: 2px solid var(--bg-dark);
}

.profile-name {
  font-size: var(--font-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-xs);
}

.profile-handle {
  font-size: var(--font-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.profile-type-badge {
  display: inline-block;
  padding: 2px 12px;
  border-radius: var(--radius-xl);
  font-size: var(--font-xs);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-md);
}

.profile-type-badge.salon {
  background: rgba(212, 160, 23, 0.15);
  color: var(--primary);
  border: 1px solid rgba(212, 160, 23, 0.3);
}

.profile-type-badge.wholesaler {
  background: rgba(201, 168, 76, 0.15);
  color: var(--secondary);
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.profile-type-badge.user {
  background: rgba(255,255,255,0.1);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

/* Stats row */
.profile-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--space-md);
}

.profile-stats .stat-item {
  text-align: center;
  cursor: pointer;
}

.profile-stats .stat-count {
  font-size: var(--font-xl);
  font-weight: var(--font-weight-bold);
  display: block;
  line-height: 1.2;
}

.profile-stats .stat-label {
  font-size: var(--font-xs);
  color: var(--text-muted);
}

/* Profile bio */
.profile-bio {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  padding: 0 var(--space-lg);
  margin-bottom: var(--space-md);
  line-height: 1.4;
  text-align: center;
}

/* Profile action buttons */
.profile-actions {
  display: flex;
  gap: var(--space-sm);
  padding: 0 var(--space-md);
  margin-bottom: var(--space-lg);
}

.profile-actions .btn-follow {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: var(--font-md);
  font-weight: var(--font-weight-bold);
  text-align: center;
  transition: all var(--transition-fast);
}

.profile-actions .btn-follow.following {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
}

.profile-actions .btn-message {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 18px;
}

/* Content tab switcher */
.profile-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.profile-tabs .profile-tab {
  flex: 1;
  padding: var(--space-md);
  text-align: center;
  font-size: 20px;
  color: var(--text-muted);
  position: relative;
  transition: color var(--transition-fast);
}

.profile-tabs .profile-tab.active {
  color: var(--text-primary);
}

.profile-tabs .profile-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
}

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 2px;
}

.video-grid .grid-item {
  position: relative;
  aspect-ratio: 9/16;
  background: var(--bg-surface);
  overflow: hidden;
  cursor: pointer;
}

.video-grid .grid-item img,
.video-grid .grid-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-grid .grid-item .grid-views {
  position: absolute;
  bottom: var(--space-xs);
  left: var(--space-xs);
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* Edit profile form */
.edit-profile-form {
  padding: var(--space-md);
}

.edit-profile-form .form-group {
  margin-bottom: var(--space-md);
}

.edit-profile-form label {
  display: block;
  font-size: var(--font-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.edit-profile-form input,
.edit-profile-form textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--font-md);
}

.edit-profile-form input:focus,
.edit-profile-form textarea:focus {
  border-color: var(--primary);
}
