/* style-outfits.css — Outfit detail, builder, profile, referral, feedback */

/* ══════════════════════════════════════════
   OUTFIT DETAIL
══════════════════════════════════════════ */
.outfit-detail-body { padding: 20px 16px 16px; }
.outfit-detail-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--text);
  margin-bottom: 8px;
}
.outfit-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }

/* Подходит для */
.outfit-fit-block {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 18px;
}
.outfit-fit-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--hint);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 8px;
}
.outfit-fit-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.outfit-fit-tag {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  box-shadow: var(--shadow-sm);
}

.outfit-detail-cta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.outfit-cta-btn {
  flex: 1;
  padding: 12px 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: 1.5px solid var(--border2);
  background: var(--card-bg);
  color: var(--text);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: opacity .12s, transform .12s;
  min-width: 80px;
}
.outfit-cta-btn:active { opacity: .7; transform: scale(.96); }
.outfit-cta-btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }

.outfit-items-section { margin-bottom: 24px; }
.outfit-items-section .section-hdr { padding: 0 0 12px; }
.outfit-items-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.outfit-item-thumb {
  background: var(--bg2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .12s;
  position: relative;
}
.outfit-item-thumb:active { transform: scale(.94); }
.outfit-item-thumb img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; background: #fff; }
.outfit-item-thumb-name {
  padding: 5px 7px 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.outfit-tags-section { margin-bottom: 24px; }
.outfit-tags-section .section-hdr { padding: 0 0 10px; }
.tags-edit-wrap { display: flex; flex-wrap: wrap; gap: 6px; }

.tag-chip { background: var(--bg2); border-radius: 20px; padding: 5px 12px; font-size: 12px; color: var(--hint); font-weight: 500; }
.tag-chip.active, .tag-chip--active { background: var(--accent); color: #fff; }

.outfit-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }

/* ══════════════════════════════════════════
   OUTFIT BUILDER
══════════════════════════════════════════ */
.builder-bar {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 12px 16px calc(12px + var(--safe-bottom));
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 -4px 20px rgba(28,25,23,.08);
}
.builder-count { flex: 1; font-size: 13px; color: var(--hint); }
.builder-preview {
  display: none;
  flex-direction: row;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.builder-preview-item {
  position: relative;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.builder-preview-rm {
  position: absolute;
  top: 2px; right: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
}
.builder-canvas {
  display: none;
  position: relative;
  height: 320px;
  margin: 8px 12px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  touch-action: none;
}
.canvas-item {
  transition: box-shadow 0.15s;
}
.canvas-item:active {
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.builder-filter-wrap .filter-bar {
  padding: 4px 12px 4px;
  gap: 5px;
}
.builder-filter-wrap .filter-chip {
  padding: 4px 10px;
  font-size: 12px;
}
.builder-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  padding: 12px 12px 120px;
}

/* ══════════════════════════════════════════
   PROFILE SCREEN
══════════════════════════════════════════ */
.profile-hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 20px 16px;
  gap: 14px;
}
.profile-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--bg2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--hint);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.profile-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.3px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-city {
  font-size: 13px;
  color: var(--hint);
  display: flex;
  align-items: center;
  gap: 4px;
}
.profile-city--tap {
  cursor: pointer;
  padding: 2px 0;
  border-radius: 20px;
  transition: background .15s;
}
.profile-city--tap:active { opacity: .7; }
.profile-city-edit {
  font-size: 11px;
  opacity: .5;
  margin-left: 1px;
}
.profile-coins {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  cursor: pointer;
  transition: opacity .15s;
}
.profile-coins-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.profile-coins-label {
  font-size: 12px;
  color: var(--hint);
}
.profile-coins:active { opacity: .7; }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 12px 8px;
}
.profile-stat {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.profile-stat--tap { cursor: pointer; }
.profile-stat--tap:active { opacity: .7; }
.profile-stat-num {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--text);
}
.profile-stat-label {
  font-size: 11px;
  color: var(--hint);
  font-weight: 500;
  margin-top: 2px;
}

/* ══════════════════════════════════════════
   REFERRAL SCREEN
══════════════════════════════════════════ */
.referral-hero {
  background: linear-gradient(145deg, #1C1917 0%, #3D2B1F 100%);
  border-radius: var(--radius);
  margin: 0 12px;
  padding: 28px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.referral-hero::before {
  content: '🎁';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 64px;
  opacity: .15;
}
.referral-hero-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.4px;
  margin-bottom: 8px;
}
.referral-hero-sub {
  font-size: 14px;
  opacity: .7;
  line-height: 1.4;
}

.referral-link-block {
  margin: 0 12px;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}
.referral-link-text {
  flex: 1;
  font-size: 13px;
  color: var(--hint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.referral-link-copy {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-xs);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  transition: opacity .12s;
}
.referral-link-copy:active { opacity: .7; }

.referral-counter {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0 12px;
}
.referral-counter-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.referral-counter-num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--text);
}
.referral-counter-label {
  font-size: 12px;
  color: var(--hint);
  font-weight: 500;
  margin-top: 3px;
}

.referral-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.referral-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--hint);
  flex-shrink: 0;
}
.referral-user-name { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.referral-user-date { font-size: 12px; color: var(--hint); }
.referral-status {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.referral-status--active   { background: #D1FAE5; color: #065F46; }
.referral-status--pending  { background: #FEF3C7; color: #92400E; }
.referral-status--inactive { background: var(--bg2); color: var(--hint); }

/* ══════════════════════════════════════════
   FEEDBACK PAGE
══════════════════════════════════════════ */
.fb-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--hint);
  margin-bottom: 10px;
}
.fb-type-picker {
  display: flex;
  gap: 8px;
}
.fb-type-btn {
  flex: 1;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all .12s;
  box-shadow: var(--shadow-sm);
}
.fb-type-btn.active {
  border-color: var(--accent);
  background: var(--accent);
}
.fb-type-btn.active .fb-type-label { color: #fff; }
.fb-type-icon { font-size: 22px; }
.fb-type-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
}
.fb-stars {
  display: flex;
  gap: 8px;
}
.fb-star {
  font-size: 34px;
  color: var(--bg2);
  cursor: pointer;
  transition: color .1s, transform .1s;
  line-height: 1;
  user-select: none;
}
.fb-star.active { color: var(--gold); }
.fb-star:active { transform: scale(1.2); }

/* Sheet subtitle */
.sheet-subtitle {
  font-size: 13px;
  color: var(--hint);
  padding: 0 20px 12px;
}
.sheet-list { padding: 0 0 8px; }
