/* ═══════════════════════════════════════════════════════
   shared-www.css — The Big Deal: Street Economy
   Styl CDE / Win9x + ramka monitora CRT
════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

/* ── ZMIENNE ── */
:root {
  --cde-main:    #6E7D76;
  --cde-bright:  #ACBEB4;
  --cde-dark:    #3e4a44;
  --cde-title:   #5D6A64;
  --cde-black:   #1a1e1c;
  --cde-text:    #ffffff;
  --cde-green:   #4a7a4a;
  --cde-shadow:  rgba(0,0,0,0.55);
  --desktop-bg:  #1a1a1e;
  --font-ui:     "MS Sans Serif", "Share Tech Mono", Geneva, sans-serif;
  --win-w:       900px;
  --monitor-bezel:      #b0aa9a;
  --monitor-bezel-dark: #7a7468;
  --monitor-bezel-hi:   #d4cfc2;
  --monitor-radius:     18px;
}

*, *::before, *::after { box-sizing: border-box; cursor: default; margin: 0; padding: 0; }
a, button, .btn, .btn-back, .btn-story,
.post-link, .footer-link,
.placeholder, .placeholder img,
.doc-placeholder, .doc-placeholder img { cursor: pointer !important; }

html, body {
  min-height: 100%;
  background-color: var(--desktop-bg);
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--cde-text);
  overflow-x: hidden;
  line-height: 1.5;
}

/* ════════════════════════════════
   MONITOR CRT
════════════════════════════════ */


#monitor-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100vh;
  padding: 0;
  background: #1a1e1c;
}
#monitor { display: contents; }
#monitor { display: contents; }





/* Odblask szybki */




/* CRT efekty — pozycjonowane wewnątrz ekranu */
#crt-scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 1px,
    rgba(0,0,0,0.08) 1px, rgba(0,0,0,0.08) 2px
  );
  pointer-events: none; z-index: 9000; border-radius: 4px;
}
#crt-flicker {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 9001; border-radius: 4px;
  animation: flicker 9s infinite;
}
#crt-vignette { display: none; }
@keyframes flicker {
  0%,100% { opacity:1; background:transparent }
  91%      { opacity:1; background:transparent }
  92%      { opacity:.97; background:rgba(255,255,255,0.01) }
  93%      { opacity:1; background:transparent }
  96%      { opacity:.98 } 97% { opacity:1 }
}

/* Dolna listwa monitora */





  50%      { background:#3a8c3a; box-shadow:0 0 8px #3a8c3a, 0 0 16px rgba(58,140,58,0.4) }
}




/* ── DESKTOP (wnętrze ekranu) ── */
#desktop {
  display: flex; flex-direction: column; align-items: center;
  width: 100%;
  padding: 24px 0;
  gap: 22px;
  position: relative; z-index: 1;
  background-color: var(--cde-black);
  min-height: 500px;
  position: relative;
}

/* ════════════════════════════════
   OKNA
════════════════════════════════ */
.window {
  width: var(--win-w); max-width: 100%;
  margin-left: auto; margin-right: auto;
  background: var(--cde-main);
  border: 2px solid;
  border-color: var(--cde-bright) var(--cde-dark) var(--cde-dark) var(--cde-bright);
  box-shadow: 5px 5px 0 var(--cde-shadow);
}
.title-bar {
  background: linear-gradient(90deg, var(--cde-title) 0%, var(--cde-dark) 100%);
  height: 28px; padding: 0 8px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 2px solid var(--cde-dark); user-select: none;
}
.title-bar-dots { display: flex; gap: 4px; }
.title-bar-dots span {
  width: 12px; height: 12px;
  border: 1px solid var(--cde-dark);
  border-top-color: var(--cde-bright); border-left-color: var(--cde-bright);
  background: var(--cde-main);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; line-height: 1; cursor: default !important;
}
.content { padding: 12px; }
.inner-frame {
  background: rgba(0,0,0,0.18);
  border: 2px solid;
  border-color: var(--cde-dark) var(--cde-bright) var(--cde-bright) var(--cde-dark);
  padding: 20px;
}
.terminal {
  background: #0d0d0d; border: 2px inset var(--cde-dark);
  padding: 14px 18px; font-family: "Share Tech Mono", monospace;
  font-size: 12px; color: var(--cde-green); line-height: 1.7; margin: 16px 0;
}
.terminal::before { content: "C:\\DEAL> "; opacity: .5; }

/* ── PRZYCISKI ── */
.btn {
  background: var(--cde-main);
  border: 2px solid; border-color: var(--cde-bright) var(--cde-dark) var(--cde-dark) var(--cde-bright);
  color: var(--cde-text); padding: 6px 14px;
  font-family: var(--font-ui); font-size: 11px; font-weight: bold;
  text-transform: uppercase; text-decoration: none; display: inline-block; letter-spacing: .4px;
}
.btn:hover { background: var(--cde-title); }
.btn:active { border-color: var(--cde-dark) var(--cde-bright) var(--cde-bright) var(--cde-dark); transform: translate(1px,1px); }
.btn-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.btn-back {
  display: inline-block; background: var(--cde-title); border: 1px solid var(--cde-bright);
  color: var(--cde-text); padding: 5px 12px; font-size: 11px;
  text-transform: uppercase; text-decoration: none; margin-bottom: 18px;
}
.btn-back:hover { background: var(--cde-dark); }
.btn-story {
  margin-top: 20px; padding: 5px 14px; font-size: 10px; letter-spacing: 1px;
  background: #3a3a3a; border: 1px solid var(--cde-dark);
  color: #ccc; text-decoration: none; display: inline-block; text-transform: uppercase;
}
.btn-story:hover { color: var(--cde-bright); border-color: var(--cde-bright); background: var(--cde-dark); }

/* ── NAGŁÓWKI ── */
h1 { font-size: 28px; letter-spacing: 3px; text-align: center; color: var(--cde-text); text-shadow: 2px 2px 0 var(--cde-black); }
h2 { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--cde-bright); border-bottom: 1px solid var(--cde-dark); padding-bottom: 6px; margin-bottom: 14px; }
p  { font-size: 12px; line-height: 1.65; margin-bottom: 10px; color: #dde4e0; }

/* ── SIDEBAR ── */
.sidebar { background: rgba(0,0,0,0.12); border-right: 2px solid var(--cde-dark); padding: 14px; overflow-y: auto; }
.sidebar h3 { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--cde-bright); margin-bottom: 14px; border-bottom: 1px solid var(--cde-dark); padding-bottom: 6px; }
.post-link { display: block; padding: 7px 8px; font-size: 11px; color: #ccc; margin-bottom: 4px; border: 1px solid transparent; text-decoration: none; line-height: 1.4; }
.post-link:hover { background: rgba(255,255,255,0.06); border-color: var(--cde-dark); }
.post-link.active { background: var(--cde-title); color: #fff; border-color: var(--cde-bright); }
.post-link .pl-date { display: block; font-size: 9px; opacity: .6; margin-top: 2px; }
.main-content { background: rgba(0,0,0,0.16); padding: 30px 36px; overflow-y: auto; line-height: 1.65; }
.post-header { margin-bottom: 24px; border-bottom: 2px solid var(--cde-dark); padding-bottom: 12px; }
.post-title { font-size: 20px; margin: 6px 0 0; color: #fff; letter-spacing: .5px; }

/* ── GALERIA ── */
.screenshot-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.placeholder, .doc-placeholder {
  background: #000; border: 2px solid var(--cde-dark);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.doc-placeholder { aspect-ratio: 1 / 1.4; }
.placeholder img, .doc-placeholder img { width: 100%; height: 100%; object-fit: cover; display: block; }
.placeholder::after {
  content: attr(data-label); position: absolute; bottom: 4px; left: 0; right: 0;
  text-align: center; font-size: 9px; color: var(--cde-green);
  font-family: "Share Tech Mono", monospace; pointer-events: none;
}

/* ── LIGHTBOX ── */
#lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.94); z-index: 99999; justify-content: center; align-items: center; }
#lightbox img { max-width: 88%; max-height: 88%; border: 3px solid var(--cde-bright); box-shadow: 0 0 40px rgba(0,0,0,.9); }

/* ── INNE ── */
.trailer-box { width: 100%; aspect-ratio: 16/9; background: #000; border: 2px solid var(--cde-dark); margin-top: 10px; }
.docs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.docs-header { font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; color: var(--cde-bright); margin-bottom: 12px; }
.story-text h1 { font-size: 22px; text-align: left; border-bottom: 2px solid var(--cde-dark); padding-bottom: 10px; margin-bottom: 18px; color: var(--cde-bright); }
footer { width: var(--win-w); max-width: 100%; margin: 0 auto; display: block; text-align: center; font-size: 10px; color: var(--cde-bright); opacity: .55; padding-bottom: 16px; }
.footer-link { color: var(--cde-bright); text-decoration: underline; }
.status-bar { background: var(--cde-main); border-top: 2px solid; border-color: var(--cde-dark) var(--cde-bright) var(--cde-bright) var(--cde-dark); padding: 3px 10px; font-size: 10px; color: var(--cde-bright); display: flex; gap: 20px; }
.status-bar span { opacity: .7; }

/* ── RESPONSIVE ── */
@media (max-width: 1020px) {
  #monitor { width: 100%; padding: 14px 10px 12px; border-radius: 10px; }
  :root { --win-w: 100%; }
  .screenshot-row, .docs-grid { grid-template-columns: repeat(2, 1fr); }
  .window-body { grid-template-columns: 1fr !important; }
  .sidebar { border-right: none; border-bottom: 2px solid var(--cde-dark); max-height: 200px; }

}
