/* User Center Styles - Consistent with Site Brutalist Theme (No Cards) */

/* Utilities */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; /* Avatars remain round */
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 700;
  border: 2px solid var(--border);
  text-transform: uppercase;
  flex-shrink: 0;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.avatar.small {
  width: 28px;
  height: 28px;
  font-size: 12px;
  border-width: 1.5px;
}
.avatar.medium {
  width: 44px;
  height: 44px;
  font-size: 16px;
}
.avatar.large {
  width: 88px;
  height: 88px;
  font-size: 32px;
}

/* Sidebar Profile - Simplified, No Card */
.user-sidebar .profile-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border);
}

.user-sidebar .avatar.large {
  margin-bottom: 16px;
}

.user-sidebar #profile-name {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text);
}

.user-sidebar .bio {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: var(--text-soft);
}

/* Sidebar Menu - Refined with Icons */
.user-sidebar .menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--text-soft);
  font-weight: 500;
  font-size: 15px;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: transparent;
}

.user-sidebar .menu-item .icon {
  width: 20px;
  height: 20px;
  color: var(--text-soft);
  transition: color 0.2s;
}

.user-sidebar .menu-item:hover {
  background: var(--bg-soft);
  color: var(--text);
}
.user-sidebar .menu-item:hover .icon {
  color: var(--text);
}

.user-sidebar .menu-item.active {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  border: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.user-sidebar .menu-item.active .icon {
  color: var(--primary);
}

/* User Content Lists - List Style, Not Card Style */
.user-content-list {
  display: flex;
  flex-direction: column;
  gap: 0; /* Remove gap, use borders */
}

.user-content .post-item {
  border: none;
  border-bottom: 2px solid var(--border);
  border-radius: 0;
  padding: 20px 0; /* Vertical padding only */
  display: flex;
  gap: 20px;
  background: transparent;
  transition: background 0.1s;
}

.user-content .post-item:first-child {
  padding-top: 0;
}

.user-content .post-item:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
}

/* Add a subtle hover indicator if needed, or keep it clean */
/* .user-content .post-item:hover .title { color: var(--primary); } */

.user-content .post-item.no-thumb .content {
  width: 100%;
}

.user-content .post-item .thumb {
  width: 180px;
  height: 120px;
  flex-shrink: 0;
  border: 2px solid var(--border);
  background: var(--bg-soft);
  overflow: hidden;
  border-radius: 0; /* Sharp corners */
}

.user-content .post-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.user-content .post-item:hover .thumb img {
  transform: scale(1.05);
}

.user-content .post-item .content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.user-content .post-item .title {
  font-size: 20px;
  margin: 0;
  line-height: 1.4;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.user-content .post-item .title:hover {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.user-content .post-item .excerpt {
  font-size: 15px;
  color: var(--text-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.user-content .list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 500;
}

.user-content .list-meta .author-link {
  color: inherit;
  text-decoration: none;
}

.user-content .list-meta .author-link:hover {
  text-decoration: underline;
}

.user-content .card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

/* Action Buttons - Icon Style */
.user-content .actions {
  display: flex;
  gap: 4px; /* Tighter gap for icons */
}

.user-content .actions .button.icon-btn {
  padding: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  background: transparent;
  color: var(--text-soft);
  border-radius: 0; /* Brutalist square */
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none; /* No underline for icons */
}

.user-content .actions .button.icon-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2px;
}

/* Hover state: Simple Color Change (No Background) */
.user-content .actions .button.icon-btn:hover {
  background: transparent;
  color: var(--text); /* Darken icon */
  border-color: transparent;
  transform: none; /* No movement */
  box-shadow: none;
}

.user-content .actions .button.icon-btn.danger {
  color: var(--text-soft);
}

.user-content .actions .button.icon-btn.danger:hover {
  background: transparent;
  border-color: transparent;
  color: #ef4444; /* Red icon on hover */
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
}

.stats {
  display: flex;
  gap: 16px;
}

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Community Grid - Rectangular, Hard Borders */
#list-c-owned {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.uc-community-card {
  border: 2px solid var(--border);
  background: #fff;
  transition: transform 0.1s;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 0; /* Sharp corners */
  overflow: hidden;
}

.uc-community-card:hover {
  transform: translateY(-4px);
  box-shadow: 4px 4px 0 var(--border); /* Hard shadow on hover only */
}

.uc-community-card .banner {
  height: 80px;
  background-color: var(--bg-soft);
  background-size: cover;
  background-position: center;
  border-bottom: 2px solid var(--border);
}

.uc-community-card .info {
  padding: 40px 16px 16px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.uc-community-card .avatar {
  width: 60px;
  height: 60px;
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid var(--border);
  background: #fff;
  border-radius: 0; /* Square avatar container for brutalist feel? Or keep round? Keeping round for avatar convention but container is sharp */
  /* Let's make the avatar container slightly rounded or square to fit brutalism better? 
     Actually standard avatars are usually circle. Let's keep circle but remove extra effects. */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
  font-weight: 800;
  z-index: 10;
  box-shadow: none;
}

.uc-community-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.uc-community-card .name {
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.uc-community-card .name a {
  text-decoration: none;
  color: var(--text);
}

.uc-community-card .name a:hover {
  color: var(--primary);
}

.uc-community-card .desc {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 16px;
  height: 44px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.6;
}

.uc-community-card .stats {
  font-size: 13px;
  color: var(--text-soft);
  justify-content: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 2px solid var(--border); /* Solid border separator */
  width: 100%;
}

/* Empty State */
.empty-state {
  padding: 60px 0;
  text-align: center;
  color: var(--text-soft);
  border: 2px dashed var(--border);
  border-radius: 0;
  background: transparent;
}

.empty-state .icon {
  width: 48px;
  height: 48px;
  color: #ccc;
  margin-bottom: 16px;
}

.empty-state .title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
