/* tournament-profile.css */
/* Extracted from templates/pages/tournament/profile.html */

/* ─── Profile Hero Banner ─── */
.profile-hero {
  position: relative;
  height: 180px;
  border-radius: var(--border-radius, 16px);
  overflow: hidden;
  margin-bottom: 0;
}

.profile-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.profile-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--bg-body, #F5F7FA) 100%);
}

.profile-header {
  text-align: center;
  padding: 32px 16px;
  background: linear-gradient(180deg, rgba(232, 232, 111, 0.08) 0%, transparent 100%);
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lime-primary) 0%, #8bc34a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 0 auto 16px;
  border: 3px solid rgba(232, 232, 111, 0.3);
}

.profile-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
  margin: 0 0 4px 0;
}

.profile-nickname {
  font-size: 14px;
  color: var(--lime-primary);
  margin: 0;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 16px;
}

.stat-item {
  background: var(--bg-card, #FFFFFF);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 16px 8px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-dark, #253C56);
  margin-bottom: 4px;
}

.stat-value.highlight {
  color: var(--lime-primary);
}

.stat-label {
  font-size: 11px;
  color: var(--text-white-muted, #6B7B8D);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Section */
.profile-section {
  padding: 16px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* Menu Items */
.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.menu-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime-primary);
}

.menu-icon svg {
  width: 20px;
  height: 20px;
}

.menu-content {
  flex: 1;
}

.menu-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-white);
  margin-bottom: 2px;
}

.menu-subtitle {
  font-size: 13px;
  color: var(--text-white-muted);
}

.menu-arrow {
  color: var(--text-white-subtle);
}

/* Trip CTA Card */
.trip-cta {
  margin: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(232, 232, 111, 0.12) 0%, rgba(139, 195, 74, 0.08) 100%);
  border: 1px solid rgba(232, 232, 111, 0.25);
  border-radius: 16px;
  text-align: center;
}

.trip-cta-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.trip-cta-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  margin: 0 0 8px 0;
}

.trip-cta-desc {
  font-size: 14px;
  color: var(--text-white-muted);
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.trip-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--lime-primary);
  color: var(--navy-dark);
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.trip-cta-btn:hover {
  background: var(--lime-hover);
  transform: translateY(-2px);
}

/* Achievement Badge */
.achievement-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.achievement {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-card, #FFFFFF);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  font-size: 12px;
  color: var(--navy-dark, #253C56);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.achievement-icon {
  font-size: 14px;
}

/* Back to Trip Mode */
.mode-switch {
  margin: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-white-muted);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.mode-switch:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-white);
}