/* All websites of the Cold Works Production brand */
:root {
  color-scheme: dark;
  --bg: #0D141A; --surface: #151F28; --surface-2: #1B2733; --ink: #E4ECF1; --muted: #8DA0B0; --line: #263544; --ice: #7CC7E0;
  --f-head: "Barlow Condensed", "Arial Narrow", sans-serif; --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif; --f-mono: "IBM Plex Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); font: 400 16px/1.6 var(--f-body);
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(63,179,127,.16), transparent 60%),
    radial-gradient(900px 500px at 95% 0%, rgba(124,199,224,.14), transparent 60%),
    var(--bg); }
body.no-scroll { overflow: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 64px 24px 40px; }

/* ---------- Başlık ---------- */
.hero { margin-bottom: 40px; }
.house { margin: 0; color: var(--ice); font-weight: 600; animation: rise .7s both; }
h1 { font-family: var(--f-head); font-weight: 700; font-size: clamp(3rem, 8vw, 6rem); line-height: .92; margin: 8px 0 18px; }
h1 span { display: inline-block; animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
h1 span:nth-child(2) { animation-delay: .12s; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.lede { color: var(--muted); max-width: 62ch; margin: 0 0 22px; animation: rise .8s .2s both; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; animation: rise .8s .3s both; }
.filters button { font: 500 .92rem var(--f-body); color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: all .2s; }
.filters button span { opacity: .6; margin-left: 4px; font-variant-numeric: tabular-nums; }
.filters button:hover { color: var(--ink); border-color: var(--ice); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Kartlar ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.site {
  --accent: #7CC7E0;
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  animation: rise .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.35s + var(--i, 0) * 70ms);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .35s;
}
.site.is-in { animation-delay: calc(var(--i, 0) * 50ms); }
.site:hover, .site:focus-within { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: 0 24px 50px -28px color-mix(in srgb, var(--accent) 70%, transparent); }
.site[hidden] { display: none; }

.frame { padding: 14px 14px 0; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface)); }
.frame-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #0B1117; border-radius: 10px 10px 0 0; }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #2C3A47; }
.site:hover .dots i:nth-child(1) { background: #E5534B; } .site:hover .dots i:nth-child(2) { background: #E8B04B; } .site:hover .dots i:nth-child(3) { background: #6CC49A; }
.dots i { transition: background-color .3s; }
.frame-url { flex: 1; min-width: 0; font: 500 .78rem var(--f-mono); color: var(--muted); background: #151F28; border-radius: 6px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0B1117; }
.shot img { position: absolute; left: 0; top: 0; width: 100%; height: auto; opacity: 0; transform: translateY(0);
  transition: transform 1.1s cubic-bezier(.5,0,.2,1), opacity .5s; }
.shot.has-img img { opacity: 1; }
.shot.has-img .placeholder { opacity: 0; }
.site:hover .shot img, .site:focus-within .shot img { transform: translateY(var(--scroll, 0)); transition: transform var(--dur, 5s) cubic-bezier(.45,.05,.55,.95), opacity .5s; }
.shot::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 -40px 40px -30px rgba(0,0,0,.45); }

.placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; transition: opacity .5s;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 14px),
    #101922; }
.ph-mark { width: 74px; height: 74px; border-radius: 20px; display: grid; place-items: center; font: 700 2.4rem var(--f-head); color: #0B1117; background: var(--accent); box-shadow: 0 10px 30px -8px var(--accent); transition: transform .5s cubic-bezier(.2,1.3,.3,1); }
.site:hover .ph-mark { transform: rotate(-6deg) scale(1.08); }
.ph-host { font: 500 .85rem var(--f-mono); color: var(--muted); }

.locked { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; padding: 20px;
  background:
    repeating-linear-gradient(45deg, rgba(124,199,224,.05) 0 10px, transparent 10px 20px),
    radial-gradient(circle at 50% 40%, #1B2733, #0B1117 70%); }
.locked svg { width: 56px; height: 56px; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; margin-bottom: 6px; }
.locked svg circle { fill: var(--accent); stroke: none; }
.site:hover .locked svg { animation: shake .5s cubic-bezier(.36,.07,.19,.97); }
.locked strong { font-family: var(--f-head); font-size: 1.6rem; letter-spacing: .02em; }
.locked span { color: var(--muted); font-size: .9rem; }
@keyframes shake { 20%, 60% { transform: rotate(-8deg); } 40%, 80% { transform: rotate(8deg); } }

.site-body { padding: 18px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.site-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.site-head h2 { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: 1.75rem; line-height: 1.05; }
.brand-pill { font-size: .72rem; font-weight: 600; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.site-desc { color: var(--muted); margin: 8px 0 12px; }
.tags { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .78rem; padding: 2px 9px; border-radius: 4px; background: var(--surface-2); color: var(--ink); }
.actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn { font: 600 .92rem var(--f-body); text-decoration: none; cursor: pointer; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink); transition: all .2s; }
.btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn-main { background: var(--accent); border-color: var(--accent); color: #0B1117; }
.btn-main:hover { filter: brightness(1.1); box-shadow: 0 8px 20px -10px var(--accent); }
.note { font-size: .88rem; color: var(--muted); }

/* ---------- Canlı önizleme ---------- */
.viewer { --accent: #7CC7E0; width: min(1200px, 94vw); height: min(820px, 90vh); padding: 0; border: 1px solid var(--line); border-radius: 14px; background: #0B1117; color: var(--ink); overflow: hidden; display: none; flex-direction: column; }
.viewer[open] { display: flex; animation: pop .35s cubic-bezier(.2,1.2,.3,1); }
.viewer::backdrop { background: rgba(5,9,13,.75); backdrop-filter: blur(4px); }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(12px); } }
.viewer-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 2px solid var(--accent); background: #101922; }
.viewer-url { flex: 1; min-width: 0; font: 500 .85rem var(--f-mono); color: var(--muted); background: #0B1117; border-radius: 6px; padding: 4px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-btn { font: 600 .85rem var(--f-body); color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 5px 12px; cursor: pointer; text-decoration: none; }
.viewer-btn:hover { border-color: var(--accent); }
.viewer-btn.close { padding: 5px 10px; }
.viewer-body { position: relative; flex: 1; background: #fff; }
.viewer-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.viewer-loading { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); background: #0B1117; }
.viewer-loading[hidden] { display: none; }
.viewer-loading span { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.viewer-note { margin: 0; padding: 6px 14px; font-size: .78rem; color: var(--muted); background: #101922; border-top: 1px solid var(--line); }

.foot { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 46px; }

@media (max-width: 820px) { .grid { grid-template-columns: 1fr; } .wrap { padding-top: 40px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.site-credit { margin: -4px 0 12px; padding: 6px 10px; font-size: .8rem; color: var(--ink); border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 0 6px 6px 0; }
