/* ERBIAS V41 | project cards + redesigned detail page */
.project-page-shell,.project-detail-page{background:#f7fafc}
.section-lead-stack{display:grid;justify-items:start;gap:16px}
.section-link{white-space:normal}

/* Card systems */
.project-showcase-grid,.project-list-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.project-showcase-card,.project-list-card{min-width:0;border:1px solid #e2e9f1;border-radius:24px;background:#fff;overflow:hidden;box-shadow:0 15px 40px rgba(16,36,63,.05);transition:transform .25s ease,box-shadow .25s ease}
.project-showcase-card:hover,.project-list-card:hover{transform:translateY(-4px);box-shadow:0 22px 50px rgba(16,36,63,.1)}
.project-visual-link,.project-list-image{display:block;overflow:hidden;text-decoration:none}
.project-preview-image,.project-list-image{padding:0;margin:0;width:100%;aspect-ratio:4/3;overflow:hidden;background:#eef4fa}
.project-preview-image img,.project-list-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.project-showcase-card:hover img,.project-list-card:hover img{transform:scale(1.03)}
.project-body,.project-list-body{padding:22px;display:flex;flex-direction:column;gap:12px;min-width:0}
.project-body .tag,.project-list-body .tag{font-size:11px;font-weight:800;letter-spacing:.04em;color:#34659a;background:#edf5fc;align-self:flex-start;padding:7px 11px;border-radius:99px}
.project-body h3,.project-list-body h2,.project-list-body h3{font-size:clamp(18px,1.6vw,23px);letter-spacing:-.03em;line-height:1.3;margin:0}
.project-body h3 a,.project-list-body h2 a,.project-list-body h3 a{color:#10243f;text-decoration:none}
.project-body p,.project-list-body p{font-size:13px;color:#67788a;line-height:1.75;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.project-mini-features{display:flex;flex-wrap:wrap;gap:7px;list-style:none;margin:2px 0 0;padding:0}
.project-mini-features li{font-size:10px;color:#435b73;line-height:1.4;background:#f4f8fc;border:1px solid #e5edf5;border-radius:99px;padding:6px 9px}
.project-card-actions,.project-list-actions{margin-top:auto;padding-top:12px;display:flex;gap:12px;flex-wrap:wrap}
.project-card-actions a,.project-list-actions a{font-size:12px;color:#174b85;background:#f2f7fc;border:1px solid #dce8f5;border-radius:11px;padding:11px 14px;font-weight:800;text-decoration:none}
.project-card-actions a:hover,.project-list-actions a:hover{background:#f2f7fc;color:#174b85}
.text-link{align-self:center;color:#1a5cb8;text-decoration:none;font-weight:700;font-size:13px}

/* Project list page */
.project-page-hero{background:linear-gradient(130deg,#fff,#eff6fd);padding:60px 0 44px}
.project-page-hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:38px;align-items:center}
.project-page-hero h1{color:#10243f;font-size:clamp(34px,4.5vw,62px);letter-spacing:-.05em;line-height:1.1;margin:14px 0 18px}
.project-page-hero p{color:#64788f;line-height:1.85;font-size:16px;max-width:760px}
.project-page-hero-card,.detail-card,.summary-card,.detail-block{background:#fff;border:1px solid #e3ebf4;border-radius:22px;box-shadow:0 12px 30px rgba(18,54,92,.05)}
.project-page-hero-card{padding:28px}
.project-page-hero-card p{color:#64788f}
.project-list-head{display:flex;align-items:center;justify-content:space-between}.project-list-head small{color:#789}

/* Detail page redesign */
.project-detail-hero{background:linear-gradient(135deg,#ffffff 0%,#eef5fc 100%);padding:58px 0 38px}
.project-detail-hero-grid.redesign-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr);gap:28px;align-items:stretch}
.project-detail-copy h1{color:#10243f;font-size:clamp(36px,4.6vw,62px);letter-spacing:-.05em;line-height:1.06;margin:14px 0 18px}
.project-detail-tagline{color:#64788f;line-height:1.9;font-size:16px;max-width:720px}
.project-detail-meta{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0}
.project-detail-meta span{font-size:12px;background:#eaf2fa;border-radius:99px;padding:9px 13px;color:#31618e;font-weight:700}
.project-detail-actions{display:flex;gap:12px;flex-wrap:wrap}
.project-hero-summary{display:flex;align-items:stretch}
.summary-card{padding:28px;width:100%;display:grid;gap:14px}
.summary-card h2{margin:0;font-size:28px;line-height:1.18;letter-spacing:-.03em;color:#10243f}
.summary-card p{margin:0;color:#63778f;line-height:1.85}
.summary-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:6px}
.summary-stats>div{padding:16px;border-radius:16px;background:#f5f9fd;border:1px solid #e2ecf5}
.summary-stats strong{display:block;font-size:28px;color:#10243f;line-height:1.1}
.summary-stats small{display:block;margin-top:6px;color:#63778f;line-height:1.5;font-size:12px}

.project-section-head{display:flex;justify-content:space-between;gap:22px;align-items:end;margin-bottom:22px;flex-wrap:wrap}
.project-section-head h2{margin:8px 0 0;font-size:clamp(28px,3vw,42px);letter-spacing:-.04em;line-height:1.12;color:#10243f}
.project-section-head p{margin:0;max-width:560px;color:#64788f;line-height:1.85}
.project-experience-section{padding-top:6px}
.experience-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:end}
.browser-frame{background:#fff;border:1px solid #dce7f2;border-radius:22px;overflow:hidden;box-shadow:0 24px 55px rgba(16,36,63,.11)}
.browser-bar{display:flex;align-items:center;gap:8px;padding:12px 14px;background:#f4f7fb;border-bottom:1px solid #e3ebf4}
.browser-bar>span{width:11px;height:11px;border-radius:50%;background:#d1dce8}
.browser-address{margin-left:10px;min-width:0;flex:1;background:#fff;border:1px solid #dbe6f0;border-radius:999px;padding:8px 14px;color:#63778f;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.browser-screen{background:#f7fafc;padding:14px}.browser-screen img{display:block;width:100%;aspect-ratio:16/10;object-fit:contain;border-radius:16px;background:#fff}
.experience-mobile{display:flex;justify-content:center}
.phone-frame{position:relative;width:min(100%,250px);padding:16px 12px 18px;background:#10243f;border-radius:34px;box-shadow:0 24px 55px rgba(16,36,63,.18)}
.phone-notch{position:absolute;left:50%;top:10px;transform:translateX(-50%);width:96px;height:20px;background:#0b1830;border-radius:0 0 16px 16px}
.phone-screen{overflow:hidden;border-radius:24px;background:#fff}
.phone-screen img{display:block;width:100%;aspect-ratio:9/18;object-fit:cover;background:#fff}
.experience-thumbs{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;margin-top:16px}
.experience-thumb{padding:0;border:1px solid #dfe8f2;border-radius:16px;overflow:hidden;background:#fff;cursor:pointer;box-shadow:0 6px 18px rgba(16,36,63,.04)}
.experience-thumb img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}
.experience-thumb.is-active{border-color:#174b85;box-shadow:0 0 0 3px rgba(23,75,133,.12)}

.project-story-section{padding-top:28px;padding-bottom:22px}
.project-story-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(290px,.75fr);gap:26px;align-items:start}
.detail-block{padding:30px 32px;margin-bottom:16px}
.detail-block h2{font-size:28px;color:#10243f;margin:9px 0 13px;letter-spacing:-.03em}
.detail-block p,.detail-card p{color:#62758c;line-height:1.92;margin:0}
.tech-inline-list{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.tech-inline-list span{padding:9px 13px;border-radius:999px;background:#f3f8fc;border:1px solid #dfeaf4;color:#2f567f;font-size:12px;font-weight:700}
.story-side{display:grid;gap:18px;position:sticky;top:100px}
.detail-card{padding:26px}
.detail-card h3{font-size:23px;color:#10243f;margin:10px 0 14px;letter-spacing:-.03em}
.feature-stack,.tech-stack{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.feature-stack li,.tech-stack li{padding:13px 15px;background:#f4f8fc;border-radius:14px;color:#37516b;font-size:13px;line-height:1.7;border:1px solid #e5edf5}
.large-stack li{font-size:13px}
.project-flow{list-style:none;counter-reset:flow;padding:0;margin:0;display:grid;gap:14px}
.project-flow li{counter-increment:flow;display:grid;gap:6px;padding:14px 15px 14px 50px;position:relative;border-radius:14px;background:#f7fafc;border:1px solid #e4ebf3}
.project-flow li::before{content:counter(flow);position:absolute;left:14px;top:14px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#123f6c;color:#fff;font-size:12px;font-weight:800}
.project-flow strong{font-size:14px;color:#10243f}
.project-flow span{color:#65798f;font-size:12px;line-height:1.7}
.project-side-link{margin-top:18px;display:inline-flex}

.related-projects{padding:50px 0 60px}
.related-projects .compact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.related-projects .compact-card .project-list-image{aspect-ratio:4/3}
.project-not-found{background:#fff;border:1px solid #dde7f2;border-radius:22px;padding:34px;max-width:760px;box-shadow:0 16px 35px rgba(15,23,42,.05)}

@media(max-width:980px){
  .project-page-hero-grid,.project-detail-hero-grid.redesign-grid,.experience-layout,.project-story-grid{grid-template-columns:1fr}
  .story-side{position:static}
  .experience-mobile{justify-content:flex-start}
  .phone-frame{width:220px}
}
@media(max-width:720px){
  .project-showcase-grid,.project-list-grid,.related-projects .compact-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .project-body,.project-list-body{padding:14px;gap:9px}
  .project-body h3,.project-list-body h2,.project-list-body h3{font-size:15px;overflow-wrap:anywhere}
  .project-body p,.project-list-body p{font-size:11px;-webkit-line-clamp:3}
  .project-mini-features{gap:5px}
  .project-mini-features li{font-size:9px;padding:5px 7px}
  .project-card-actions a,.project-list-actions a{font-size:10px;padding:9px 8px}
  .project-page-hero,.project-detail-hero{padding:38px 0 30px}
  .project-page-hero h1,.project-detail-copy h1,.project-section-head h2{font-size:34px}
  .summary-card,.detail-card,.detail-block{padding:20px}
  .summary-stats{grid-template-columns:1fr 1fr}
  .detail-block h2{font-size:23px}
  .experience-thumbs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .browser-screen img{aspect-ratio:16/11}
}

/* V42 — yalnızca tam genişlik masaüstü sunumu */
.project-experience-section .experience-layout.experience-desktop-only{display:block;width:100%;max-width:100%}
.project-experience-section .experience-desktop{width:100%;min-width:0}
.project-experience-section .browser-frame{width:100%}
.project-experience-section .browser-screen img{width:100%;height:auto;max-height:740px;object-fit:contain;aspect-ratio:auto}
@media(max-width:720px){.project-experience-section .browser-screen{padding:8px}.project-experience-section .browser-screen img{max-height:460px;aspect-ratio:auto}}

/* V43: Proje bilgileri gerçek portföy alanlarından gelir. */
.project-facts{grid-template-columns:repeat(3,minmax(0,1fr))}
.project-facts>div{min-width:0;overflow-wrap:anywhere}
.project-facts strong{font-size:clamp(13px,1.45vw,18px);line-height:1.35;letter-spacing:-.02em}
.project-facts small{margin-top:8px}
.project-outcome-card p{margin:0;line-height:1.9;color:#62758c}
@media(max-width:720px){.project-facts{grid-template-columns:1fr}.project-facts>div{padding:13px 15px}.project-facts strong{font-size:16px}}

/* V44: premium project facts, readable stacked details */
.project-hero-summary .summary-card{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:14px;padding:clamp(22px,3vw,36px);min-width:0}
.project-hero-summary .summary-card h2{font-size:clamp(23px,2.2vw,33px);line-height:1.2;max-width:20ch}
.project-hero-summary .summary-card>p{font-size:14px;line-height:1.8;margin:0 0 5px;max-width:58ch}
.project-info-list{display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding:0;margin:8px 0 0;border-top:1px solid #e5edf5}
.project-info-list>div{display:grid;grid-template-columns:minmax(100px,35%) minmax(0,1fr);gap:15px;align-items:start;padding:16px 0;border-bottom:1px solid #e5edf5;min-width:0}
.project-info-list dt{color:#78899e;font-size:12px;font-weight:750;line-height:1.5}
.project-info-list dd{margin:0;color:#122b48;font-size:clamp(14px,1.2vw,17px);line-height:1.5;font-weight:800;overflow-wrap:anywhere;min-width:0}
.project-experience-section .project-section-head{align-items:flex-end}
.project-experience-section .project-section-head p{font-size:14px;max-width:410px}
@media(max-width:720px){.project-info-list>div{grid-template-columns:minmax(88px,34%) minmax(0,1fr);gap:10px;padding:13px 0}.project-hero-summary .summary-card h2{font-size:25px}.project-experience-section .project-section-head p{max-width:100%}}

/* V45: Proje genel bakış – editoryal tipografi ve veri panosu */
.project-hero-summary .summary-card{position:relative;display:flex;flex-direction:column;gap:24px;padding:clamp(24px,3vw,34px)!important;border:1px solid #dfe8f2;background:linear-gradient(145deg,#fff 0%,#fbfdff 100%);border-radius:26px;overflow:hidden;box-shadow:0 22px 50px rgba(13,39,66,.065)}
.project-hero-summary .summary-card::before{content:"";position:absolute;left:0;top:30px;bottom:30px;width:4px;background:#1b5488;border-radius:0 8px 8px 0}
.project-hero-summary .summary-lead{display:grid;gap:12px;min-width:0}
.project-hero-summary .summary-lead .eyebrow{margin:0;letter-spacing:.13em;font-size:10px}
.project-hero-summary .summary-lead h2{margin:0;max-width:none;font-size:clamp(22px,2.1vw,30px);line-height:1.2;color:#102940;letter-spacing:-.035em}
.project-hero-summary .summary-lead p{margin:0;color:#64758a;font-size:13px;line-height:1.85}
.project-hero-summary .project-info-list{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.6fr);gap:10px;margin:0;padding:0;border:0}
.project-hero-summary .project-info-list>div{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:7px;min-width:0;padding:16px 17px;border:1px solid #e4ebf2;border-radius:15px;background:#f5f9fd}
.project-hero-summary .project-info-list>.info-primary{grid-column:1/-1;background:#edf5fc;border-color:#dceaf6}
.project-hero-summary .project-info-list dt{font-size:10px;letter-spacing:.075em;text-transform:uppercase;color:#637c96;font-weight:800}
.project-hero-summary .project-info-list dd{font-size:clamp(14px,1.1vw,17px);font-weight:800;line-height:1.45;letter-spacing:-.02em;color:#14334f;overflow-wrap:anywhere}
@media(max-width:600px){.project-hero-summary .summary-card{padding:22px!important;gap:18px;border-radius:20px}.project-hero-summary .project-info-list{gap:9px}.project-hero-summary .project-info-list>div{padding:13px 12px}.project-hero-summary .summary-lead h2{font-size:25px}.project-hero-summary .project-info-list dd{font-size:14px}}

/* V46: Projeler üst girişini tek sütuna al; ilgili projelerde başlık ve bağlantı boşluğu. */
.project-page-hero-grid{grid-template-columns:minmax(0,1fr)}
.related-projects .section-top{display:flex;align-items:flex-end;justify-content:space-between;column-gap:32px;row-gap:22px;flex-wrap:wrap}
.related-projects .section-top>div{flex:1 1 300px;min-width:0}
.related-projects .section-top>.section-link{flex:0 0 auto;margin-left:0;white-space:nowrap}
@media(max-width:720px){.related-projects .section-top{align-items:flex-start;flex-direction:column;gap:20px}.related-projects .section-top>div{flex:auto;width:100%}.related-projects .section-top>.section-link{align-self:flex-start}}

/* V47: Full-page screenshots remain at natural aspect ratio and scroll inside the mock browser. */
.project-experience-section .browser-screen{height:min(740px,72vh);min-height:280px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#b5c7da #f7fafc}
.project-experience-section .browser-screen img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:initial;border-radius:12px}
.project-experience-section .experience-thumbs{margin-top:18px;grid-template-columns:repeat(auto-fill,minmax(115px,150px));align-items:start}
.project-experience-section .experience-thumb{display:block;min-width:0;line-height:0}
.project-experience-section .experience-thumb img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:0}
.project-experience-section .experience-thumb:focus-visible{outline:3px solid #174b85;outline-offset:3px}
@media(max-width:720px){.project-experience-section .browser-screen{height:min(470px,65vh);min-height:220px}.project-experience-section .browser-screen img{max-height:none}.project-experience-section .experience-thumbs{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}}

/* Ana sayfa: ilgili proje kartı görünümü, tek eylem */
.home-project-grid .project-list-card{display:flex;flex-direction:column}
.home-project-grid .project-list-body{display:flex;flex-direction:column;flex:1}
.home-project-grid .home-project-action{margin-top:auto;padding-top:18px}
.home-project-grid .home-project-action .small-outline{display:inline-flex;align-items:center;justify-content:center}

/* V17: Ana sayfa proje kartlarının mobil metinleri tek satırda. */
@media(max-width:720px){
  .home-project-grid .project-list-body{min-width:0;padding:12px;gap:9px}
  .home-project-grid .project-list-body .tag{
    display:block;max-width:100%;width:max-content;min-width:0;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    font-size:10px;letter-spacing:0;padding:6px 9px;line-height:1.4;
  }
  .home-project-grid .project-list-body h3,
  .home-project-grid .project-list-body h3 a{
    display:block;min-width:0;max-width:100%;white-space:nowrap;
    overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;
    font-size:14px;line-height:1.5;
  }
  .home-project-grid .project-list-body p{
    display:block;max-width:100%;white-space:nowrap;overflow:hidden;
    text-overflow:ellipsis;-webkit-line-clamp:unset;
    font-size:11px;line-height:1.6;
  }
  .home-project-grid .home-project-action{min-width:0;padding-top:9px}
  .home-project-grid .home-project-action .small-outline{
    display:flex;width:100%;max-width:100%;box-sizing:border-box;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    font-size:clamp(9px,2.6vw,11px);padding:10px 5px;line-height:1.3;
  }
}

/* V18 — ana sayfa mobil proje kartları: dengeli, kompakt iki sütun */
@media (max-width:720px){
  .home-project-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
  .home-project-grid .project-list-card{border-radius:15px;min-width:0;box-shadow:0 7px 19px rgba(16,36,63,.045)}
  .home-project-grid .project-list-image{aspect-ratio:16/10;flex:none}
  .home-project-grid .project-list-image img{width:100%;height:100%;object-fit:cover}
  .home-project-grid .project-list-body{padding:11px 10px 12px;gap:6px;flex:1;min-width:0}
  .home-project-grid .project-list-body .tag{font-size:9px;line-height:1.3;padding:4px 7px;max-width:100%;box-sizing:border-box}
  .home-project-grid .project-list-body h3,.home-project-grid .project-list-body h3 a{font-size:13px;line-height:1.35;letter-spacing:-.025em;margin:0}
  .home-project-grid .project-list-body p{font-size:10px;line-height:1.4;margin:0;color:#687d90}
  .home-project-grid .home-project-action{padding-top:5px;margin-top:auto}
  .home-project-grid .home-project-action .small-outline{width:100%;min-width:0;min-height:32px;padding:8px 4px;font-size:10px;line-height:1.25;border-radius:9px;letter-spacing:-.025em;text-align:center}
}
@media(max-width:360px){
  .home-project-grid{gap:8px}
  .home-project-grid .project-list-body{padding:9px 8px 10px}
  .home-project-grid .home-project-action .small-outline{font-size:9px}
}

/* V19 — mobil proje kartlarında okunabilir, daha dolu metin alanı */
@media (max-width:720px){
  .home-project-grid .project-list-body h3,
  .home-project-grid .project-list-body h3 a{
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    line-clamp:2;
    white-space:normal;
    overflow:hidden;
    text-overflow:ellipsis;
    overflow-wrap:break-word;
    line-height:1.4;
  }
  .home-project-grid .project-list-body p{
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
    line-clamp:3;
    white-space:normal;
    overflow:hidden;
    text-overflow:ellipsis;
    overflow-wrap:break-word;
    font-size:11px;
    line-height:1.5;
  }
  .home-project-grid .project-list-body{gap:8px}
  .home-project-grid .home-project-action{padding-top:8px}
}
