/* MyPortfolioHub v23 — polished template showcase catalog.
   Presentation-only layer: filtering, preview and start routes remain unchanged. */

.v23-showcase-ready{
  --v23-ink:#102a2a;
  --v23-muted:#627471;
  --v23-border:#d7e4e1;
  --v23-border-strong:#c4d8d3;
  --v23-surface:#ffffff;
  --v23-soft:#f4f8f7;
  --v23-soft-green:#eef9f5;
  --v23-primary:#078a66;
  --v23-primary-dark:#046c52;
  --v23-deep:#063f3a;
}

/* Phase 1 — catalog shell and card structure */
.v23-showcase-ready .v7-template-content{max-width:1260px}
.v23-showcase-ready .v15-template-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  align-items:stretch;
}
.v23-showcase-ready .v15-template-card{
  display:flex;
  min-width:0;
  min-height:348px;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--v23-border);
  border-radius:17px;
  background:var(--v23-surface);
  box-shadow:0 8px 24px rgba(17,52,48,.045);
  content-visibility:auto;
  contain-intrinsic-size:380px;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.v23-showcase-ready .v15-template-card:hover{
  transform:translateY(-2px);
  border-color:#bdd7d0;
  box-shadow:0 16px 34px rgba(17,52,48,.09);
}
.v23-card-flags{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:44px;
  padding:11px 13px 4px;
}
.v23-category-badge{
  display:inline-flex;
  align-items:center;
  width:max-content;
  min-height:22px;
  padding:0 8px;
  border-radius:6px;
  background:var(--v23-deep);
  color:#fff;
  font-size:8px;
  font-weight:900;
  line-height:1;
  letter-spacing:.055em;
  text-transform:uppercase;
}
.v23-showcase-ready .v23-card-flags .v15-ats-badge{
  position:static;
  inset:auto;
  padding:6px 8px;
  box-shadow:none;
  font-size:8px;
}
.v23-card-body{
  display:grid;
  grid-template-columns:minmax(118px,.42fr) minmax(0,.58fr);
  gap:15px;
  align-items:start;
  padding:7px 13px 12px;
}

/* Phase 2 — larger, realistic resume paper previews */
.v23-showcase-ready .v15-template-preview.v23-template-preview{
  position:relative;
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:400/520;
  overflow:hidden;
  border:1px solid #d8e3e0;
  border-radius:10px;
  background:linear-gradient(180deg,#f5f9f8 0%,#edf4f2 100%);
  text-decoration:none;
  box-shadow:0 8px 18px rgba(22,48,44,.08);
}
.v23-showcase-ready .v15-template-preview.v23-template-preview img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  background:#f3f7f6;
  transform:none;
  transition:transform .2s ease,filter .2s ease;
}
.v23-showcase-ready .v15-template-card:hover .v23-template-preview img,
.v23-showcase-ready .v23-template-preview:focus-visible img{
  transform:scale(1.018);
  filter:saturate(1.02) contrast(1.015);
}
.v23-showcase-ready .v23-template-preview .v15-preview-action{
  bottom:10px;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:8px;
  background:rgba(3,63,58,.94);
  box-shadow:0 7px 18px rgba(3,47,45,.2);
  font-size:9px;
}

/* Phase 3–5 — badges, typography and metadata hierarchy */
.v23-showcase-ready .v7-template-info.v23-template-info{
  display:flex;
  min-width:0;
  height:100%;
  flex-direction:column;
  padding:1px 0 0;
}
.v23-showcase-ready .v7-template-title{
  display:block;
  min-width:0;
}
.v23-showcase-ready .v7-template-title>div{min-width:0}
.v23-showcase-ready .v7-template-title h2{
  margin:0;
  color:var(--v23-ink);
  font-size:17px;
  font-weight:800;
  line-height:1.12;
  letter-spacing:-.025em;
}
.v23-showcase-ready .v7-template-title p{
  display:-webkit-box;
  overflow:hidden;
  margin:7px 0 0;
  color:var(--v23-muted);
  font-size:10px;
  line-height:1.52;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
}
.v23-showcase-ready .v7-swatch{display:none}
.v23-showcase-ready .v21-company-card-line{
  display:block;
  margin:12px 0 0;
}
.v23-showcase-ready .v21-company-card-line .v21-company-badge{
  padding:6px 8px;
  border-color:#a8dfcb;
  background:#eafbf4;
  color:#057052;
  font-size:8px;
}
.v23-showcase-ready .v21-company-note{
  display:-webkit-box;
  overflow:hidden;
  margin:7px 0 0;
  color:#60736f;
  font-size:9px;
  line-height:1.45;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.v23-showcase-ready .v15-template-meta{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  margin-top:9px;
}
.v23-showcase-ready .v15-template-meta span{
  padding:4px 6px;
  border:1px solid #dce8e5;
  border-radius:6px;
  background:#f6f9f8;
  color:#526965;
  font-size:7px;
  font-weight:750;
  line-height:1.1;
}
.v23-showcase-ready .v15-role-copy{
  display:-webkit-box;
  overflow:hidden;
  margin:9px 0 0;
  color:#667975;
  font-size:8px;
  line-height:1.45;
  text-transform:none;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.v23-showcase-ready .v15-role-copy strong{color:#284b46}
.v23-showcase-ready .v15-design-warning{
  margin:8px 0 0;
  padding:7px 8px;
  border-left:2px solid #c99735;
  border-radius:0 6px 6px 0;
  background:#fffbf1;
  color:#715c2d;
  font-size:7.5px;
  line-height:1.4;
}

/* Phase 6 — balanced actions with one clear primary CTA */
.v23-showcase-ready .v15-template-actions.v23-template-actions{
  display:grid!important;
  grid-template-columns:minmax(0,.78fr) minmax(0,1.25fr)!important;
  gap:8px!important;
  margin:auto 13px 13px!important;
  padding-top:2px;
}
.v23-showcase-ready .v15-template-actions .rb-btn{
  min-height:39px;
  justify-content:center;
  border-radius:9px;
  font-size:10px;
  font-weight:800;
}
.v23-showcase-ready .v15-template-actions .rb-btn-outline{
  border-color:#b9d0ca;
  background:#fff;
  color:#155348;
}
.v23-showcase-ready .v15-template-actions .rb-btn-outline:hover{
  border-color:#87b9ad;
  background:#f4faf8;
}
.v23-showcase-ready .v15-template-actions .rb-btn-primary,
.v23-showcase-ready .v22-finder-entry>.rb-btn-primary{
  border-color:var(--v23-primary);
  background:linear-gradient(180deg,#0a966f 0%,#07845f 100%);
  color:#fff;
  box-shadow:0 7px 16px rgba(7,138,102,.17);
}
.v23-showcase-ready .v15-template-actions .rb-btn-primary:hover,
.v23-showcase-ready .v22-finder-entry>.rb-btn-primary:hover{
  border-color:var(--v23-primary-dark);
  background:linear-gradient(180deg,#078b67 0%,#056e53 100%);
}

/* Phase 7 — cleaner sticky filter surface */
.v23-showcase-ready .v15-template-controls{
  top:72px;
  gap:11px;
  margin-bottom:19px;
  padding:16px;
  border:1px solid #d5e3df;
  border-radius:17px;
  background:rgba(255,255,255,.975);
  box-shadow:0 14px 34px rgba(17,52,48,.075);
  backdrop-filter:blur(16px);
}
.v23-showcase-ready .v15-template-search-wrap{gap:18px}
.v23-showcase-ready .v15-template-search-wrap .v7-template-search-public{max-width:500px}
.v23-showcase-ready .v7-template-search-public{
  min-height:42px;
  border-color:#cfdfdb;
  border-radius:9px;
  background:#fff;
}
.v23-showcase-ready .v7-template-search-public input{font-size:11px}
.v23-showcase-ready .v7-template-safety{
  color:#49645f;
  font-size:9px;
  font-weight:750;
}
.v23-showcase-ready .v7-filter-pills{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.v23-showcase-ready .v7-filter-pills button{
  min-height:34px;
  padding:0 11px;
  border:1px solid #cfdeda;
  border-radius:8px;
  background:#fff;
  color:#3e5753;
  font-size:9px;
  font-weight:800;
  transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease;
}
.v23-showcase-ready .v7-filter-pills button:hover{
  border-color:#9fc9bf;
  background:#f5faf8;
  color:#155649;
}
.v23-showcase-ready .v7-filter-pills button.active,
.v23-showcase-ready .v7-filter-pills button[aria-pressed="true"]{
  border-color:#077b5e;
  background:#077b5e;
  color:#fff;
  box-shadow:0 5px 13px rgba(7,123,94,.14);
}
.v23-showcase-ready .v7-filter-pills button span{opacity:.8}
.v23-showcase-ready .v15-template-selects{gap:11px}
.v23-showcase-ready .v15-template-selects label>span{
  color:#58706b;
  font-size:9px;
  letter-spacing:.075em;
}
.v23-showcase-ready .v15-template-selects select{
  min-height:43px;
  border-color:#ccdeda;
  border-radius:9px;
  background:#fff;
  color:#1e3834;
  font-size:11px;
}
.v23-showcase-ready .v15-template-results-head{
  margin:9px 0 15px;
  padding:0 1px;
  color:#617571;
  font-size:10px;
}
.v23-showcase-ready .v15-template-results-head strong{font-size:21px;color:#112f2c}

/* Finder panel harmony */
.v23-showcase-ready .v22-finder-entry{
  border-color:#badfd5;
  border-radius:17px;
  background:linear-gradient(135deg,#effaf6 0%,#f8fcfb 100%);
  box-shadow:none;
}
.v23-showcase-ready .v22-finder-entry-icon{background:#08735c}

/* Phase 8 — responsive catalog */
@media(max-width:1180px){
  .v23-showcase-ready .v15-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .v23-card-body{grid-template-columns:minmax(135px,.42fr) minmax(0,.58fr)}
}
@media(max-width:820px){
  .v23-showcase-ready .v15-template-controls{position:static}
  .v23-showcase-ready .v15-template-selects{grid-template-columns:1fr}
  .v23-showcase-ready .v15-template-search-wrap{align-items:stretch;flex-direction:column}
  .v23-showcase-ready .v15-template-search-wrap .v7-template-search-public{max-width:none}
  .v23-showcase-ready .v15-template-results-head{align-items:flex-start;flex-direction:column}
  .v23-showcase-ready .v15-template-grid{grid-template-columns:1fr}
  .v23-card-body{grid-template-columns:minmax(145px,.38fr) minmax(0,.62fr)}
}
@media(max-width:560px){
  .v23-card-flags{padding:10px 11px 3px}
  .v23-card-body{grid-template-columns:1fr;padding:7px 11px 12px}
  .v23-showcase-ready .v23-template-preview{width:min(100%,285px);margin:0 auto}
  .v23-showcase-ready .v7-template-title h2{font-size:19px}
  .v23-showcase-ready .v7-template-title p{font-size:11px}
  .v23-showcase-ready .v21-company-note{font-size:10px}
  .v23-showcase-ready .v15-template-actions.v23-template-actions{margin:2px 11px 11px!important}
}
@media(max-width:390px){
  .v23-showcase-ready .v15-template-actions.v23-template-actions{grid-template-columns:1fr!important}
  .v23-showcase-ready .v7-filter-pills{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Phase 9 — keyboard and reduced-motion accessibility */
.v23-showcase-ready :is(.v23-template-preview,.v15-template-actions .rb-btn,.v7-filter-pills button,.v15-template-selects select,.v7-template-search-public input):focus-visible{
  outline:3px solid rgba(16,185,129,.28);
  outline-offset:2px;
}
@media(prefers-reduced-motion:reduce){
  .v23-showcase-ready .v15-template-card,
  .v23-showcase-ready .v23-template-preview img,
  .v23-showcase-ready .v7-filter-pills button{transition:none}
  .v23-showcase-ready .v15-template-card:hover{transform:none}
}
