/* Minimal CSS to support src/Template/Public/index.ctp and list.ctp
 * The original template expects /manganow/css/user.css (from MangaNow).
 * This file provides a sane anime/profile layout using existing base theme styles.
 */

/* Layout */
.profile-container {
  width: 100%;
}

.award-bg {
  position: relative;
  padding: 18px 0 0;
}

.award-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  opacity: 0.35;
}

.award-inner {
  position: relative;
  z-index: 1;
  padding: 24px 0 10px;
}

.my-award {
  gap: 24px;
}

.maw-left,
.maw-right {
  width: 100%;
}

@media (min-width: 992px) {
  .maw-left {
    flex: 0 0 40%;
  }
  .maw-right {
    flex: 1;
  }
}

/* Watching list cards */
.manga_list-sbs {
  width: 100%;
}

.mls-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.manga_list-sbs .item {
  width: calc(50% - 7px);
  background: rgba(28, 28, 28, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .manga_list-sbs .item {
    width: calc(33.333% - 9.333px);
  }
}

@media (min-width: 1200px) {
  .manga_list-sbs .item {
    width: calc(25% - 10.5px);
  }
}

.manga-poster {
  display: block;
  text-decoration: none;
  padding: 12px;
}

.manga-poster-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.manga-detail {
  padding: 0 12px 14px;
}

.manga-name {
  margin: 8px 0;
  font-size: 16px;
  line-height: 1.25;
}

.manga-name a {
  color: inherit;
  text-decoration: none;
}

.manga-name a:hover {
  color: #e50914;
}

/* Latest activities list */
.wv-list {
  background: rgba(28, 28, 28, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
}

.wv-activities {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wv-activities::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.wv-activities .activity {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  position: relative;
}

.activity-marker {
  flex: 0 0 40px;
  width: 40px;
  display: flex;
  justify-content: center;
}

.activity-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.activity-badge--watch {
  border-color: rgba(54, 203, 104, 0.65);
  background: rgba(54, 203, 104, 0.18);
  color: #36cb68;
}

.activity-badge--comment,
.activity-badge--reply {
  border-color: rgba(228, 95, 58, 0.7);
  background: rgba(228, 95, 58, 0.18);
  color: #e45f3a;
}

.activity-body {
  flex: 1;
  min-width: 0;
}

.activity-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.activity-detail {
  font-size: 14px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.95);
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.wv-activities .activity-detail strong {
  font-weight: 650;
}

.wv-activities .highlight-text {
  color: #36cb68;
  text-decoration: none;
}

.wv-activities .highlight-text:hover {
  color: #a8ffcf;
  text-decoration: underline;
}

.reply-parent {
  font-weight: 650;
  color: rgba(255, 255, 255, 0.95);
}

.wv-ul .item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.wv-ul .item + .item {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.item-poster img {
  width: 64px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

.item-inner {
  flex: 1;
  min-width: 0;
}

.wv-ul .time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.wv-ul .subject {
  font-size: 14px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.95);
  word-break: break-word;
}

.wv-ul .highlight-text {
  color: #e50914;
  text-decoration: none;
}

.wv-ul .highlight-text:hover {
  text-decoration: underline;
}

.wv-ul {
  margin: 0;
  padding: 0;
}

.wv-title .name {
  font-weight: 700;
}

@media (max-width: 490px) {
  .wv-activities::before {
    left: 14px;
  }

  .activity-marker {
    flex-basis: 34px;
    width: 34px;
  }

  .activity-badge {
    width: 26px;
    height: 26px;
  }
}

/* Not public message */
.notpublic {
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 12px;
}

/* Public user bookmarks: theme uses <section><div class="head with-tabs">â€¦</div><div class="body">â€¦</div> */
/* Links inside .text-tabs (home uses <span class="tab">); anchors need same feel + wrap on narrow screens */
.public-user-bookmarks .head.with-tabs .end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 12px;
  row-gap: 8px;
}

.public-user-bookmarks .public-wl-text-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  max-width: 100%;
}

.public-user-bookmarks .public-wl-text-tabs a.tab {
  text-decoration: none;
  cursor: pointer;
}

.public-user-bookmarks .public-wl-text-tabs a.tab:hover {
  text-decoration: none;
}

.public-user-bookmarks .wl-sort-inline {
  flex: 0 0 auto;
}

.public-user-bookmarks .wl-sort-inline .bhsi-name {
  white-space: nowrap;
}

@media (max-width: 767px) {
  .public-user-bookmarks .head.with-tabs {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .public-user-bookmarks .head.with-tabs .end {
    width: 100%;
    justify-content: flex-start;
  }

  .public-user-bookmarks .public-wl-text-tabs {
    width: 100%;
  }
}

/* Public profile: watching list must stay visible on phones (theme often hides .sidebar < lg) */
.profile-container .aside-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
}

.profile-container .aside-wrapper > aside.main,
.profile-container .aside-wrapper > aside.sidebar {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  flex: 1 1 100%;
}

@media (min-width: 992px) {
  .profile-container .aside-wrapper {
    flex-wrap: nowrap;
    gap: 1.5rem;
  }

  .profile-container .aside-wrapper > aside.main {
    flex: 1 1 0;
    min-width: 0;
    order: 1;
  }

  .profile-container .aside-wrapper > aside.sidebar {
    flex: 0 0 320px;
    width: 320px !important;
    max-width: 320px !important;
    order: 2;
  }
}

@media (max-width: 991px) {
  /* DOM order: main (activities) first, sidebar (watching list) below â€” do not use flex order to swap */
  .profile-container .aside-wrapper .w-side-section .scaff.side.items.md .item .inner {
    flex-direction: row;
    align-items: flex-start;
  }
}

