/* ============================================================
   PORTFOLIO.CSS
   Work Samples, Case Studies, Testimonials, Media Kit,
   Public Portfolio builder and preview.
   Depends on: main.css (tokens), resources.css (tabs, modal)
   ============================================================ */


/* ——————————————————————————————————————————————————————————
   WORK SAMPLE CARDS
   —————————————————————————————————————————————————————————— */

.port-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(284px, 1fr));
  gap: 16px;
}

.port-ws-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.port-ws-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* Thumbnail placeholder */
.port-ws-thumb {
  width: 100%;
  height: 148px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.port-ws-thumb-icon {
  opacity: 0.35;
}
.port-ws-thumb-icon svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

/* Content-type thumb color variants */
.port-thumb-video  { background: linear-gradient(135deg, #e4c4c4 0%, #d9b4b4 100%); }
.port-thumb-reel   { background: linear-gradient(135deg, #d8ceec 0%, #c8b8e8 100%); }
.port-thumb-photo  { background: linear-gradient(135deg, #cfdece 0%, #b8d0b8 100%); }
.port-thumb-other  { background: linear-gradient(135deg, #e8ddd4 0%, #d8c8bc 100%); }

/* Status pill overlaid on thumb */
.port-ws-status {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
}

/* Favorite button on thumb */
.port-fav-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  background: rgba(255,255,255,0.82);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.15s, background 0.15s;
  line-height: 1;
}
.port-fav-btn:hover { color: var(--rose); background: rgba(255,255,255,0.96); }
.port-fav-btn.favorited { color: var(--rose); }

/* Card body */
.port-ws-body {
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.port-ws-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
}

.port-ws-brand {
  font-size: 11.5px;
  color: var(--text-muted);
}

.port-ws-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.port-pill {
  font-size: 10px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--bg-panel);
  color: var(--text-secondary);
  border: 1px solid rgba(231,207,207,0.3);
  white-space: nowrap;
}

.port-ws-notes {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.45;
  min-height: 16px;
}

.port-ws-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.045);
  margin-top: auto;
}

/* Status pill colour variants */
.port-status-published { background: rgba(223,230,218,0.6);  color: #4d6b48; }
.port-status-draft     { background: rgba(156,151,147,0.12); color: var(--text-muted); }
.port-status-in-review { background: rgba(231,222,238,0.55); color: #5a4a72; }
.port-status-pending   { background: rgba(237,216,204,0.55); color: #8a6040; }


/* ——————————————————————————————————————————————————————————
   CASE STUDY CARDS
   —————————————————————————————————————————————————————————— */

.port-cs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.port-cs-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.port-cs-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.port-cs-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.port-cs-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
  flex: 1;
}

.port-cs-brand-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(231,207,207,0.3);
  color: #8a4f4f;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.port-cs-sections {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.port-cs-section {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.port-cs-section-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.port-cs-section-val {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.port-cs-result {
  background: var(--bg-panel);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  border-left: 3px solid var(--rose);
}

.port-cs-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.045);
  margin-top: auto;
}

.port-cs-test-link {
  font-size: 11px;
  color: var(--rose);
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}
.port-cs-test-link:hover { opacity: 0.65; }


/* ——————————————————————————————————————————————————————————
   TESTIMONIAL CARDS
   —————————————————————————————————————————————————————————— */

.port-test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.port-test-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.port-test-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.port-test-quote-mark {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 0.6;
  color: var(--blush);
  user-select: none;
  margin-bottom: 4px;
}

.port-test-quote {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.65;
  flex: 1;
}

.port-test-attr {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.port-test-brand {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.port-test-contact {
  font-size: 11px;
  color: var(--text-muted);
}

.port-test-project {
  font-size: 10.5px;
  color: var(--text-muted);
  font-style: italic;
  padding: 6px 10px;
  background: var(--bg-panel);
  border-radius: 6px;
}

.port-test-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.045);
}

.port-perm-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}


/* ——————————————————————————————————————————————————————————
   TOGGLE SWITCH (shared — used in testimonials + public portfolio)
   —————————————————————————————————————————————————————————— */

.port-toggle {
  position: relative;
  display: inline-flex;
  width: 34px;
  height: 19px;
  flex-shrink: 0;
}
.port-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.port-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.14);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.port-toggle input:checked + .port-toggle-slider {
  background: var(--rose);
}
.port-toggle-slider::before {
  content: '';
  position: absolute;
  width: 13px;
  height: 13px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
.port-toggle input:checked + .port-toggle-slider::before {
  transform: translateX(15px);
}


/* ——————————————————————————————————————————————————————————
   MEDIA KIT
   —————————————————————————————————————————————————————————— */

.port-mk-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.port-mk-section {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
}

.port-mk-section.full-width {
  grid-column: 1 / -1;
}

.port-mk-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.port-mk-section-title {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.port-mk-content {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.port-mk-content.serif {
  font-family: var(--serif);
  font-size: 14.5px;
  font-style: italic;
  color: var(--text-primary);
}

.port-mk-empty {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.port-mk-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.port-mk-social-chip {
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 500;
  background: var(--bg-panel);
  border: 1px solid rgba(231,207,207,0.3);
  border-radius: 20px;
  padding: 4px 12px;
}


/* ——————————————————————————————————————————————————————————
   PUBLIC PORTFOLIO BUILDER
   —————————————————————————————————————————————————————————— */

.port-pub-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

.port-pub-controls-wrap { min-width: 0; }

.port-pub-controls-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.port-pub-controls-title {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.port-pub-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.port-pub-field-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.port-pub-divider {
  border: none;
  border-top: 1px solid rgba(231,207,207,0.28);
  margin: 2px 0;
}

.port-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.port-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.port-toggle-label {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.port-theme-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.port-theme-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.port-theme-swatch:hover { transform: scale(1.12); }
.port-theme-swatch.active {
  border-color: var(--text-primary);
  transform: scale(1.08);
}

.port-pub-save-row {
  margin-top: 4px;
}

/* Preview column */
.port-pub-preview-wrap { min-width: 0; }

.port-pub-preview-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.port-pub-preview-label::after {
  content: 'Live Preview';
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  background: rgba(231,207,207,0.3);
  color: #8a4f4f;
  border-radius: 20px;
  text-transform: none;
}

/* Preview card — simulates a public portfolio page */
.port-preview-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.port-preview-header {
  padding: 28px 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.port-preview-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
  color: #fff;
  font-weight: 500;
  margin-bottom: 4px;
}

.port-preview-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.2;
}

.port-preview-tagline {
  font-size: 12px;
  color: var(--text-muted);
}

.port-preview-intro {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 380px;
  text-align: center;
  margin: 0 auto;
}

.port-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 28px 20px;
  justify-content: center;
}

.port-preview-tag {
  font-size: 10.5px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  color: #fff;
  letter-spacing: 0.02em;
}

.port-preview-section {
  padding: 16px 28px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.port-preview-section-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.port-preview-work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.port-preview-work-thumb {
  aspect-ratio: 4/3;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  overflow: hidden;
}

.port-preview-quote {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 10px 14px;
  background: var(--bg-panel);
  border-radius: 8px;
  border-left: 3px solid;
}

.port-preview-services {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.port-preview-contact-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  cursor: default;
  letter-spacing: 0.02em;
}

.port-preview-footer {
  padding: 16px 28px 24px;
  border-top: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.port-preview-social {
  display: flex;
  gap: 10px;
}

.port-preview-social-chip {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  background: var(--bg-panel);
  border-radius: 20px;
  padding: 4px 12px;
}
