/* BSS Blog — Dark Hacker Theme */
/* System font stack only — GDPR compliant, no external requests */

:root {
  --bg-primary:    #0a0f1e;
  --bg-secondary:  #0f1729;
  --bg-card:       #111827;
  --bg-card-hover: #162033;
  --border:        #1e2d45;
  --border-accent: #00d084;
  --text-primary:  #e2e8f0;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;
  --accent:        #00d084;
  --accent-dim:    #00a066;
  --accent-glow:   rgba(0, 208, 132, 0.12);
  --link:          #00d084;
  --link-hover:    #33dfa0;
  --code-bg:       #0d1117;
  --font-stack:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:     'Cascadia Code', 'Fira Code', 'JetBrains Mono', Consolas, 'Courier New', monospace;
  --max-content:   720px;
  --max-site:      1100px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-stack);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Subtle grid background */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(0, 208, 132, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 208, 132, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

main.main-content {
  flex: 1;
  
  z-index: 1;
}

/* Container */
.container {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== HEADER ========== */
.site-header {
  background-color: rgba(10, 15, 30, 0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.logo:hover {
  color: var(--accent);
}

.logo-bracket {
  color: var(--accent);
  font-weight: 400;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ========== HOME PAGE ========== */
.home-header {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
  max-width: var(--max-content);
}

.home-title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--text-primary) 60%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 600px;
}

/* ========== POST LIST ========== */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 4rem;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem 2rem;
  max-width: var(--max-content);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  
}

.post-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: 8px 0 0 8px;
  opacity: 0;
  transition: opacity 0.2s;
}

.post-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateX(3px);
}

.post-card:hover::before {
  opacity: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.post-meta time {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

.post-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.75rem;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(0, 208, 132, 0.25);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.post-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.post-card-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.post-card-title a:hover {
  color: var(--accent);
}

.post-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.read-more {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s, color 0.2s;
}

.read-more:hover {
  color: var(--link-hover);
  gap: 0.5rem;
}

/* ========== SINGLE POST ========== */
.post-single {
  max-width: var(--max-content);
  padding: 3rem 0 4rem;
}

.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.post-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0.75rem 0;
  color: var(--text-primary);
}

.post-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-top: 0.75rem;
  font-style: italic;
}

/* ========== POST CONTENT TYPOGRAPHY ========== */
.post-content {  font-size: 1.15rem;  line-height: 1.9;  color: #cbd5e1;}

.post-content h2 {  font-size: 1.6rem;  font-weight: 700;  color: #f1f5f9;  margin: 2.5rem 0 1rem;  padding: 0;  border: none;  letter-spacing: -0.01em;}


.post-content h3 {  font-size: 1.25rem;  font-weight: 600;  color: #e2e8f0;  margin: 2rem 0 0.75rem;  padding: 0;}


.post-content p {  margin-bottom: 1.5rem;  color: #cbd5e1;}

.post-content a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(0, 208, 132, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.post-content a:hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-hover);
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.4rem 1.5rem;
}

.post-content li {  margin-bottom: 0.5rem;  color: #cbd5e1;}

.post-content li::marker {
  color: var(--accent);
}

.post-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.post-content em {
  color: var(--text-secondary);
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  background: var(--bg-secondary);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
  color: var(--text-secondary);
  font-style: italic;
}

.post-content code {  font-family: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', Consolas, monospace;  font-size: 0.88em;  background: rgba(0, 208, 132, 0.08);  color: #00d084;  padding: 0.15em 0.45em;  border-radius: 4px;  border: 1px solid rgba(0, 208, 132, 0.15);}

.post-content pre {  background: #0d1117;  border: 1px solid rgba(0, 208, 132, 0.15);  border-left: 3px solid #00d084;  border-radius: 8px;  padding: 1.25rem 1.5rem;  overflow-x: auto;  margin: 1.5rem 0;  font-size: 0.88rem;  line-height: 1.7;}

.post-content pre code {  background: none;  border: none;  padding: 0;  color: #e6edf3;  font-size: 0.88rem;  line-height: 1.7;}

/* CTA boxes inside content */
.post-content .cta-box {
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 208, 132, 0.3);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

/* ========== POST FOOTER ========== */
.post-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.back-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--link-hover);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-tagline a {
  color: var(--accent);
  text-decoration: none;
}

.footer-tagline a:hover {
  color: var(--link-hover);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .home-title { font-size: 1.7rem; }
  .post-title { font-size: 1.5rem; }
  .post-content { font-size: 1rem; }
  .post-card { padding: 1.25rem 1.25rem; }
  .site-nav { gap: 1rem; }
  .home-header { padding: 2.5rem 0 2rem; }
  .post-single { padding: 2rem 0 3rem; }
}

@media (max-width: 400px) {
  .site-nav a:last-child { display: none; }
}


/* ========== INLINE CTA BANNER V2 — Professional ========== */
.inline-cta-v2 {
  
  margin: 3rem 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d1f2d 0%, #0a1628 40%, #0f1f15 100%);
  border: 1px solid rgba(0, 208, 132, 0.3); border-left: 4px solid var(--accent);
  overflow: hidden;
  transition: border-color 0.3s;
}

.inline-cta-v2:hover {
  border-color: rgba(0, 208, 132, 0.45);
}

/* Subtle glow effect */
.cta-v2-glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 208, 132, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-v2-content {
  
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  z-index: 1;
}

/* Shield icon */
.cta-v2-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 208, 132, 0.15), rgba(0, 208, 132, 0.05));
  border: 1px solid rgba(0, 208, 132, 0.3); border-left: 4px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

/* Text block */
.cta-v2-text {
  flex: 1;
  min-width: 0;
}

.cta-v2-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
}

.cta-v2-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.cta-v2-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Button */
.cta-v2-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 208, 132, 0.2);
}

.cta-v2-btn:hover {
  background: var(--link-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 208, 132, 0.3);
}

.cta-v2-btn svg {
  transition: transform 0.2s;
}

.cta-v2-btn:hover svg {
  transform: translateX(3px);
}

/* Decorative dots */
.cta-v2-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}

.cta-v2-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 208, 132, 0.2);
}

/* Responsive */
@media (max-width: 640px) {
  .cta-v2-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem 1.25rem 1.75rem;
  }
  .cta-v2-icon { display: none; }
  .cta-v2-btn { width: 100%; justify-content: center; }
}

/* ========== CODE COPY BUTTON ========== */
.code-block-wrapper {
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 208, 132, 0.1);
  border: 1px solid rgba(0, 208, 132, 0.2);
  color: #94a3b8;
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 0;
  line-height: 1;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}

.copy-btn:hover {
  background: rgba(0, 208, 132, 0.2);
  border-color: rgba(0, 208, 132, 0.4);
  color: #00d084;
}

.copy-btn.copied {
  background: rgba(0, 208, 132, 0.25);
  border-color: #00d084;
  color: #00d084;
}

.copy-btn svg {
  width: 16px;
  height: 16px;
}

.copy-btn .label {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
}
