/* Profile Component Styles */

.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.profile-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--border);
}

.profile-avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  border: 4px solid var(--border);
}

.profile-info {
  flex: 1;
}

.profile-username {
  font-size: 2rem;
  font-weight: bold;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-bio {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0.75rem 0;
  max-width: 600px;
}

.profile-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.profile-stat {
  display: flex;
  flex-direction: column;
}

.profile-stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

.profile-stat-label {
  font-size: 0.875rem;
  color: var(--text-light);
}

.profile-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.profile-section {
  margin-top: 2rem;
}

.profile-section h2 {
  margin-bottom: 1rem;
}

.profile-predictions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.prediction-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

.prediction-card h4 {
  margin: 0 0 0.75rem 0;
  font-size: 0.875rem;
  color: var(--text-light);
}

.prediction-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(79, 70, 229, 0.05);
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.prediction-item:last-child {
  margin-bottom: 0;
}

.prediction-position {
  font-weight: bold;
  color: var(--primary);
  min-width: 1.5rem;
}

.prediction-game {
  flex: 1;
  font-size: 0.875rem;
}

.private-profile {
  text-align: center;
  padding: 3rem 1rem;
}

.private-profile-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.private-profile h2 {
  margin-bottom: 0.5rem;
}

.private-profile p {
  color: var(--text-light);
}

/* Settings Page Styles */

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.settings-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.settings-card h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--card-bg);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

.alert {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Responsive Design */

@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-username {
    justify-content: center;
  }

  .profile-stats {
    justify-content: center;
  }

  .profile-actions {
    justify-content: center;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }
}
