/* TechPro Blog — Frontend Styles */

:root {
  --techpro-bg:       #0a0c10;
  --techpro-bg2:      #111318;
  --techpro-bg3:      #1a1d24;
  --techpro-bg4:      #22262f;
  --techpro-border:   rgba(255,255,255,0.08);
  --techpro-border2:  rgba(255,255,255,0.15);
  --techpro-text:     #e8eaf0;
  --techpro-muted:    #8890a4;
  --techpro-primary:  #0078d4;
  --techpro-accent:   #00b4d8;
  --techpro-ps:       #2563eb;
  --techpro-ps2:      #60a5fa;
  --techpro-o365:     #d83b01;
  --techpro-o365-2:   #fbbf24;
  --techpro-mc:       #5d8b3a;
  --techpro-mc2:      #86efac;
  --techpro-win:      #0078d4;
  --techpro-radius:   10px;
  --techpro-mono:     'JetBrains Mono', 'Consolas', monospace;
}

/* ─── Layout Wrappers ──────────────────────────────── */
.techpro-section { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── Hero ─────────────────────────────────────────── */
.techpro-hero {
  background: var(--techpro-bg2);
  border-bottom: 1px solid var(--techpro-border);
  padding: 60px 24px;
  position: relative; overflow: hidden;
}
.techpro-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0,120,212,.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(0,180,216,.08) 0%, transparent 60%);
  pointer-events: none;
}
.techpro-hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  position: relative;
}
.techpro-hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,120,212,.15); border: 1px solid rgba(0,120,212,.3);
  color: var(--techpro-accent); font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 16px;
  letter-spacing: .5px;
}
.techpro-hero h1 { font-size: 38px; font-weight: 700; line-height: 1.2; margin: 0 0 16px; color: var(--techpro-text); }
.techpro-hero h1 em { font-style: normal; color: var(--techpro-accent); }
.techpro-hero p { color: var(--techpro-muted); font-size: 16px; line-height: 1.8; margin: 0 0 28px; }
.techpro-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.techpro-btn-primary {
  background: var(--techpro-primary); color: #fff; padding: 11px 24px;
  border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px;
  transition: background .2s, transform .2s; display: inline-flex; align-items: center; gap: 6px;
}
.techpro-btn-primary:hover { background: #1487e0; transform: translateY(-1px); color: #fff; }
.techpro-btn-secondary {
  background: transparent; color: var(--techpro-text); padding: 11px 24px;
  border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px;
  border: 1px solid var(--techpro-border2); transition: background .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.techpro-btn-secondary:hover { background: var(--techpro-bg3); color: var(--techpro-text); }

/* Terminal */
.techpro-hero-terminal {
  background: #0d1117; border: 1px solid var(--techpro-border2);
  border-radius: 12px; overflow: hidden;
}
.techpro-terminal-bar {
  background: var(--techpro-bg3); padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--techpro-border);
}
.techpro-t-dot { width: 12px; height: 12px; border-radius: 50%; }
.techpro-t-dot.r { background: #ff5f56; }
.techpro-t-dot.y { background: #ffbd2e; }
.techpro-t-dot.g { background: #27c93f; }
.techpro-terminal-title { color: var(--techpro-muted); font-size: 12px; font-family: var(--techpro-mono); margin-left: 6px; }
.techpro-terminal-body {
  padding: 20px; font-family: var(--techpro-mono); font-size: 13px;
  line-height: 1.9; color: var(--techpro-text); white-space: pre-wrap;
}
.techpro-terminal-body .techpro-prompt { color: var(--techpro-ps2); }
.techpro-terminal-cursor {
  display: inline-block; width: 8px; height: 15px;
  background: var(--techpro-accent); vertical-align: middle;
  animation: techpro-blink 1s infinite;
}
@keyframes techpro-blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ─── Categories Bar ────────────────────────────────── */
.techpro-categories-bar {
  background: var(--techpro-bg2);
  border-bottom: 1px solid var(--techpro-border);
  overflow-x: auto; scrollbar-width: none;
}
.techpro-categories-bar::-webkit-scrollbar { display: none; }
.techpro-categories-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 4px; padding: 12px 24px;
}
.techpro-cat-btn {
  flex-shrink: 0; display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 8px; text-decoration: none;
  font-size: 13px; font-weight: 500; color: var(--techpro-muted);
  border: 1px solid transparent; transition: all .2s; cursor: pointer;
  background: none;
}
.techpro-cat-btn:hover { background: var(--techpro-bg3); color: var(--techpro-text); }
.techpro-cat-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ─── Cards ─────────────────────────────────────────── */
.techpro-card {
  background: var(--techpro-bg2); border: 1px solid var(--techpro-border);
  border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--techpro-text);
  transition: border-color .25s, transform .25s, background .25s;
  display: flex; flex-direction: column;
}
.techpro-card:hover { border-color: var(--techpro-border2); transform: translateY(-2px); background: var(--techpro-bg3); }
.techpro-card-thumb {
  height: 160px; display: flex; align-items: center; justify-content: center;
  font-size: 48px; position: relative; overflow: hidden; flex-direction: column; gap: 8px;
}
.techpro-card-thumb.ps  { background: linear-gradient(135deg,#0f1f4a,#1e3a8a); }
.techpro-card-thumb.o365{ background: linear-gradient(135deg,#2a0e00,#7c1a00); }
.techpro-card-thumb.mc  { background: linear-gradient(135deg,#0d2010,#1a4d1a); }
.techpro-card-thumb.win { background: linear-gradient(135deg,#001a33,#003366); }
.techpro-card-thumb.net { background: linear-gradient(135deg,#1a0a33,#3b1f66); }
.techpro-card-thumb.az  { background: linear-gradient(135deg,#001833,#0b3d82); }
.techpro-thumb-code {
  font-family: var(--techpro-mono); font-size: 10px;
  color: rgba(255,255,255,.5); padding: 0 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.techpro-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.techpro-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.techpro-tag {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px;
  font-family: var(--techpro-mono);
}
.techpro-tag-ps   { background: rgba(37,99,235,.2);  color: var(--techpro-ps2); }
.techpro-tag-o365 { background: rgba(216,59,1,.15);  color: var(--techpro-o365-2); }
.techpro-tag-mc   { background: rgba(93,139,58,.2);  color: var(--techpro-mc2); }
.techpro-tag-win  { background: rgba(0,120,212,.15); color: #60c3ff; }
.techpro-tag-net  { background: rgba(139,92,246,.15);color: #c4b5fd; }
.techpro-tag-az   { background: rgba(0,120,212,.12); color: #93c5fd; }
.techpro-card h3  { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--techpro-text); margin: 0; }
.techpro-card p   { font-size: 13px; color: var(--techpro-muted); line-height: 1.6; flex: 1; margin: 0; }
.techpro-card-meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.techpro-card-date { font-size: 12px; color: var(--techpro-muted); }
.techpro-card-read { font-size: 12px; color: var(--techpro-muted); margin-left: auto; }

/* Featured big card */
.techpro-card-featured { flex-direction: row; }
.techpro-card-featured .techpro-card-thumb { width: 260px; height: auto; flex-shrink: 0; }

/* List cards */
.techpro-card-list {
  background: var(--techpro-bg2); border: 1px solid var(--techpro-border);
  border-radius: 10px; padding: 16px 20px; text-decoration: none; color: var(--techpro-text);
  transition: all .2s; display: flex; align-items: flex-start; gap: 16px;
}
.techpro-card-list:hover { border-color: var(--techpro-border2); background: var(--techpro-bg3); }
.techpro-list-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.techpro-list-icon.ps  { background: rgba(37,99,235,.15); }
.techpro-list-icon.o365{ background: rgba(216,59,1,.12); }
.techpro-list-icon.mc  { background: rgba(93,139,58,.15); }
.techpro-list-icon.win { background: rgba(0,120,212,.12); }
.techpro-list-body { flex: 1; }
.techpro-list-body h4 { font-size: 14px; font-weight: 600; margin: 0 0 4px; color: var(--techpro-text); }
.techpro-list-body p  { font-size: 12px; color: var(--techpro-muted); margin: 0; }
.techpro-list-meta { flex-shrink: 0; text-align: right; }
.techpro-list-date { font-size: 11px; color: var(--techpro-muted); font-family: var(--techpro-mono); }

/* ─── Featured Grid ─────────────────────────────────── */
.techpro-featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.techpro-articles-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }

/* ─── Section Title ─────────────────────────────────── */
.techpro-section-title {
  font-size: 12px; font-weight: 600; color: var(--techpro-muted);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin: 32px 0 20px; display: flex; align-items: center; gap: 10px;
}
.techpro-section-title::after { content:''; flex:1; height:1px; background:var(--techpro-border); }

/* ─── Categories Grid ───────────────────────────────── */
.techpro-categories-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 40px; }
.techpro-cat-card {
  background: var(--techpro-bg2); border: 1px solid var(--techpro-border);
  border-radius: 10px; padding: 20px 16px; text-decoration: none; color: var(--techpro-text);
  transition: all .2s; text-align: center;
}
.techpro-cat-card:hover { border-color: var(--techpro-border2); transform: translateY(-2px); }
.techpro-cat-emoji { font-size: 32px; margin-bottom: 10px; display: block; }
.techpro-cat-name  { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--techpro-text); }
.techpro-cat-count { font-size: 12px; color: var(--techpro-muted); font-family: var(--techpro-mono); }

/* ─── Snippet Block ─────────────────────────────────── */
.techpro-snippet-card {
  background: var(--techpro-bg2); border: 1px solid var(--techpro-border);
  border-radius: 12px; overflow: hidden; margin-bottom: 40px;
}
.techpro-snippet-header {
  background: var(--techpro-bg3); padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--techpro-border);
}
.techpro-snippet-header span { font-size: 13px; font-weight: 600; flex: 1; color: var(--techpro-text); }

/* ─── Code Blocks ───────────────────────────────────── */
.techpro-code-block { margin: 1.5em 0; border-radius: var(--techpro-radius); overflow: hidden; border: 1px solid var(--techpro-border2); }
.techpro-code-header {
  background: var(--techpro-bg3); padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--techpro-border);
}
.techpro-code-lang  { font-family: var(--techpro-mono); font-size: 11px; color: var(--techpro-accent); font-weight: 600; text-transform: uppercase; }
.techpro-code-title { font-size: 13px; color: var(--techpro-text); flex: 1; }
.techpro-copy-btn {
  background: var(--techpro-bg4); border: 1px solid var(--techpro-border2);
  color: var(--techpro-muted); font-size: 11px; padding: 4px 10px; border-radius: 6px;
  cursor: pointer; font-family: var(--techpro-mono); transition: all .2s; margin-left: auto;
}
.techpro-copy-btn:hover { color: var(--techpro-text); }
.techpro-code-block pre { margin: 0; padding: 0; background: #0d1117; }
.techpro-code-block code { font-family: var(--techpro-mono) !important; font-size: 13px !important; }

/* ─── Ads ───────────────────────────────────────────── */
.techpro-ad { margin: 24px 0; }
.techpro-ad-label { font-size: 10px; color: var(--techpro-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; text-align: center; }
.techpro-ad-empty {
  background: var(--techpro-bg3); border: 1px dashed var(--techpro-border2);
  border-radius: var(--techpro-radius); padding: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--techpro-muted); font-size: 13px; min-height: 60px; justify-content: center;
}
.techpro-ad-configure { color: var(--techpro-accent); font-size: 12px; text-decoration: none; }

/* ─── Sidebar Widgets ───────────────────────────────── */
.techpro-sidebar-widget {
  background: var(--techpro-bg2); border: 1px solid var(--techpro-border);
  border-radius: 12px; overflow: hidden; margin-bottom: 24px;
}
.techpro-sidebar-widget .widget-header {
  padding: 14px 18px; border-bottom: 1px solid var(--techpro-border);
  font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px;
  color: var(--techpro-text);
}
.techpro-sidebar-widget .widget-body { padding: 16px 18px; }

/* Popular */
.techpro-popular-list { display: flex; flex-direction: column; }
.techpro-popular-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--techpro-border);
  text-decoration: none; color: var(--techpro-text);
  transition: all .2s; align-items: flex-start;
}
.techpro-popular-item:last-child { border-bottom: none; padding-bottom: 0; }
.techpro-popular-item:hover .techpro-popular-title { color: var(--techpro-accent); }
.techpro-popular-num { font-family: var(--techpro-mono); font-size: 18px; font-weight: 700; color: var(--techpro-border2); line-height: 1; flex-shrink: 0; width: 28px; }
.techpro-popular-title { font-size: 13px; font-weight: 500; line-height: 1.5; margin-bottom: 3px; }
.techpro-popular-meta  { font-size: 11px; color: var(--techpro-muted); }

/* Stats */
.techpro-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.techpro-stat-item { background: var(--techpro-bg3); border-radius: 8px; padding: 12px; text-align: center; }
.techpro-stat-num   { font-size: 20px; font-weight: 700; font-family: var(--techpro-mono); color: var(--techpro-accent); }
.techpro-stat-label { font-size: 11px; color: var(--techpro-muted); margin-top: 2px; }

/* Newsletter */
.techpro-newsletter-widget p { font-size: 13px; color: var(--techpro-muted); margin-bottom: 10px; }
.techpro-newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.techpro-email-input {
  background: var(--techpro-bg3); border: 1px solid var(--techpro-border2);
  color: var(--techpro-text); padding: 9px 12px; border-radius: 8px;
  font-size: 13px; width: 100%; outline: none; transition: border-color .2s;
}
.techpro-email-input:focus { border-color: var(--techpro-primary); }
.techpro-email-input::placeholder { color: var(--techpro-muted); }
.techpro-newsletter-btn {
  background: var(--techpro-primary); color: #fff; border: none; padding: 9px;
  border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; width: 100%;
  transition: background .2s;
}
.techpro-newsletter-btn:hover { background: #1487e0; }

/* Tag cloud */
.techpro-tag-cloud-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.techpro-tag-cloud-item {
  background: var(--techpro-bg3); border: 1px solid var(--techpro-border);
  color: var(--techpro-muted); font-size: 12px; padding: 5px 12px;
  border-radius: 6px; text-decoration: none; transition: all .2s;
  font-family: var(--techpro-mono);
}
.techpro-tag-cloud-item:hover { background: var(--techpro-bg4); border-color: var(--techpro-border2); color: var(--techpro-text); }

/* ─── Pagination ────────────────────────────────────── */
.techpro-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.techpro-page-btn {
  background: var(--techpro-bg2); border: 1px solid var(--techpro-border);
  color: var(--techpro-muted); min-width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  cursor: pointer; transition: all .2s; text-decoration: none; padding: 0 10px;
}
.techpro-page-btn:hover,
.techpro-page-btn.current { background: var(--techpro-primary); border-color: var(--techpro-primary); color: #fff; }

/* ─── Difficulty Badge ──────────────────────────────── */
.techpro-difficulty-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.techpro-diff-basit { background: rgba(93,139,58,.2); color: var(--techpro-mc2); }
.techpro-diff-orta  { background: rgba(251,191,36,.15); color: #fbbf24; }
.techpro-diff-ileri { background: rgba(220,38,38,.15);  color: #f87171; }

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
  .techpro-categories-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .techpro-hero-inner { grid-template-columns: 1fr; }
  .techpro-hero-terminal { display: none; }
  .techpro-hero h1 { font-size: 26px; }
  .techpro-featured-grid { grid-template-columns: 1fr; }
  .techpro-card-featured { flex-direction: column; }
  .techpro-card-featured .techpro-card-thumb { width: 100%; height: 160px; }
  .techpro-categories-grid { grid-template-columns: 1fr 1fr; }
}
