/* ============================================================
   projeleri.css — /projeleri (2026-11-30)
   İşaretleme: projeleri.asp (.pj-*). calismalari.css değişkenlerini (--cl-*) ve
   .cl-durum / .cl-tek / .cl-dugme parçalarını kullanır; onunla birlikte yüklenir.
   1) "Ar-Ge masam" (.pj-atolye): solda birinci şahıs anlatım, sağda bantla tutturulmuş kareli
      defter sayfası; "bir fikrin yolu" beş adım, kesik kalem çizgisiyle bağlı.
   2) "Sitelerim" (.pj-site): kart ızgarası değil, sağlı sollu satırlar (kapak + tanıtım),
      satır aralarında kesik çizgi. Kapak 1800x840 (.tools/proje/kapak.py).
   Metin tam siyah / tam beyaz; mürdüm yalnız simge ve vurguda.
   ============================================================ */

/* ---------- 1) Ar-Ge masam ---------- */
.pj-atolye { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.pj-atolye-metin h2 { margin: 8px 0 0; font-size: clamp(27px, 19px + 1.5vw, 40px); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; color: var(--cl-metin); }
.pj-atolye-metin p { margin: 14px 0 0; max-width: 62ch; font-size: 15.5px; line-height: 1.8; color: var(--cl-metin); }
.cl-alan .pj-atolye-metin p.pj-atolye-giris { margin-top: 18px; font-size: 17.5px; line-height: 1.7; font-weight: 500; }

.pj-defter {
    --pj-kagit: #fffdf6; --pj-kare: rgba(64,110,170,.11); --pj-kenar: #ece5d3; --pj-bant: rgba(214,200,160,.55);
    position: relative; margin: 14px 0 0; padding: 40px 34px 30px 34px; border-radius: 6px;
    background-color: var(--pj-kagit);
    background-image: linear-gradient(var(--pj-kare) 1px, transparent 1px), linear-gradient(90deg, var(--pj-kare) 1px, transparent 1px);
    background-size: 22px 22px; background-position: -1px -1px;
    border: 1px solid var(--pj-kenar); box-shadow: 0 2px 0 var(--pj-kenar), 0 24px 44px -26px rgba(46,34,48,.45);
    transform: rotate(-1deg);
}
body.active-dark-mode .pj-defter { --pj-kagit: #17191c; --pj-kare: rgba(255,255,255,.055); --pj-kenar: #2a2e33; --pj-bant: rgba(201,163,189,.28); }
.pj-defter::before {   /* bant */
    content: ""; position: absolute; top: -13px; left: 50%; width: 132px; height: 28px; margin-left: -66px;
    background: var(--pj-bant); transform: rotate(2deg); box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.pj-defter figcaption {
    margin: 0 0 18px; font-family: Georgia, "Times New Roman", serif; font-style: italic;
    font-size: 15px; color: var(--cl-erik);
}
body.active-dark-mode .pj-defter figcaption { color: #d9c3d2; }
.pj-defter ol { list-style: none; margin: 0; padding: 0; }
.pj-defter li {
    position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px;
    margin: 0; padding: 0 0 20px;
}
.pj-defter li:last-child { padding-bottom: 0; }
.pj-defter li:not(:last-child)::after {   /* adımları bağlayan kesik kalem çizgisi */
    content: ""; position: absolute; left: 21px; top: 46px; bottom: 4px;
    border-left: 2px dashed rgba(80,59,75,.35);
}
body.active-dark-mode .pj-defter li:not(:last-child)::after { border-left-color: rgba(201,163,189,.35); }
.pj-defter-simge {
    grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
    color: var(--cl-erik); background: var(--pj-kagit); border: 2px solid var(--cl-erik);
}
.pj-defter li:last-child .pj-defter-simge { color: #fff; background: var(--cl-erik); }
body.active-dark-mode .pj-defter-simge { color: #d9c3d2; border-color: #c9a3bd; }
body.active-dark-mode .pj-defter li:last-child .pj-defter-simge { color: #17151a; background: #c9a3bd; }
.pj-defter li b {
    align-self: end; font-family: Georgia, "Times New Roman", serif; font-style: italic;
    font-size: 21px; font-weight: 700; line-height: 1.2; color: var(--cl-metin);
}
.pj-defter-not { font-size: 14.5px; line-height: 1.6; color: var(--cl-metin); }

/* ---------- 2) Sitelerim ---------- */
.pj-siteler { display: flex; flex-direction: column; }
.pj-site { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: center; }
.pj-site + .pj-site { margin-top: 38px; padding-top: 38px; border-top: 1px dashed var(--cl-cizgi); }
.pj-site:nth-child(even) .pj-site-gorsel { order: 2; }

.pj-site-gorsel { display: block; line-height: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--cl-golge-us); }
.pj-site-gorsel img { width: 100%; height: auto; aspect-ratio: 1800 / 840; object-fit: cover; transition: transform .5s ease; }
.pj-site-gorsel:hover img { transform: scale(1.02); }

.pj-site-metin h3 { margin: 14px 0 0; font-size: clamp(24px, 16px + 1vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.pj-site-metin h3 a { color: var(--cl-metin); text-decoration: none !important; }
.pj-site-metin h3 a:hover { color: var(--cl-erik); }
body.active-dark-mode .pj-site-metin h3 a:hover { color: #d9c3d2; }
.pj-site-metin p { margin: 10px 0 0; font-size: 15.5px; line-height: 1.75; color: var(--cl-metin); }
.pj-site-metin .cl-tek { max-width: 46ch; }
.pj-site-dugmeler { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cl-alan .pj-site-dugmeler a.cl-dugme { padding: 10px 20px; font-size: 14px; }

@media (max-width: 991px) {
    .pj-atolye { grid-template-columns: minmax(0, 1fr); }
    .pj-defter { transform: none; margin-top: 8px; }
    .pj-site { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .pj-site:nth-child(even) .pj-site-gorsel { order: 0; }
    .pj-site-metin h3 { margin-top: 12px; }
}
@media (max-width: 575px) {
    .pj-defter { padding: 34px 20px 24px; }
    .pj-defter li { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; }
    .pj-defter-simge { width: 40px; height: 40px; font-size: 14px; }
    .pj-defter li:not(:last-child)::after { left: 19px; top: 42px; }
    .pj-defter li b { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
    .pj-site-gorsel img, .pj-site-gorsel:hover img { transition: none; transform: none; }
}
