/* assets/css/fc-shop-management.css */
/* Creator management hub — semantic accordion layout. */

.fc-shop-management-page {
  margin: 0 auto;
  padding-block: 24px 40px;
}

.fc-shop-management-header {
  margin-bottom: 18px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--fanika-ui-card-border, #e5e7eb);
  border-radius: var(--fanika-ui-card-radius, 16px);
}

.fc-shop-management-creator-info {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.fc-shop-management-page .fc-shop-management-avatar {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  margin: 0 !important;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 72px;
}

.fc-shop-management-title {
  margin: 0;
  color: var(--fanika-ui-text, #1f2937);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.3;
}

.fc-shop-management-creator-name {
  height: auto;
  margin: 6px 0 0;
  color: var(--fanika-ui-text-muted, #667085);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.fc-shop-management-page .fn-url-section {
  margin-bottom: 16px;
}

.fc-shop-management-page .purimall-quick-action-box {
  margin-bottom: 18px;
}

.fc-shop-management-groups {
  display: grid;
  gap: 14px;
}

.fc-shop-management-group,
.fc-shop-management-section--entry {
  margin: 0;
  overflow: clip;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--fanika-ui-card-border, #e5e7eb);
  border-radius: var(--fanika-ui-card-radius, 16px);
}

.fc-shop-management-group-summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 14px 48px 14px 18px;
  color: var(--fanika-ui-text, #1f2937);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.fc-shop-management-group-summary::-webkit-details-marker {
  display: none;
}

.fc-shop-management-group-summary::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  color: var(--fanika-ui-accent, #ec4899);
  font-size: 1.25rem;
  line-height: 24px;
  text-align: center;
}

.fc-shop-management-group[open] > .fc-shop-management-group-summary::after {
  content: '−';
}

.fc-shop-management-group-summary:hover,
.fc-shop-management-group-summary:focus-visible {
  background: #f8fbff;
  outline: none;
}

.fc-shop-management-group-summary-hint {
  color: var(--fanika-ui-text-muted, #667085);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.fc-shop-management-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--fanika-ui-card-border, #e5e7eb);
  border-top: 1px solid var(--fanika-ui-card-border, #e5e7eb);
}

.fc-shop-management-link {
  position: relative;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: center;
  min-height: 52px;
  padding: 12px 38px 12px 16px;
  background: #fff;
  color: var(--fanika-ui-text, #1f2937);
  text-decoration: none !important;
}

.fc-shop-management-link::before {
  content: '';
  grid-row: 1 / span 2;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--fanika-ui-accent, #ec4899);
  flex: 0 0 8px;
}

.fc-shop-management-link::after {
  content: '›';
  position: absolute;
  right: 16px;
  color: #98a2b3;
  font-size: 1.25rem;
}

.fc-shop-management-link:hover,
.fc-shop-management-link:focus-visible {
  background: #f8fbff;
  color: var(--fanika-ui-accent, #ec4899);
  outline: none;
}

.fc-shop-management-link-title {
  min-width: 0;
  font-size: 0.93rem;
  font-weight: 800;
  line-height: 1.35;
}

.fc-shop-management-link-description {
  min-width: 0;
  margin-top: 2px;
  color: var(--fanika-ui-text-muted, #667085);
  font-size: 0.73rem;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.fc-shop-management-link--disabled {
  background: #f8fafc;
  color: #667085;
}

.fc-shop-management-link--disabled::before {
  background: #cbd5e1;
}

.fc-shop-management-link--disabled::after {
  content: none;
}

.fc-shop-management-section-title {
  margin: 0;
  padding: 16px 18px 0;
  font-size: 1rem;
}

.fc-shop-management-fc-entry-wrapper {
  padding: 18px;
  text-align: left;
}

.fc-shop-management-fc-entry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 20px;
  background: var(--fanika-ui-accent, #ec4899);
  border-radius: 9999px;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
}

.fc-shop-management-fc-entry-btn:hover,
.fc-shop-management-fc-entry-btn:focus-visible {
  opacity: 0.88;
  color: #fff !important;
  text-decoration: none !important;
}

@media (max-width: 768px) {
  .fc-shop-management-page {
    padding-block: 14px 28px;
  }

  .fc-shop-management-header {
    padding: 14px;
  }

  .fc-shop-management-page .fc-shop-management-avatar {
    width: 58px !important;
    height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
    flex-basis: 58px;
  }

  .fc-shop-management-title {
    font-size: 1.18rem;
  }

  .fc-shop-management-creator-name {
    margin-top: 4px;
    font-size: 0.86rem;
  }

  .fc-shop-management-group-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    min-height: 58px;
    padding: 12px 44px 12px 14px;
  }

  .fc-shop-management-group-summary-hint {
    overflow: hidden;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fc-shop-management-links {
    grid-template-columns: 1fr;
  }

  .fc-shop-management-link {
    min-height: 48px;
    padding: 11px 36px 11px 14px;
  }
}

/* 2026-09 Creator management visual baseline.
   Presentation follows the approved mock; existing permission and data rules stay in PHP. */
body.fanika-creator-management {
  background: var(--fanika-ui-page-background, #edf7fe);
}

/* Only the Creator management TOP may make content wrappers transparent.
   Child management pages keep the Foundation canvas. */
body.fanika-creator-management:has(.fc-shop-management-groups) .site-content,
body.fanika-creator-management:has(.fc-shop-management-groups) .entry-content {
  background: transparent;
}

body.fanika-creator-management .fc-shop-management-page {
  box-sizing: border-box;
  width: var(--fanika-ui-management-width);
  padding-block: 16px 92px;
}

body.fanika-creator-management .fc-shop-management-header {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-color: #e5ebf2;
  box-shadow: 0 7px 22px rgba(50, 78, 108, 0.055);
}

body.fanika-creator-management .fc-shop-management-page .fn-url-section,
body.fanika-creator-management .fc-shop-management-page .purimall-quick-action-box {
  margin-bottom: 14px;
  border: 1px solid #e5ebf2;
  border-radius: 16px;
  background: var(--fanika-ui-surface, #fff);
  box-shadow: 0 7px 22px rgba(50, 78, 108, 0.04);
}

.fc-shop-management-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.fc-shop-management-summary-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon value"
    "icon note";
  align-items: center;
  gap: 2px 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e5ebf2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(50, 78, 108, 0.045);
}

.fc-shop-management-summary-icon {
  grid-area: icon;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #fff0f7;
  color: #e9519a;
  font-size: 1rem;
}

.fc-shop-management-summary-label {
  grid-area: label;
  min-width: 0;
  color: #667085;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
}

.fc-shop-management-summary-value {
  grid-area: value;
  min-width: 0;
  color: #263449;
  font-size: 1.2rem;
  line-height: 1.2;
}

.fc-shop-management-summary-card small {
  grid-area: note;
  color: #98a2b3;
  font-size: 0.62rem;
  line-height: 1.3;
}

body.fanika-creator-management .fc-shop-management-groups {
  gap: 12px;
}

body.fanika-creator-management .fc-shop-management-group,
body.fanika-creator-management .fc-shop-management-section--entry {
  border-color: #e5ebf2;
  background: var(--fanika-ui-surface, #fff);
  box-shadow: 0 7px 22px rgba(50, 78, 108, 0.045);
}

body.fanika-creator-management .fc-shop-management-group-summary {
  min-height: 58px;
  padding-block: 12px;
}

body.fanika-creator-management .fc-shop-management-links {
  border-top-color: #edf0f4;
  background: #edf0f4;
}

body.fanika-creator-management .fc-shop-management-link {
  min-height: 58px;
}

body.fanika-creator-management .fc-shop-management-link:hover,
body.fanika-creator-management .fc-shop-management-link:focus-visible {
  background: #fff8fb;
}

@media (max-width: 767px) {
  body.fanika-creator-management .fc-shop-management-page {
    width: var(--fanika-ui-management-width);
    padding-block: 10px 80px;
  }

  body.fanika-creator-management .fc-shop-management-header {
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 14px;
  }

  body.fanika-creator-management .fc-shop-management-page .fn-url-section,
  body.fanika-creator-management .fc-shop-management-page .purimall-quick-action-box {
    margin-bottom: 10px;
    border-radius: 14px;
  }

  .fc-shop-management-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
  }

  .fc-shop-management-summary-card {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 1px 8px;
    padding: 10px;
    border-radius: 12px;
  }

  .fc-shop-management-summary-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 0.82rem;
  }

  .fc-shop-management-summary-label {
    font-size: 0.62rem;
  }

  .fc-shop-management-summary-value {
    font-size: 1rem;
  }

  .fc-shop-management-summary-card small {
    font-size: 0.56rem;
  }

  body.fanika-creator-management .fc-shop-management-groups {
    gap: 10px;
  }

  body.fanika-creator-management .fc-shop-management-group,
  body.fanika-creator-management .fc-shop-management-section--entry {
    border-radius: 14px;
  }
}

@media (max-width: 359px) {
  .fc-shop-management-summary {
    grid-template-columns: 1fr;
  }
}


/* Approved Creator management mock parity: visual layer only. */
body.fanika-creator-management .fc-shop-management-header {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 22px;
  border: 0;
  background: #fff1f7;
  box-shadow: none;
}

.fc-shop-management-hero-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 18px;
  background: #fff;
  color: #ef5da2;
  font-size: 1.55rem;
}

body.fanika-creator-management .fc-shop-management-title {
  color: #334155;
  font-size: 1.36rem;
  font-weight: 800;
}

body.fanika-creator-management .fc-shop-management-creator-name {
  color: #6b7280;
  font-weight: 500;
}

body.fanika-creator-management .fc-shop-management-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  border: 1px solid #e5ebf2;
  border-radius: 16px;
  background: var(--fanika-ui-surface, #fff);
  box-shadow: 0 7px 22px rgba(50, 78, 108, 0.045);
}

.fc-shop-management-summary-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 3px;
}

.fc-shop-management-summary-heading h2 {
  margin: 0;
  color: #334155;
  font-size: 1rem;
  font-weight: 800;
}

.fc-shop-management-summary-heading p {
  margin: 0;
  color: #98a2b3;
  font-size: 0.78rem;
  font-weight: 600;
}

body.fanika-creator-management .fc-shop-management-summary-card {
  min-height: 104px;
  border-color: #edf1f5;
  box-shadow: none;
}

/* Genre colours come from the group's fanika-ui-genre--* role (Foundation). */
body.fanika-creator-management .fc-shop-management-group-summary {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 78px;
  padding: 14px 48px 14px 16px;
  background: var(--fanika-ui-genre-soft);
}

body.fanika-creator-management .fc-shop-management-group-summary::after {
  content: '⌃';
  right: 17px;
  width: 18px;
  height: 18px;
  color: #98a2b3;
  font-size: 1rem;
  font-weight: 700;
  line-height: 18px;
}

body.fanika-creator-management .fc-shop-management-group:not([open]) > .fc-shop-management-group-summary::after {
  content: '⌄';
}

.fc-shop-management-group-icon {
  display: grid;
  width: 44px;
  height: 44px;
  grid-column: 1;
  grid-row: 1 / span 2;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  color: var(--fanika-ui-genre-accent);
  font-size: 1.2rem;
}

.fc-shop-management-group-copy {
  display: grid;
  gap: 4px;
  grid-column: 2;
}

.fc-shop-management-group-copy > span:first-child {
  color: #334155;
  font-size: 1rem;
  line-height: 1.3;
}

.fc-shop-management-group-summary-hint {
  overflow: visible;
  color: #7b8798;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: normal;
}

body.fanika-creator-management .fc-shop-management-links {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-top: 0;
  background: var(--fanika-ui-surface, #fff);
}

body.fanika-creator-management .fc-shop-management-link {
  grid-template-columns: 1fr;
  grid-template-rows: 34px auto auto;
  justify-items: center;
  align-content: center;
  min-height: 112px;
  padding: 14px 10px;
  border: 1px solid #edf1f5;
  border-radius: 13px;
  color: #334155;
  text-align: center;
}

body.fanika-creator-management .fc-shop-management-link::before,
body.fanika-creator-management .fc-shop-management-link::after {
  content: none;
}

.fc-shop-management-link-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: #fff0f7;
  color: #ef5da2;
  font-size: 0.95rem;
}

.fc-shop-management-link-title {
  margin-top: 7px;
  color: #344054;
  font-size: 0.84rem;
  font-weight: 800;
}

.fc-shop-management-link-description {
  margin-top: 3px;
  color: #98a2b3;
  font-size: 0.64rem;
  line-height: 1.35;
}

@media (min-width: 900px) {
  body.fanika-creator-management .fc-shop-management-links--community,
  body.fanika-creator-management .fc-shop-management-links--crowdfunding {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  body.fanika-creator-management .fc-shop-management-links--shop {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.fanika-creator-management .fc-shop-management-links--common {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.fanika-creator-management .fc-shop-management-header {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    min-height: 96px;
    padding: 18px 16px;
    border-radius: 14px;
  }

  .fc-shop-management-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    font-size: 1.3rem;
  }

  body.fanika-creator-management .fc-shop-management-title {
    font-size: 1.12rem;
  }

  body.fanika-creator-management .fc-shop-management-creator-name {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  body.fanika-creator-management .fc-shop-management-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
  }

  .fc-shop-management-summary-heading {
    padding-bottom: 1px;
  }

  body.fanika-creator-management .fc-shop-management-summary-card {
    min-height: 86px;
    padding: 10px;
  }

  body.fanika-creator-management .fc-shop-management-group-summary {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    min-height: 72px;
    padding: 12px 40px 12px 12px;
  }

  .fc-shop-management-group-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .fc-shop-management-group-copy > span:first-child {
    font-size: 0.9rem;
  }

  .fc-shop-management-group-summary-hint {
    font-size: 0.67rem;
  }

  body.fanika-creator-management .fc-shop-management-links,
  body.fanika-creator-management .fc-shop-management-links--community,
  body.fanika-creator-management .fc-shop-management-links--shop,
  body.fanika-creator-management .fc-shop-management-links--crowdfunding,
  body.fanika-creator-management .fc-shop-management-links--common {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 8px;
  }

  body.fanika-creator-management .fc-shop-management-links--community > .fc-shop-management-link:last-child:nth-child(odd),
  body.fanika-creator-management .fc-shop-management-links--crowdfunding > .fc-shop-management-link:last-child:nth-child(odd),
  body.fanika-creator-management .fc-shop-management-links--common > .fc-shop-management-link:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  body.fanika-creator-management .fc-shop-management-link {
    min-height: 98px;
    padding: 11px 7px;
    border-radius: 12px;
  }

  .fc-shop-management-link-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 0.82rem;
  }

  .fc-shop-management-link-title {
    margin-top: 6px;
    font-size: 0.76rem;
  }

  .fc-shop-management-link-description {
    font-size: 0.57rem;
  }
}


/* Campaign is a first-class Creator domain, never a Shop action. */

@media (min-width: 900px) {
  body.fanika-creator-management .fc-shop-management-links--crowdfunding {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.fc-shop-management-links--crowdfunding .fc-shop-management-link-icon {
  background: var(--fanika-ui-genre-soft);
  color: var(--fanika-ui-genre-accent);
}




/* 2026-10-03 shared My Page typography for Creator management */
body.fanika-creator-management .fc-shop-management-title{
  font-size:clamp(1.7rem,3vw,2.2rem)!important;
  line-height:1.28!important;
}
body.fanika-creator-management .fc-shop-management-creator-name{
  font-size:.92rem!important;
  line-height:1.6!important;
}
body.fanika-creator-management .fc-shop-management-summary-heading h2,
body.fanika-creator-management .fc-shop-management-group-copy>span:first-child{
  font-size:1.06rem!important;
}
body.fanika-creator-management .fc-shop-management-group-summary-hint{
  font-size:.78rem!important;
  line-height:1.5!important;
}
body.fanika-creator-management .fc-shop-management-link-title{
  font-size:.9rem!important;
}
body.fanika-creator-management .fc-shop-management-link-description{
  font-size:.74rem!important;
  line-height:1.5!important;
}
body.fanika-creator-management .fc-shop-management-summary-label{
  font-size:.72rem!important;
}
body.fanika-creator-management .fc-shop-management-summary-value{
  font-size:1.2rem!important;
}
body.fanika-creator-management .fc-shop-management-summary-card small{
  font-size:.62rem!important;
}

@media(max-width:640px){
  body.fanika-creator-management .fc-shop-management-title{
    font-size:1.45rem!important;
  }
  body.fanika-creator-management .fc-shop-management-creator-name{
    font-size:.79rem!important;
  }
  body.fanika-creator-management .fc-shop-management-summary-heading h2,
  body.fanika-creator-management .fc-shop-management-group-copy>span:first-child{
    font-size:.98rem!important;
  }
  body.fanika-creator-management .fc-shop-management-link-title{
    font-size:.86rem!important;
  }
  body.fanika-creator-management .fc-shop-management-link-description{
    font-size:.7rem!important;
  }
}

/* Mobile accordion headers show the hint only for the expanded section. */
@media (max-width: 767px) {
  body.fanika-creator-management .fc-shop-management-group:not([open]) .fc-shop-management-group-summary-hint {
    display: none !important;
  }
  body.fanika-creator-management .fc-shop-management-group[open] .fc-shop-management-group-summary-hint {
    display: block;
  }
}


/* Creator management TOP only: cover the theme's content wrappers as well as body. */
html:has(body.fanika-creator-management .fc-shop-management-groups),
body.fanika-creator-management:has(.fc-shop-management-groups),
body.fanika-creator-management:has(.fc-shop-management-groups) .site-content,
body.fanika-creator-management:has(.fc-shop-management-groups) .site-main,
body.fanika-creator-management:has(.fc-shop-management-groups) .entry-content {
  background-color: #edf7fe;
  background-image: none;
}
/* Similar pastel intensity to the other management section headings. */
body.fanika-creator-management .fc-shop-management-group-summary--shop {
  background: #fff9e9;
}

/* Creator coupon child only: canonical canvas, header and external Back. */
body.fanika-creator-coupon-page,
body.fanika-creator-coupon-page #page,
body.fanika-creator-coupon-page #content,
body.fanika-creator-coupon-page .site-content,
body.fanika-creator-coupon-page .site-main {
  background-color:var(--fanika-ui-page-background,#edf7fe);
}
body.fanika-creator-coupon-page #page{min-height:100vh}
.fanika-creator-coupon-shell .fanika-creator-page-header--coupon.fanika-ui-genre--common {
  background:linear-gradient(90deg,#e8f8ef 0%,#fff 100%);
}
.fanika-creator-coupon-shell .fanika-coupon-overview__heading{display:none}
.fanika-creator-coupon-shell > .fanika-shared-back-navigation{margin:16px auto 96px}

/* Creator summary: unread message card is the same card style as the other metrics. */
body.fanika-creator-management a.fc-shop-management-summary-card { text-decoration:none; color:inherit; cursor:pointer; }
body.fanika-creator-management a.fc-shop-management-summary-card:hover,
body.fanika-creator-management a.fc-shop-management-summary-card:focus-visible { border-color:#e7a5c8; background:#fff9fc; }
