/* ═══════════════════════════════════════
   BACKUP SCRIPT PAGE — style.css
═══════════════════════════════════════ */

/* ── BACK BAR ── */
.back-bar { position: sticky; top: 52px; z-index: 100; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-light); }
.back-inner { max-width: 1100px; margin: 0 auto; padding: 10px 40px; display: flex; align-items: center; gap: 20px; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--blue); transition: var(--transition); }
.back-btn:hover { opacity: 0.7; }
.back-breadcrumb { font-size: 13px; color: var(--text-3); }
.back-breadcrumb::before { content: '/'; margin-right: 8px; opacity: 0.4; }

/* ── HERO ── */
.bs-hero {
  padding: 80px 40px 60px;
  background: linear-gradient(160deg, #0d1117 0%, #161b22 100%);
  border-bottom: 1px solid #30363d;
}
.bs-hero h1 { color: #e6edf3; }
.bs-hero h1 span { color: #f0883e; }
.bs-hero .project-lead { color: #8b949e; }

.project-hero-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 440px; gap: 60px; align-items: center; }
.project-tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.project-chip { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: #8b949e; font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 980px; }
.bs-chip { background: rgba(240,136,62,0.1); border-color: rgba(240,136,62,0.3); color: #f0883e; }
.project-chip.blue { background: rgba(0,113,227,0.15); border-color: rgba(0,113,227,0.4); color: #58a6ff; }
.project-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 16px; }
.project-lead { font-size: 1.05rem; line-height: 1.7; margin-bottom: 32px; max-width: 540px; }
.project-stats-row { display: flex; gap: 32px; flex-wrap: wrap; }
.pstat-num { font-size: 2rem; font-weight: 700; line-height: 1; letter-spacing: -1px; color: #e6edf3; }
.pstat-num span { color: #f0883e; font-size: 1.2rem; }
.bs-num { color: #f0883e; }
.pstat-label { font-size: 12px; color: #8b949e; margin-top: 4px; font-weight: 500; }
.project-hero-caption { text-align: center; font-size: 12px; color: #8b949e; margin-top: 10px; }

/* ── TERMINAL ── */
.terminal-hero { background: #0d1117; border: 1px solid #30363d; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.terminal-bar { background: #161b22; padding: 12px 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #30363d; }
.t-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.t-dot.red { background: #ff5f57; } .t-dot.yellow { background: #febc2e; } .t-dot.green { background: #28c840; }
.t-title { font-size: 12px; color: #8b949e; margin-left: 8px; font-family: 'SF Mono', 'Fira Code', monospace; }
.terminal-body { padding: 20px 24px; font-family: 'SF Mono', 'Fira Code', monospace; font-size: 12px; line-height: 1.9; }
.t-prompt { color: #8b949e; } .t-cmd { color: #f0883e; }
.t-green { color: #3fb950; } .t-yellow { color: #e3b341; } .t-white { color: #c9d1d9; }
.t-cursor { color: #f0883e; animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

/* ── PBLOCK ── */
.pblock { padding: 80px 0; }
.pblock-alt { background: var(--bg2); }
.pblock-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.pblock .section-desc { margin-bottom: 40px; }

/* ── CONTEXT ── */
.context-2col { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.context-txt p { font-size: 15px; color: var(--text-2); line-height: 1.75; margin-bottom: 16px; }
.context-txt strong { color: var(--text); font-weight: 600; }
.context-txt code { background: var(--bg2); padding: 2px 6px; border-radius: 4px; font-size: 12px; color: #f0883e; font-family: 'SF Mono', 'Fira Code', monospace; }
.context-infos { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.info-item { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.info-item:last-child { border-bottom: none; padding-bottom: 0; } .info-item:first-child { padding-top: 0; }
.info-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-3); }
.info-val { font-size: 14px; font-weight: 500; color: var(--text); }

/* ── BS GRID ── */
.bs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.bs-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  transition: var(--transition);
}
.bs-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(240,136,62,0.3); }
.bs-card-img { position: relative; height: 200px; overflow: hidden; background: #0d1117; }
.bs-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.4s ease; }
.bs-card:hover .bs-card-img img { transform: scale(1.04); }
.bs-zoom { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.6); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 980px; }
.bs-card-body { padding: 20px 24px 24px; }
.bs-card-num { font-size: 2rem; font-weight: 700; color: #f0883e; opacity: 0.2; line-height: 1; margin-bottom: 6px; letter-spacing: -1px; }
.bs-card-body h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.bs-card-body p { font-size: 13px; color: var(--text-3); line-height: 1.65; margin-bottom: 12px; }
.bs-card-body code { background: var(--bg2); padding: 2px 5px; border-radius: 4px; font-size: 12px; color: #f0883e; font-family: 'SF Mono', 'Fira Code', monospace; }
.real-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--bg2); color: var(--text-2); font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 6px; }
.chip.blue { background: var(--blue-light); color: var(--blue); }
.bs-chip-cyber { background: #fef2f2; color: #dc2626; }

/* ── CYBER GRID ── */
.cyber-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.cyber-card { border-radius: var(--radius); padding: 24px; border: 1px solid; transition: var(--transition); }
.cyber-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.cyber-card.threat { background: #fff5f5; border-color: #fecaca; }
.cyber-card.defense { background: #f0fdf4; border-color: #bbf7d0; }
.cyber-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cyber-icon { font-size: 1.2rem; }
.cyber-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 3px 10px; border-radius: 980px; }
.threat-label { background: #fee2e2; color: #dc2626; }
.defense-label { background: #dcfce7; color: #16a34a; }
.cyber-card h3 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.cyber-card p { font-size: 13px; color: var(--text-3); line-height: 1.65; margin-bottom: 14px; }
.cyber-card strong { color: var(--text); font-weight: 600; }
.cyber-card code { background: rgba(0,0,0,0.05); padding: 2px 5px; border-radius: 4px; font-size: 12px; font-family: 'SF Mono', monospace; }
.cyber-counter { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,0.06); }
.counter-label { font-size: 10px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; }
.counter-val { font-size: 13px; font-weight: 500; color: var(--text); }

/* ── STACK ── */
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.stack-item { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 20px 16px; text-align: center; transition: var(--transition); }
.stack-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: rgba(240,136,62,0.2); }
.stack-icon { font-size: 1.6rem; margin-bottom: 8px; }
.stack-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.stack-type { font-size: 11px; color: var(--text-3); }

/* ── LIGHTBOX ── */
.lightbox { display: none; position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,0.9); backdrop-filter: blur(12px); align-items: center; justify-content: center; padding: 40px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox-close { position: fixed; top: 20px; right: 20px; width: 40px; height: 40px; background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 1rem; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: var(--font); }
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox-content { max-width: 1000px; width: 100%; cursor: default; }
.lightbox-content img { width: 100%; border-radius: var(--radius); }
.lightbox-caption { text-align: center; color: rgba(255,255,255,0.6); font-size: 13px; margin-top: 14px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .project-hero-inner { grid-template-columns: 1fr; }
  .project-hero-visual { order: -1; }
  .context-2col { grid-template-columns: 1fr; }
  .bs-grid { grid-template-columns: 1fr; }
  .back-inner { padding: 10px 20px; }
  .pblock-inner { padding: 0 20px; }
  .bs-hero { padding: 60px 20px 40px; }
}
@media (max-width: 600px) {
  .cyber-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: repeat(3, 1fr); }
}
