/* backend>static>awf>creator>css>awf_creator.css */

/* --- Fix tiny horizontal overflow --- */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent long text from overflowing (wallet/link/name, etc.) */
.cs-pill,
.cs-name {
  min-width: 0;
}

.cs-pill {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-page {
  min-height: 100vh;
  background: #0b0b12;
  color: #fff;
}

.cs-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 14px 40px;
}

/* Top back pill */
.cs-pill2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 0;
  color: #fff;
  text-decoration: none;
}

/* Hero */
.cs-hero {
  position: relative;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  min-height: 330px;
}

/* Full-card banner layer */
.cs-banner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;

  /* Default gradients (always visible) */
  background-image:
    var(--banner-url),
    radial-gradient(600px 220px at 20% 0%, rgba(125, 211, 252, 0.18), transparent 55%),
    radial-gradient(600px 220px at 85% 10%, rgba(167, 139, 250, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.35));
}

/* Overlay for readability */
.cs-hero-overlay {
  position: relative;
  z-index: 2;
  min-height: 330px;
  padding: 14px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;

  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.18));
  backdrop-filter: blur(0px);

  /* The overlay covers the full card: disable pointer events here
     so it does not block clicks on the banner. */
  pointer-events: none;
}

/* Bottom-left brand block */
.cs-brandblock {
  display: flex;
  align-items: flex-end;
  min-width: 0;
  pointer-events: auto;
}

.cs-brandblock a,
.cs-avatar,
.cs-edit-name {
  pointer-events: auto;
}

.cs-brandtop {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Avatar */
.cs-avatar {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  font-weight: 1000;
  flex: 0 0 auto;
}

.cs-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Name row */
.cs-brandtext {
  min-width: 0;
}

.cs-name {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 520px;
}

.cs-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

/* Wallet/contract pills */
.cs-ids {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.cs-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
}

.cs-pill:hover {
  filter: brightness(1.08);
}

/* Edit pencils */
.cs-edit {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
}

.cs-edit:hover {
  filter: brightness(1.12);
}

/* Banner pencil centered */
.cs-edit-banner {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: auto;
}

/* Avatar pencil centered on the logo */
.cs-edit-avatar {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* If banner has an image, show pencil only on hero hover */
.cs-banner.has-img .cs-edit-banner {
  opacity: 0;
  pointer-events: none;
}

.cs-hero:hover .cs-banner.has-img .cs-edit-banner {
  opacity: 1;
  pointer-events: auto;
}

/* Show avatar pencil only on hover when avatar has image */
.cs-avatar.has-img .cs-edit-avatar {
  opacity: 0;
  pointer-events: none;
}

.cs-avatar.has-img:hover .cs-edit-avatar {
  opacity: 1;
  pointer-events: auto;
}

/* Name pencil appears only on hover of name row */
.cs-edit-name {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
}

.cs-name-row:hover .cs-edit-name {
  opacity: 1;
  pointer-events: auto;
}

.cs-edit-name:hover {
  filter: brightness(1.12);
}

/* Bottom-right socials */
.cs-socialwrap {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.cs-socialwrap a,
.cs-socialwrap button {
  pointer-events: auto;
}

/* Social pencil: visible only on wrap hover */
.cs-edit-links {
  position: static;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
}

.cs-socialwrap:hover .cs-edit-links {
  opacity: 1;
  pointer-events: auto;
}

/* Keep social edit pencil visible while editing */
.cs-socialwrap.is-open .cs-edit-links {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Keep banner pencil visible while editing */
.cs-hero.is-open .cs-edit-banner {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Socials always visible */
.cs-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Icons: SVG only, white, no button border */
.cs-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-decoration: none;
  opacity: 0.95;

  font-size: 0;
  line-height: 0;
}

.cs-ico:hover {
  filter: brightness(1.12);
}

.cs-svg,
.cs-ico .cs-svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

/* Disabled icon state (set by JS when link is empty) */
.cs-ico.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* NFT grid */
.cs-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1100px) {
  .cs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .cs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .cs-grid {
    grid-template-columns: 1fr;
  }

  .cs-hero-overlay {
    flex-direction: column;
    align-items: flex-start;
  }

  .cs-socialwrap {
    align-self: flex-end;
  }

  .cs-name {
    max-width: 320px;
    font-size: 18px;
  }

  .cs-avatar {
    width: 56px;
    height: 56px;
  }

  .cs-pill {
    padding: 5px 8px;
    font-size: 11px;
  }
}

/* NFT card */
.cs-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  cursor: pointer;
}

.cs-thumb {
  position: relative;
  height: 250px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-thumb-ph {
  opacity: 0.85;
  font-weight: 900;
}

.cs-body {
  padding: 12px;
}

.cs-title {
  font-weight: 900;
  line-height: 1.2;
}

.cs-empty {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.cs-empty a {
  color: #7dd3fc;
  text-decoration: none;
}

/* Burned state */
.cs-burned-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 1000;
  font-size: 12px;
  border: 1px solid rgba(251, 113, 133, 0.35);
  background: rgba(251, 113, 133, 0.14);
  color: #fff;
}

.cs-thumb.is-burned img {
  filter: grayscale(1) contrast(1.05) brightness(0.85);
  opacity: 0.85;
}

.cs-card-disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

.cs-card-disabled:hover {
  transform: none !important;
}

.cs-awf-home {
  position: fixed;
  top: 20px;
  right: 160px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0 solid rgba(255, 255, 255, 0.14);
  background: transparent;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  text-decoration: none;
}

.cs-awf-home:hover {
  filter: brightness(1.08);
}