/* ===== CAPYBARA PROFILE / DRESS-UP SCREEN ===== */

/* ===== STORIES TOPBAR CAPY ===== */
.stories-topbar-capy {
  display: flex;
  align-items: center;
  line-height: 1;
}
.stories-topbar-capy svg {
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.1));
}

.profile-body {
  flex: 1;
  display: flex;
  gap: 32px;
  padding: 32px;
  overflow-y: auto;
  background: linear-gradient(135deg, #fdf6e3 0%, #fef9ef 100%);
  justify-content: center;
  align-items: flex-start;
}

/* ===== PREVIEW AREA (LEFT) ===== */
.capy-preview-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.capy-stage {
  width: 280px;
  height: 300px;
  background: linear-gradient(180deg, #e8f5e9 0%, #c8e6c9 60%, #a5d6a7 100%);
  border-radius: 24px;
  border: 4px solid #81c784;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08), inset 0 -4px 12px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

/* Grass tufts at bottom */
.capy-stage::after {
  content: '🌿🌱🌿🌱🌿';
  position: absolute;
  bottom: 4px;
  font-size: 16px;
  letter-spacing: 8px;
  opacity: 0.5;
}

#capy-avatar {
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.15));
  transition: transform 0.3s ease;
}
#capy-avatar:hover {
  transform: scale(1.04) rotate(-2deg);
}

.capy-name-area {
  text-align: center;
}

.capy-name-input {
  border: 3px solid #ffe0b2;
  border-radius: 14px;
  padding: 10px 20px;
  font-family: 'Fredoka One', cursive;
  font-size: 22px;
  color: #5d4037;
  text-align: center;
  outline: none;
  width: 260px;
  background: #fff;
  transition: border-color 0.2s;
}
.capy-name-input:focus {
  border-color: #ffb74d;
}
.capy-name-input::placeholder {
  color: #cba87c;
}

/* ===== OPTIONS PANEL (RIGHT) ===== */
.capy-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 340px;
}

.capy-option-section {
  background: #fff;
  border: 3px solid #ffe0b2;
  border-radius: 16px;
  padding: 16px 20px;
}

.capy-option-section h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 16px;
  color: #5d4037;
  margin-bottom: 12px;
}

/* ===== FUR COLOR GRID ===== */
.capy-color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.capy-color-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.capy-color-btn:hover {
  transform: scale(1.15);
}
.capy-color-btn.active {
  border-color: #ff9800;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #ff9800;
}
.capy-color-btn.capy-locked {
  opacity: 0.4;
  cursor: not-allowed;
  position: relative;
}
.capy-color-btn.capy-locked:hover { transform: none; }
.capy-color-btn.capy-locked::after {
  content: '🔒';
  position: absolute;
  font-size: 12px;
  bottom: -4px;
  right: -4px;
  line-height: 1;
}

/* ===== ACCESSORIES GRID ===== */
.capy-acc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.capy-acc-btn {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 3px solid #e0e0e0;
  background: #fafafa;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.capy-acc-btn:hover {
  border-color: #ffb74d;
  transform: scale(1.08);
}
.capy-acc-btn.active {
  border-color: #ff9800;
  background: #fff3e0;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ff9800;
}
.capy-acc-btn.capy-locked {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.5);
  position: relative;
}
.capy-acc-btn.capy-locked:hover { border-color: #e0e0e0; transform: none; }
.capy-acc-btn.capy-locked::after {
  content: '🔒';
  position: absolute;
  font-size: 10px;
  bottom: -2px;
  right: -2px;
  line-height: 1;
}

/* ===== SAVE BUTTON ===== */
.capy-save-btn {
  background: linear-gradient(135deg, #ff9800, #ffa726);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 28px;
  font-family: 'Fredoka One', cursive;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
  text-align: center;
}
.capy-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}
.capy-save-btn:active {
  transform: translateY(0);
}

/* ===== HOME SCREEN CAPY NAME BADGE ===== */
.capy-home-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 16px;
  background: rgba(255,255,255,0.7);
  border-radius: 20px;
  font-family: 'Fredoka One', cursive;
  font-size: 15px;
  color: #5d4037;
  backdrop-filter: blur(4px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 680px) {
  .profile-body {
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
  }
  .capy-options {
    max-width: 100%;
    width: 100%;
  }
}
