/* Platform Yazılım Portfolio v1.5.2: responsive cards with standard screenshot previews. */
.py-portfolio-grid,
.py-project-cards.py-portfolio-grid,
.py-detail-project-grid.py-portfolio-grid {
  display:grid!important;
  grid-template-columns:repeat(var(--py-portfolio-columns,3),minmax(0,1fr))!important;
  gap:22px;
  align-items:stretch;
}
.py-project-layout {grid-template-columns:minmax(0,1fr);gap:26px}
.py-project-intro{max-width:none;display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap}
.py-project-intro h2{max-width:640px;margin:0 0 11px}
.py-project-intro>p{max-width:580px;margin:0}
.py-projects{padding:58px 0 65px}
.py-projects .py-project-cards{gap:22px}
.py-portfolio-card.py-detail-project-card{
  display:flex!important;flex-direction:column!important;grid-column:auto!important;
  min-width:0;min-height:0;overflow:hidden;background:#fff;border:1px solid #dde7f3;
  border-radius:16px;box-shadow:0 12px 36px rgba(17,56,109,.065);
  transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease;
}
.py-portfolio-card.py-detail-project-card:hover{transform:translateY(-4px);box-shadow:0 20px 48px rgba(14,52,105,.13);border-color:#c2d8f3}
.py-portfolio-shot{padding:12px 12px 0;background:#f1f6fc;min-width:0}
.py-portfolio-browser{width:100%;min-width:0;overflow:hidden;border:1px solid #dce7f3;border-radius:10px 10px 0 0;background:#fff}
.py-portfolio-toolbar{height:32px;display:flex;align-items:center;gap:8px;padding:0 10px;background:#fff;border-bottom:1px solid #e6eef8;min-width:0}
.py-portfolio-dots{display:flex;gap:4px;flex:none;align-items:center}
.py-portfolio-dots i{display:block;width:7px;height:7px;background:#fb7474;border-radius:50%}
.py-portfolio-dots i:nth-child(2){background:#ffbf55}
.py-portfolio-dots i:nth-child(3){background:#56cc93}
.py-portfolio-address{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1;text-align:center;color:#6c7c94;font-size:10px;font-weight:600;letter-spacing:0}
.py-portfolio-open{flex:none;display:grid;place-items:center;width:24px;height:24px;color:#2374d4;border-radius:6px}
.py-portfolio-open:hover{background:#e8f2ff}
.py-portfolio-open.is-disabled{color:#acb9ca}
/* Standard screenshot stays still; top of the page is always visible. */
.py-portfolio-image,.py-portfolio-detail-preview{
  display:block;position:relative;overflow:hidden;isolation:isolate;
  aspect-ratio:16/10;background:#e9f0f8;
}
.py-portfolio-image-src,.py-portfolio-detail-preview>img{
  position:absolute!important;inset:0!important;display:block!important;
  width:100%!important;height:100%!important;max-width:100%!important;
  max-height:100%!important;object-fit:cover!important;
  object-position:center top!important;transform:none!important;
  transition:none!important;
}
.py-portfolio-image-action{position:absolute;right:12px;bottom:11px;display:grid;place-items:center;width:31px;height:31px;border-radius:9px;color:#fff;background:rgba(5,66,145,.9);opacity:0;transform:translateY(5px);transition:opacity .2s,transform .2s}
.py-portfolio-card:hover .py-portfolio-image-action,.py-portfolio-image:focus-visible .py-portfolio-image-action{opacity:1;transform:translateY(0)}
.py-portfolio-content{min-width:0;display:flex;flex-direction:column;flex:1;padding:20px 20px 22px}
.py-portfolio-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;margin-bottom:11px}
.py-portfolio-category{display:inline-flex;align-items:center;width:max-content;max-width:100%;border-radius:7px;padding:5px 9px;background:#e9f3ff;color:#0862ca;font-size:11px;font-weight:750;line-height:1.4}
.py-portfolio-live{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:650;color:#34755b;white-space:nowrap}
.py-portfolio-live span{width:7px;height:7px;background:#28a876;border-radius:50%;box-shadow:0 0 0 3px #e3f5ec}
.py-portfolio-name{margin:0 0 9px;color:#112846;font-size:19px;line-height:1.34;letter-spacing:-.35px;font-weight:800;overflow-wrap:anywhere}
.py-portfolio-name a{color:inherit;text-decoration:none}.py-portfolio-name a:hover{color:#0867d6}
.py-portfolio-summary{margin:0 0 15px;color:#5d6e86;font-size:13px;line-height:1.67;overflow-wrap:anywhere}
.py-portfolio-tags{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:0 0 16px}
.py-portfolio-tags span{border:1px solid #e4ecf5;border-radius:6px;background:#f3f6fa;color:#506581;font-size:10px;font-weight:630;padding:5px 8px;line-height:1.3}
.py-portfolio-actions{margin-top:auto;border-top:1px solid #e8eef7;padding-top:13px;display:flex;align-items:stretch;gap:9px}
.py-portfolio-details{display:inline-flex;align-items:center;justify-content:space-between;flex:1;min-width:0;min-height:40px;gap:8px;background:#0863d8;color:#fff!important;text-decoration:none!important;font-weight:730;font-size:12px;padding:9px 12px;border-radius:8px;transition:background .2s}
.py-portfolio-details:hover{background:#0648a8}
.py-portfolio-external{display:grid;place-items:center;flex:none;width:41px;min-height:40px;border:1px solid #cbdcf2;border-radius:8px;background:#f7fbff;color:#0863d8;transition:background .2s}
.py-portfolio-external:hover{background:#e9f3ff}
.py-portfolio-index{min-width:0;scroll-margin-top:100px}
.py-portfolio-results[aria-busy="true"]{opacity:.5;pointer-events:none;transition:opacity .15s}
.ppa-filter-feedback{min-height:0;text-align:center;color:#4b6a8d;font-size:12px}
.ppa-filter-feedback:not(:empty){margin:-17px 0 20px}
/* Detail page retains a large screenshot, with no enlargement button. */
.py-portfolio-detail-overview{background:linear-gradient(180deg,#f5f9ff 0%,#fff 100%);padding:43px 0 40px}
.py-portfolio-overview-grid{display:grid;grid-template-columns:minmax(0,1.38fr) minmax(0,.95fr);gap:34px;align-items:center}
.py-portfolio-detail-browser{min-width:0;background:#fff;border:1px solid #dae7f6;border-radius:15px;overflow:hidden;box-shadow:0 16px 44px rgba(13,53,95,.09)}
.py-portfolio-detail-browser .py-portfolio-toolbar{height:40px;padding:0 15px}
.py-portfolio-detail-browser .py-portfolio-dots i{width:8px;height:8px}
.py-portfolio-detail-browser .py-portfolio-address{font-size:11px}
.py-portfolio-detail-preview{width:100%;aspect-ratio:16/10}
.py-portfolio-overview-content h2{margin:12px 0 12px;color:#0c2345;font-size:clamp(25px,2.6vw,32px);line-height:1.25;letter-spacing:-.65px}
.py-portfolio-overview-content>p{margin:0 0 20px;color:#5a708e;font-size:14px;line-height:1.75;overflow-wrap:anywhere}
.py-portfolio-overview-tags{border-top:1px solid #e1eaf6;padding-top:18px}
.py-portfolio-overview-tags>span{display:block;margin-bottom:11px;color:#263e60;font-weight:780;font-size:13px}
.py-portfolio-overview-tags .py-portfolio-tags{margin-bottom:0}
.py-portfolio-overview-actions{display:flex;flex-direction:column;align-items:stretch;gap:9px;margin-top:22px}
.py-portfolio-overview-actions .py-btn{white-space:normal;text-align:center;min-height:43px}
.py-portfolio-detail-content-section{padding-top:30px}
.py-portfolio-related{background:#f7faff;padding:48px 0 62px}
.py-portfolio-related-heading{display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:18px;margin-bottom:24px}
.py-portfolio-related-heading h2{margin:4px 0 0;font-size:28px;letter-spacing:-.5px}
.py-portfolio-related-heading>a{display:inline-flex;align-items:center;gap:7px;color:#0b61c8;font-size:13px;font-weight:750}
@media(max-width:1120px){
 .py-portfolio-grid,.py-project-cards.py-portfolio-grid,.py-detail-project-grid.py-portfolio-grid{grid-template-columns:repeat(var(--py-portfolio-tablet-columns,2),minmax(0,1fr))!important;gap:18px}
 .py-portfolio-overview-grid{gap:24px}
}
@media(max-width:920px){
 .py-project-intro{display:block}.py-project-intro p{margin-bottom:15px}
 .py-portfolio-overview-grid{grid-template-columns:1fr}
 .py-portfolio-overview-content{max-width:730px}
 .py-portfolio-overview-actions{flex-direction:row;flex-wrap:wrap}
 .py-portfolio-detail-overview{padding:29px 0 35px}
}
@media(max-width:690px){
 .py-portfolio-grid,.py-project-cards.py-portfolio-grid,.py-detail-project-grid.py-portfolio-grid{grid-template-columns:minmax(0,1fr)!important;gap:16px}
 .py-projects{padding:40px 0 46px}.py-portfolio-content{padding:18px 18px 20px}
 .py-portfolio-name{font-size:19px}.py-portfolio-summary{font-size:13px}
 .py-portfolio-image-action{opacity:1;transform:none;width:29px;height:29px}
 .py-portfolio-detail-overview{padding:25px 0 33px}.py-portfolio-overview-content h2{font-size:27px}
 .py-portfolio-related{padding:36px 0}
}
@media(prefers-reduced-motion:reduce){
 .py-portfolio-card,.py-portfolio-image-src,.py-portfolio-detail-preview img,.py-portfolio-details{transition:none!important;transform:none!important}
 .py-portfolio-card:hover .py-portfolio-image-src,.py-portfolio-card:focus-within .py-portfolio-image-src,.py-portfolio-detail-preview:hover img,.py-portfolio-detail-preview:focus-visible img{transform:none!important}
}

/* Refined card spacing and accessible focus states. */
.py-portfolio-grid > .py-portfolio-card{max-width:none;width:100%;min-width:0}
.py-portfolio-browser{box-shadow:0 4px 15px rgba(10,49,92,.045)}
.py-portfolio-shot{padding:13px 13px 0}
.py-portfolio-toolbar{height:34px}
.py-portfolio-image{cursor:pointer}
.py-portfolio-card:focus-within{outline:2px solid transparent}
.py-portfolio-image:focus-visible,.py-portfolio-external:focus-visible,.py-portfolio-details:focus-visible{
 outline:3px solid #55a6ef;outline-offset:2px;
}
.py-portfolio-detail-visual-note{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;
 padding:11px 17px;border-top:1px solid #e5edf7;background:#fafdff;color:#5c7089;font-size:11px;line-height:1.5}
.py-portfolio-detail-visual-note strong{color:#164b85;font-size:11px;font-weight:700}
.py-portfolio-overview-content{min-width:0}
.py-portfolio-overview-content h2{font-weight:800}
.py-portfolio-overview-actions .py-btn{border-radius:10px}
@media(hover:none),(pointer:coarse){
 .py-portfolio-image .py-portfolio-image-action{display:none}
}
