/* === PC Ekspert Hugo Theme — Production === */

:root {
  --pce-bg: #0a0e17;
  --pce-surface: #111827;
  --pce-surface-hover: #1a2332;
  --pce-border: #1e293b;
  --pce-text: #e2e8f0;
  --pce-text-muted: #94a3b8;
  --pce-accent: #3b82f6;
  --pce-accent-hover: #60a5fa;
  --pce-accent-glow: rgba(59, 130, 246, 0.15);
  --pce-red: #ef4444;
  --pce-green: #22c55e;
  --pce-yellow: #eab308;
  --pce-radius: 8px;
  --pce-max-width: 1280px;
  --pce-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --pce-font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--pce-font);
  background: var(--pce-bg);
  color: var(--pce-text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pce-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--pce-accent-hover); }
img { max-width: 100%; height: auto; display: block; }

/* === HEADER === */
.site-header {
  border-bottom: 1px solid var(--pce-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(17, 24, 39, 0.92);
}
.header-inner {
  max-width: var(--pce-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo { font-size: 1.4rem; font-weight: 800; color: var(--pce-text); letter-spacing: -0.5px; }
.site-logo span { color: var(--pce-accent); }
.main-nav { display: flex; gap: 0.25rem; }
.main-nav a {
  color: var(--pce-text-muted);
  padding: 0.5rem 1rem;
  border-radius: var(--pce-radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--pce-text); background: var(--pce-surface-hover); }
.nav-toggle { display: none; background: none; border: none; color: var(--pce-text); font-size: 1.5rem; cursor: pointer; }

/* === MAIN LAYOUT === */
.site-main {
  max-width: var(--pce-max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* === SECTION TITLES === */
.section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--pce-accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--pce-border); }

/* === HERO / U FOKUSU === */
.hero-article {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  margin-bottom: 3rem;
  background: var(--pce-surface);
  border-radius: var(--pce-radius);
  overflow: hidden;
  border: 1px solid var(--pce-border);
  transition: border-color 0.3s;
}
.hero-article:hover { border-color: var(--pce-accent); }
.hero-image { aspect-ratio: 16/10; overflow: hidden; background: var(--pce-surface-hover); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.hero-article:hover .hero-image img { transform: scale(1.03); }
.hero-content { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.hero-content .meta { font-size: 0.8rem; color: var(--pce-text-muted); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.hero-content h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; margin-bottom: 1rem; }
.hero-content h2 a { color: var(--pce-text); }
.hero-content h2 a:hover { color: var(--pce-accent); }
.hero-content .excerpt { color: var(--pce-text-muted); font-size: 0.93rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hero-content .read-more { margin-top: 1.5rem; display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.9rem; }
.hero-content .read-more::after { content: '→'; transition: transform 0.2s; }
.hero-content .read-more:hover::after { transform: translateX(4px); }

/* === ARTICLE CARDS — with image overlay titles === */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.article-card {
  background: var(--pce-surface);
  border: 1px solid var(--pce-border);
  border-radius: var(--pce-radius);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  border-color: var(--pce-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.article-card .card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--pce-surface-hover);
}
.article-card .card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.article-card:hover .card-image img { transform: scale(1.05); }

/* Image overlay with title */
.article-card .card-image .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1rem 0.75rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  pointer-events: none;
}
.article-card .card-image .card-overlay h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

/* No-image fallback */
.article-card .card-image-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--pce-surface-hover), var(--pce-surface));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pce-text-muted);
  font-size: 2rem;
  position: relative;
}
.article-card .card-image-placeholder .card-overlay h3 { color: var(--pce-text); }

.article-card .card-body { padding: 1rem 1.25rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.article-card .meta {
  font-size: 0.78rem;
  color: var(--pce-text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}
.article-card .meta .category {
  background: var(--pce-accent-glow);
  color: var(--pce-accent);
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.article-card .card-body h3 { font-size: 1rem; font-weight: 600; line-height: 1.35; margin-bottom: 0.4rem; }
.article-card .card-body h3 a { color: var(--pce-text); }
.article-card .card-body h3 a:hover { color: var(--pce-accent); }
.article-card .excerpt { color: var(--pce-text-muted); font-size: 0.85rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }

/* Rating badge */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--pce-green);
  color: #000;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.rating-badge.medium { background: var(--pce-yellow); }
.rating-badge.low { background: var(--pce-red); color: #fff; }

/* === TWO COLUMN LAYOUT (home) === */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

/* === NEWS LIST (compact) === */
.news-list { display: flex; flex-direction: column; gap: 0.75rem; }
.news-item {
  display: flex;
  gap: 1rem;
  padding: 0.85rem;
  background: var(--pce-surface);
  border: 1px solid var(--pce-border);
  border-radius: var(--pce-radius);
  transition: all 0.2s;
}
.news-item:hover { border-color: var(--pce-accent); background: var(--pce-surface-hover); }
.news-item .news-thumb {
  width: 110px;
  min-width: 110px;
  aspect-ratio: 16/10;
  border-radius: 4px;
  overflow: hidden;
  background: var(--pce-surface-hover);
}
.news-item .news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item .news-body { flex: 1; min-width: 0; }
.news-item .news-body h4 { font-size: 0.88rem; font-weight: 600; line-height: 1.35; margin-bottom: 0.25rem; }
.news-item .news-body h4 a { color: var(--pce-text); }
.news-item .news-body h4 a:hover { color: var(--pce-accent); }
.news-item .meta { font-size: 0.75rem; color: var(--pce-text-muted); }

/* === SINGLE ARTICLE === */
.article-single { max-width: 820px; margin: 0 auto; }
.article-single .article-header { margin-bottom: 2rem; }
.article-single .article-header h1 { font-size: 2rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.article-single .article-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--pce-text-muted);
  font-size: 0.88rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--pce-border);
  flex-wrap: wrap;
}
.article-single .featured-image { margin-bottom: 2rem; border-radius: var(--pce-radius); overflow: hidden; }

/* Rating box in articles */
.article-rating-box {
  background: var(--pce-surface);
  border: 1px solid var(--pce-border);
  border-radius: var(--pce-radius);
  padding: 1.5rem;
  margin: 2rem 0;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.article-rating-score {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--pce-green);
  min-width: 80px;
  text-align: center;
}
.article-rating-score small { display: block; font-size: 0.75rem; color: var(--pce-text-muted); font-weight: 400; margin-top: 0.25rem; }
.article-rating-details { flex: 1; }
.article-rating-details .pros, .article-rating-details .cons { margin-bottom: 0.75rem; font-size: 0.9rem; line-height: 1.6; }
.article-rating-details .pros strong { color: var(--pce-green); }
.article-rating-details .cons strong { color: var(--pce-red); }
.article-rating-provider { font-size: 0.8rem; color: var(--pce-text-muted); font-style: italic; }

/* Article content */
.article-content { font-size: 1.05rem; line-height: 1.8; }
.article-content h2 { font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 1rem; }
.article-content h3 { font-size: 1.2rem; font-weight: 600; margin: 2rem 0 0.75rem; }
.article-content p { margin-bottom: 1.25rem; }
.article-content img { border-radius: var(--pce-radius); margin: 1.5rem auto; display: block; cursor: zoom-in; }
.article-content p > a > img, .article-content a > img { cursor: zoom-in; }
/* Center image links (WordPress wraps images in <a> pointing to full-size) */
.article-content p:has(> a > img) { text-align: center; }
.article-content a:has(> img) { display: inline-block; }

/* === LIGHTBOX === */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  cursor: zoom-out;
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-overlay img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--pce-radius);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.3s;
}
.lightbox-overlay.active img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }
.article-content blockquote { border-left: 3px solid var(--pce-accent); padding: 0.75rem 1.5rem; margin: 1.5rem 0; background: var(--pce-accent-glow); border-radius: 0 var(--pce-radius) var(--pce-radius) 0; color: var(--pce-text-muted); }
.article-content code { font-family: var(--pce-font-mono); background: var(--pce-surface); padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.9em; }
.article-content pre { background: var(--pce-surface); border: 1px solid var(--pce-border); border-radius: var(--pce-radius); padding: 1.25rem; overflow-x: auto; margin: 1.5rem 0; }
.article-content pre code { background: none; padding: 0; }
.article-content table { max-width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.92rem; }
.article-content th, .article-content td { padding: 0.6rem 0.85rem; border: 1px solid var(--pce-border); text-align: left; }
.article-content th { background: var(--pce-surface); font-weight: 600; font-size: 0.88rem; }
/* Collapse truly empty cells */
.article-content td:empty, .article-content th:empty { padding: 0; border: none; width: 0; max-width: 0; font-size: 0; line-height: 0; }
/* Generic table strong = accent color */
.article-content table td strong { color: var(--pce-accent); }
/* Nested table cleanup */
.article-content table table { margin: 0; border: none; }
.article-content table table td { border-color: var(--pce-border); }

/* === SPEC TABLE (converted from WP nested tables) === */
.spec-table {
  background: var(--pce-surface);
  border: 1px solid var(--pce-border);
  border-radius: var(--pce-radius);
  overflow: hidden;
  margin: 2rem 0;
  width: 100%;
}
.spec-table .spec-title {
  margin: 0;
  padding: 0.85rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  background: linear-gradient(135deg, var(--pce-accent), #1d4ed8);
  border-bottom: none;
}
.spec-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.9rem;
  table-layout: fixed;
}
.spec-table tr { transition: background 0.15s; }
.spec-table tr:hover { background: var(--pce-surface-hover); }
.spec-table td {
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid var(--pce-border);
  vertical-align: top;
  word-wrap: break-word;
}
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child {
  width: 30%;
  color: var(--pce-text-muted);
  font-size: 0.85rem;
}
.spec-table td:first-child strong { color: var(--pce-accent); font-weight: 600; }
.spec-table td:last-child { color: var(--pce-text); }
.spec-table a { color: var(--pce-accent); }
.spec-table a:hover { color: var(--pce-accent-hover); text-decoration: underline; }
/* Two spec tables side by side on wide screens */
.spec-table + .spec-table { margin-top: 1rem; }

.article-content hr { border: none; border-top: 1px solid var(--pce-border); margin: 2.5rem 0; }

/* === BENCHMARK CHART === */
.benchmark-chart { background: var(--pce-surface); border: 1px solid var(--pce-border); border-radius: var(--pce-radius); padding: 1.5rem; margin: 2rem 0; }
.benchmark-chart h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 1rem; color: var(--pce-text-muted); }
.benchmark-bar { display: flex; align-items: center; margin-bottom: 0.6rem; gap: 0.75rem; }
.benchmark-label { width: 180px; min-width: 180px; font-size: 0.85rem; text-align: right; color: var(--pce-text-muted); }
.benchmark-track { flex: 1; height: 28px; background: var(--pce-bg); border-radius: 4px; overflow: hidden; }
.benchmark-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--pce-accent), var(--pce-accent-hover)); display: flex; align-items: center; justify-content: flex-end; padding-right: 0.75rem; font-size: 0.78rem; font-weight: 700; color: #fff; min-width: 50px; }
.benchmark-fill.highlight { background: linear-gradient(90deg, var(--pce-green), #4ade80); }

/* === PAGINATION (handles hundreds of pages) === */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin: 3rem 0 1rem;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  padding: 0.45rem 0.85rem;
  border-radius: var(--pce-radius);
  font-size: 0.88rem;
  font-weight: 500;
}
.pagination a {
  background: var(--pce-surface);
  border: 1px solid var(--pce-border);
  color: var(--pce-text);
  transition: all 0.2s;
}
.pagination a:hover { border-color: var(--pce-accent); background: var(--pce-surface-hover); }
.pagination .active { background: var(--pce-accent); color: #fff; border: 1px solid var(--pce-accent); }
.pagination .ellipsis { color: var(--pce-text-muted); padding: 0.45rem 0.4rem; }
.pagination .nav-arrow { font-weight: 700; }
.page-info { text-align: center; color: var(--pce-text-muted); font-size: 0.8rem; margin-bottom: 2rem; }

/* === AD PLACEHOLDER === */
.ad-slot { background: var(--pce-surface); border: 1px dashed var(--pce-border); border-radius: var(--pce-radius); padding: 2rem; text-align: center; color: var(--pce-text-muted); font-size: 0.8rem; margin: 1.5rem 0; }

/* === FORUM WIDGET === */
.forum-widget { background: var(--pce-surface); border: 1px solid var(--pce-border); border-radius: var(--pce-radius); padding: 1.25rem; }
.forum-item { padding: 0.6rem 0; border-bottom: 1px solid var(--pce-border); display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.forum-item:last-child { border-bottom: none; }
.forum-item a { font-size: 0.88rem; color: var(--pce-text); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forum-item a:hover { color: var(--pce-accent); }
.forum-item .time { font-size: 0.75rem; color: var(--pce-text-muted); white-space: nowrap; }

/* === FOOTER === */
.site-footer { border-top: 1px solid var(--pce-border); margin-top: 3rem; padding: 2rem 0; text-align: center; color: var(--pce-text-muted); font-size: 0.85rem; }
.site-footer .footer-inner { max-width: var(--pce-max-width); margin: 0 auto; padding: 0 1.5rem; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .home-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero-article { grid-template-columns: 1fr; }
  .hero-content { padding: 1.25rem; }
  .hero-content h2 { font-size: 1.3rem; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--pce-surface); border-bottom: 1px solid var(--pce-border); padding: 0.5rem; z-index: 99; }
  .nav-toggle { display: block; }
  .article-single .article-header h1 { font-size: 1.6rem; }
  .article-rating-box { flex-direction: column; gap: 1rem; }
  .benchmark-label { width: 120px; min-width: 120px; font-size: 0.78rem; }
}
@media (max-width: 480px) {
  .articles-grid { grid-template-columns: 1fr; }
}
