/* NEW (platform expansion): Explore published projects */

.ex-page {
  padding: 40px 0 80px;
  min-height: 60vh;
}

.ex-page--app {
  padding: 0 0 40px;
  min-height: 0;
}

.ex-page--app .ex-intro {
  margin: 0 0 20px;
}

.ex-page--app .pp-filters {
  margin-bottom: 24px;
}

.ex-track-filters {
  margin-top: -12px;
  margin-bottom: 24px;
  align-items: center;
}

.ex-filter-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #5c6b7a);
  margin-right: 4px;
  flex-shrink: 0;
}

.ex-page--app .section-heading {
  font-size: 16px;
  margin: 0 0 12px;
}

.ex-featured {
  margin: 0 0 36px;
  padding: 24px 20px 28px;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(201, 168, 76, 0.14) 0%, rgba(10, 22, 40, 0.04) 55%, rgba(255, 255, 255, 0.6) 100%);
  border: 1px solid rgba(201, 168, 76, 0.35);
  box-shadow: 0 8px 32px rgba(10, 22, 40, 0.06);
}

.ex-featured-head {
  margin-bottom: 20px;
  text-align: left;
}

.ex-featured-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy, #0a1628);
  background: rgba(201, 168, 76, 0.35);
  border: 1px solid rgba(201, 168, 76, 0.5);
}

.ex-featured-title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  color: var(--navy, #0a1628);
  letter-spacing: -0.02em;
}

.ex-featured-lead {
  margin: 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.ex-featured-empty {
  margin: 0;
  padding: 20px 0 8px;
  font-size: 14px;
}

.ex-all {
  margin-top: 32px;
}

.ex-empty-note {
  margin: 12px 0 0;
  font-size: 14px;
}

.ex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 16px;
  align-items: stretch;
}

.ex-grid--featured {
  margin-top: 0;
}

.ex-card--featured {
  border: 2px solid rgba(201, 168, 76, 0.55);
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.15);
}

.ex-card-featured-mark {
  position: absolute;
  bottom: 8px;
  left: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transform: translateX(-50%);
  pointer-events: none;
}

.ex-card-featured-star {
  line-height: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.ex-card-featured-star svg {
  display: block;
  width: 14px;
  height: 14px;
}

.ex-card-featured-badge {
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a1628;
  background: linear-gradient(135deg, #e8d5a0, #c9a84c);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.ex-all-heading {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy, #0a1628);
}

.ex-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

.ex-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ex-card-body-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 6px;
}

.ex-card-body-top .pp-card-cat {
  min-width: 0;
  line-height: 1.3;
}

.ex-card-public-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 76, 0.55);
  background: rgba(201, 168, 76, 0.16);
  color: #8a6a1f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}

.ex-card-public-link:hover,
.ex-card-public-link:focus {
  background: #c9a84c;
  border-color: #c9a84c;
  color: #0a1628;
}

.ex-card--featured .ex-card-public-link {
  padding: 5px 12px;
  font-size: 11px;
}

.ex-card-cover {
  position: relative;
  height: 140px;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1628, #c9a84c);
  background-size: cover;
  background-position: center;
}

.ex-card-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.ex-card-cover.ex-cover-photo,
.ex-card-cover.mp-cover-photo {
  background-size: cover;
  background-position: center;
}

.ex-card-cover.ex-cover-photo::after,
.ex-card-cover.mp-cover-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.15) 0%, rgba(10, 22, 40, 0.55) 100%);
  pointer-events: none;
  z-index: 1;
}

.ex-card-cover-aside {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 42%;
}

.ex-card-owner-photo {
  line-height: 0;
  flex-shrink: 0;
  display: block;
  border-radius: 50%;
}

a.ex-card-owner-photo {
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.85);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.ex-card-owner-photo:hover,
a.ex-card-owner-photo:focus {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px #c9a84c;
}

.ex-card-track-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(10, 22, 40, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.ex-card-join-badge {
  position: static;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0a1628;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(201, 168, 76, 0.6);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.ex-cover-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ex-cover-navy-gold { background: linear-gradient(135deg, #0a1628, #c9a84c); }
.ex-cover-science { background: linear-gradient(135deg, #1a5c4a, #7ec8a8); }
.ex-cover-tech { background: linear-gradient(135deg, #1a3a6b, #5b9bd5); }
.ex-cover-creative { background: linear-gradient(135deg, #5c2a6b, #e8a0d0); }
.ex-cover-business { background: linear-gradient(135deg, #4a3a1a, #d4a84c); }

.ex-card-desc {
  font-size: 14px;
  line-height: 1.5;
  margin: 8px 0 12px;
  min-height: 3em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ex-card-tagline {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy, #0a1628);
  line-height: 1.35;
}

.ex-card-meta-wrap {
  flex: 1;
  min-height: 36px;
  margin-bottom: 14px;
}

.ex-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}


.ex-card-student.ex-portfolio-trigger {
  border: none;
  background: rgba(10, 22, 40, 0.05);
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.ex-card-student.ex-portfolio-trigger:hover {
  background: rgba(201, 168, 76, 0.2);
  border-color: rgba(201, 168, 76, 0.45);
}

a.ex-card-student--public {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.14);
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

a.ex-card-student--public:hover,
a.ex-card-student--public:focus {
  background: rgba(201, 168, 76, 0.28);
}

.ex-portfolio-popover {
  position: absolute;
  z-index: 1200;
  width: min(300px, calc(100vw - 24px));
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(10, 22, 40, 0.18);
}

.ex-portfolio-popover--denied {
  border-color: rgba(10, 22, 40, 0.2);
  background: #f8f9fc;
}

.ex-portfolio-popover-denied-msg {
  margin: 8px 28px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--navy);
}

.ex-portfolio-popover-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.ex-portfolio-popover-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding-right: 20px;
}

.ex-portfolio-popover-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ex-portfolio-popover-avatar--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 22, 40, 0.08);
  font-size: 22px;
}

.ex-portfolio-popover-identity {
  flex: 1;
  min-width: 0;
}

.ex-portfolio-popover-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ex-portfolio-popover-name {
  color: var(--navy);
}

.ex-portfolio-popover-coins {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid rgba(201, 168, 76, 0.45);
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
  line-height: 1.3;
}

.ex-portfolio-popover-coins .ex-coin-icon {
  font-size: 14px;
  line-height: 1;
}

.ex-portfolio-popover-school-note {
  margin: -4px 0 10px;
  font-size: 12px;
  line-height: 1.4;
}

.ex-portfolio-popover-year {
  margin: 2px 0 0;
  font-size: 13px;
}

.ex-portfolio-popover-hobbies {
  font-size: 13px;
  margin: 0 0 12px;
  line-height: 1.45;
}

.ex-portfolio-popover-label {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy-light);
}

.ex-portfolio-popover-projects {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.45;
}

.ex-card-student,
.ex-card-year,
.ex-card-reactions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 22, 40, 0.05);
  border: 1px solid rgba(10, 22, 40, 0.08);
  font-weight: 500;
  color: var(--navy-light);
}

.ex-card-reactions {
  background: rgba(201, 168, 76, 0.12);
  border-color: rgba(201, 168, 76, 0.35);
  color: var(--navy);
}

.ex-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.ex-clap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 8px 12px;
  border: 2px solid #c9a84c;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
  box-sizing: border-box;
}

.ex-clap-btn:hover:not(:disabled) {
  background: #fffbeb;
  transform: scale(1.02);
}

.ex-clap-btn.is-clapped,
.ex-clap-btn:disabled {
  opacity: 0.72;
  cursor: default;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.ex-clap-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(26, 58, 107, 0.08);
  font-size: 12px;
  font-weight: 700;
}

.ex-card-clap-btn {
  flex: 0 0 auto;
  min-height: 40px;
}

.ex-gift-coins-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid rgba(201, 168, 76, 0.55);
  border-radius: 50%;
  background: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.ex-gift-coins-btn:hover:not(:disabled) {
  background: #fffbeb;
  transform: scale(1.05);
}

.ex-gift-coins-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ex-follow-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 10px;
  border: 2px solid rgba(120, 130, 150, 0.45);
  border-radius: 50%;
  background: #f1f5f9;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}

.ex-follow-btn:hover:not(:disabled) {
  transform: scale(1.05);
  border-color: rgba(201, 168, 76, 0.6);
}

.ex-follow-btn--active {
  border-color: #b8860b;
  background: linear-gradient(135deg, #f5e6b8, #e8c547, #b8860b);
  color: #3d2e00;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.35);
}

.ex-follow-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ex-card-followers {
  font-size: 11px;
  color: var(--muted);
}

.ex-follow-confetti {
  position: fixed;
  z-index: 3000;
  pointer-events: none;
  font-size: 14px;
  font-weight: 800;
  color: #b8860b;
  animation: ex-follow-pop 0.85s ease-out forwards;
}

.ex-follow-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3001;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5e6b8, #e8c547);
  color: #3d2e00;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.2);
}

@keyframes ex-follow-pop {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-40px) scale(1.2); }
}

.ex-portfolio-follow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  flex-wrap: wrap;
}

.ex-portfolio-follow-btn {
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid rgba(120, 130, 150, 0.45);
  background: #f1f5f9;
  color: #64748b;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.ex-portfolio-follow-btn.ex-follow-btn--active {
  border-color: #b8860b;
  background: linear-gradient(135deg, #f5e6b8, #e8c547);
  color: #3d2e00;
}

.ex-coin-gift-pop {
  position: fixed;
  z-index: 2500;
  width: min(220px, calc(100vw - 24px));
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid rgba(201, 168, 76, 0.55);
  box-shadow: 0 12px 36px rgba(10, 22, 40, 0.2);
  font-size: 13px;
  color: var(--navy);
}

.ex-coin-gift-pop-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
}

.ex-coin-gift-pop-meta {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.ex-coin-gift-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.ex-coin-gift-minus,
.ex-coin-gift-plus {
  width: 36px;
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  color: var(--navy);
}

.ex-coin-gift-minus:hover,
.ex-coin-gift-plus:hover {
  background: #fffbeb;
  border-color: #c9a84c;
}

.ex-coin-gift-amount {
  width: 52px;
  padding: 8px 4px;
  border: 2px solid #c9a84c;
  border-radius: 10px;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  color: var(--navy);
  -moz-appearance: textfield;
}

.ex-coin-gift-amount::-webkit-outer-spin-button,
.ex-coin-gift-amount::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ex-coin-gift-actions {
  display: flex;
  gap: 8px;
}

.ex-coin-gift-cancel,
.ex-coin-gift-send {
  flex: 1;
  padding: 9px 10px;
  border-radius: 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ex-coin-gift-cancel {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--navy);
}

.ex-coin-gift-send {
  border: none;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--gold-light);
}

.ex-coin-gift-send:disabled {
  opacity: 0.6;
  cursor: wait;
}

.ex-coin-gift-err {
  margin: 8px 0 0;
  font-size: 11px;
  color: #b91c1c;
  line-height: 1.35;
}

.ex-card-actions .pp-card-btn.ex-card-btn {
  flex: 1 1 140px;
  width: auto;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ex-coin-burst {
  position: fixed;
  z-index: 3000;
  pointer-events: none;
  font-size: 20px;
  animation: exCoinBurst 0.85s ease forwards;
}

@keyframes exCoinBurst {
  0% { opacity: 1; transform: translateY(0) scale(0.6); }
  100% { opacity: 0; transform: translateY(-42px) scale(1.1); }
}

.ex-card-clap-static {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  padding: 8px 10px;
  background: rgba(201, 168, 76, 0.1);
  border-radius: 999px;
}

.ex-empty {
  text-align: center;
  padding: 48px 20px;
  border: 1px dashed var(--border);
  border-radius: 12px;
}

@media (max-width: 768px) {
  .ex-page .ex-grid,
  .ex-page .ex-grid--featured {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ex-page--app {
    padding-bottom: 28px;
  }

  .ex-card-cover {
    height: 160px;
  }

  .ex-card-cover-aside {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    max-width: none;
    right: 10px;
  }

  .ex-card-cover-aside .user-avatar--cover {
    width: 42px;
    height: 42px;
  }

  .ex-card-body .pp-card-body,
  .ex-card-body {
    padding: 14px 16px 16px;
  }
}

@media (max-width: 600px) {
  .ex-featured {
    padding: 18px 14px 22px;
    margin-bottom: 28px;
  }

  .ex-featured-title {
    font-size: 1.25rem;
  }
}
