/* Profile Enhancements: Pronouns, Gender, Colors, OC, Stickers, Followers, Tags */

/* Color Palette Display */
.color-palette {
  display: flex;
  gap: 12px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.color-swatch {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid #999;
  cursor: pointer;
  transition: transform 0.2s;
}

.color-swatch:hover {
  transform: scale(1.1);
}

/* Tagged Users Section */
.tagged-users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.tagged-user-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.2s;
}

.tagged-user-item:hover {
  background: rgba(200, 200, 200, 0.2);
}

.tagged-user-item img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}

.tagged-user-item span {
  font-size: 12px;
  text-align: center;
  word-break: break-word;
  max-width: 90px;
}

/* OC Section */
.oc-section {
  padding: 20px;
}

.oc-card {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(200, 200, 200, 0.3);
  border-radius: 8px;
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.oc-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.oc-card h3 {
  margin: 10px 0;
  font-size: 24px;
}

.oc-details {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.oc-details div {
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

/* Followers/Following Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #2a2a2a;
  border: 3px solid #444;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
}

.modal-close:hover {
  color: #ccc;
}

.modal-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #444;
}

.modal-tab-btn {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  font-weight: bold;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.modal-tab-btn.active {
  color: #fff;
  border-bottom-color: #2196F3;
  background: rgba(33, 150, 243, 0.1);
}

.modal-search {
  padding: 12px;
  border-bottom: 1px solid #444;
}

.modal-search input {
  width: 100%;
  padding: 8px;
  border: 1px solid #555;
  border-radius: 4px;
  background: #333;
  color: #fff;
}

.modal-search input::placeholder {
  color: #888;
}

.modal-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.follower-item {
  padding: 12px;
  border-bottom: 1px solid #444;
  cursor: pointer;
  transition: background 0.2s;
}

.follower-item:hover {
  background: rgba(200, 200, 200, 0.1);
}

.follower-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.follower-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.follower-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.follower-info strong {
  font-size: 14px;
}

.follower-info span {
  font-size: 12px;
  color: #999;
}

.mutual-badge {
  background: #4CAF50;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
}

/* Stickers Canvas */
.stickers-canvas-wrapper {
  padding: 20px;
}

.stickers-canvas {
  position: relative;
  width: 100%;
  height: 600px;
  background: linear-gradient(135deg, rgba(200,200,200,0.1), rgba(100,100,100,0.1));
  border: 2px dashed #666;
  border-radius: 8px;
  overflow: hidden;
  cursor: default;
}

.sticker-item {
  position: absolute;
  cursor: move;
  user-select: none;
}

.sticker-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.sticker-controls {
  position: absolute;
  top: -30px;
  left: 0;
  display: none;
  gap: 8px;
  background: rgba(0, 0, 0, 0.7);
  padding: 4px;
  border-radius: 4px;
}

.sticker-item:hover .sticker-controls {
  display: flex;
}

.sticker-rotate,
.sticker-delete {
  background: #2196F3;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
}

.sticker-rotate:hover {
  background: #1976D2;
}

.sticker-delete:hover {
  background: #f44336;
}

/* Edit Profile Enhancements */
#edit-profile-btn {
  cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 80vh;
  }

  .stickers-canvas {
    height: 400px;
  }

  .color-palette {
    gap: 8px;
  }

  .color-swatch {
    width: 35px;
    height: 35px;
  }

  .oc-card {
    padding: 15px;
  }

  .tagged-users-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
  }

  .modal-tabs {
    flex-wrap: wrap;
  }

  .modal-tab-btn {
    flex: 1 1 50%;
    font-size: 13px;
    padding: 10px;
  }
}

/* Skeuomorphic theme compatibility */
.profile-page .color-swatch {
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.profile-page .oc-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(200,200,200,0.08));
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}

.profile-page .follower-item:hover {
  background: linear-gradient(135deg, rgba(100,150,255,0.15), rgba(100,100,255,0.1));
}

.profile-page .sticker-rotate,
.profile-page .sticker-delete {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
