/* ================================================================
   single.css — Single Post Page Styles
   compu-pc.es | Extends main.css
   ================================================================ */

/* ================================================================
   1. LAYOUT: content-inner override for single pages
   ================================================================ */
.content-inner {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--gap);
  max-width: var(--max-w);
  margin: 12px auto 24px;
  padding: 0 12px;
  align-items: start;
}

.content-main {
  background: #fff;
  border-radius: var(--r-md);
  padding: 18px 20px 24px;
  color: #222;
  min-width: 0;
}

/* ================================================================
   2. BREADCRUMB (inherits from main.css, minimal override)
   ================================================================ */
.breadcrumb {
  font-size: 12px;
  color: #888;
  padding: 0 0 12px;
}
.breadcrumb ol li a { color: #b30019; }

/* ================================================================
   3. SOCIAL SHARE — fixed left bar
   ================================================================ */
.social-share-fixed {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 22px;
  color: #fff;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  transition: width var(--tr-fast), background var(--tr-fast);
  text-decoration: none;
}
.social-wa { background: #25D366; }
.social-tg { background: #0088cc; }
.social-btn:hover { width: 48px; color: #fff; }

@media (max-width: 990px) {
  .social-share-fixed { display: none; }
}

/* ================================================================
   4. ENTRY TITLE
   ================================================================ */
.entry-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 8px;
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 8px;
}

/* ================================================================
   5. POST META BAR
   ================================================================ */
.post-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #777;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.meta-item { display: flex; align-items: center; gap: 4px; }
.meta-item .icon { color: var(--clr-primary); font-size: 16px; }
.meta-updated { color: #27ae60; }
.meta-updated .icon { color: #27ae60; }

/* ================================================================
   6. ENTRY TOP: cover + ficha side by side
   ================================================================ */
.entry-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* ---- Cover Image ---- */
.entry-cover {
  flex-shrink: 0;
}

.cover-link {
  display: block;
  border: 3px solid #ccc;
  border-radius: var(--r-sm);
  padding: 3px;
  background: #f5f5f5;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}
.cover-link:hover {
  border-color: var(--clr-primary);
  box-shadow: 0 4px 16px rgba(200,0,30,0.2);
}

.cover-img {
  display: block;
  width: 195px;
  height: auto;
  border-radius: 2px;
}

@media (max-width: 600px) {
  .entry-top { flex-direction: column; }
  .cover-img  { width: 100%; max-width: 280px; }
}

/* ---- Ficha Técnica ---- */
.ficha-tecnica {
  flex: 1;
  min-width: 220px;
}

.ficha-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #333, #555);
  padding: 6px 12px;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  margin: 0;
}

.ficha-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  border: 1px solid #ddd;
  border-top: none;
}

.ficha-table th {
  background: #f0f0f0;
  color: #555;
  font-weight: 700;
  text-align: left;
  padding: 5px 8px;
  width: 38%;
  border-bottom: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  white-space: nowrap;
}

.ficha-table td {
  padding: 5px 8px;
  color: #333;
  border-bottom: 1px solid #e8e8e8;
  vertical-align: top;
  word-break: break-word;
}

.ficha-table td a { color: var(--clr-primary); }
.ficha-table tr:last-child th,
.ficha-table tr:last-child td { border-bottom: none; }

/* ================================================================
   7. DOWNLOAD BUTTON
   ================================================================ */
.download-btn-wrap {
  display: flex;
  justify-content: center;
  margin: 18px 0 20px;
  clear: both;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--clr-primary-dk), var(--clr-primary));
  color: #e2edf3;
  font-size: 24px;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
  min-width: 300px;
  height: 80px;
  border-radius: var(--r-md);
  text-decoration: none;
  border: 1px solid var(--clr-primary-dk);
  box-shadow: 0 4px 20px rgba(200,0,30,0.35);
  animation: pulse-glow 2.5s ease-in-out infinite;
  transition: background var(--tr-fast), transform var(--tr-fast), box-shadow var(--tr-fast);
}

.btn-download .icon {
  font-size: 32px;
}

.btn-download:hover {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-lt));
  color: #fff;
  animation: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200,0,30,0.5);
}

/* ================================================================
   8. ENTRY CONTENT (post body / description)
   ================================================================ */
.entry-content {
  font-size: 14px;
  line-height: 1.75;
  color: #333;
  margin-bottom: 20px;
}

.entry-content h2 { font-size: 18px; color: #111; margin: 18px 0 8px; }
.entry-content h3 { font-size: 16px; color: #222; margin: 14px 0 6px; }
.entry-content p  { margin-bottom: 12px; }
.entry-content ul, .entry-content ol { margin: 8px 0 12px 20px; }
.entry-content li { margin-bottom: 4px; }
.entry-content a  { color: var(--clr-primary); }
.entry-content a:hover { text-decoration: underline; }
.entry-content strong { color: #111; }

/* ================================================================
   9. SECTION HEADINGS (shared)
   ================================================================ */
.section-heading {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #333, #555);
  padding: 7px 14px;
  border-radius: var(--r-sm);
  margin: 24px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-heading .icon {
  font-size: 20px;
  color: var(--clr-primary);
}

/* ================================================================
   10. SCREENSHOTS GALLERY
   ================================================================ */
.screenshots-section { margin-bottom: 20px; }

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.screenshot-item { position: relative; overflow: hidden; border-radius: var(--r-sm); }

.screenshot-link { display: block; position: relative; }

.screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-sm);
  transition: transform var(--tr-mid), filter var(--tr-mid);
}

.screenshot-overlay {
  position: absolute;
  inset: 0;
  background: rgba(200,0,30,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--tr-mid);
  font-size: 24px;
  color: #fff;
}

.screenshot-link:hover .screenshot-img    { transform: scale(1.04); filter: brightness(0.85); }
.screenshot-link:hover .screenshot-overlay{ opacity: 1; }

@media (max-width: 600px) {
  .screenshots-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   11. LIGHTBOX
   ================================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 8px 40px rgba(0,0,0,0.8);
  animation: lb-in 0.25s ease;
}

@keyframes lb-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-caption {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(0,0,0,0.6);
  border: none;
  color: #fff;
  font-size: 20px;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: var(--r-sm);
  z-index: 2;
  transition: background var(--tr-fast);
}
.lightbox-close  { top: 16px; right: 16px; font-size: 24px; }
.lightbox-prev   { left: 16px;  top: 50%; transform: translateY(-50%); font-size: 28px; }
.lightbox-next   { right: 16px; top: 50%; transform: translateY(-50%); font-size: 28px; }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--clr-primary); }

/* ================================================================
   12. SYSTEM REQUIREMENTS
   ================================================================ */
.sysreq-section { margin-bottom: 20px; }

.sysreq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .sysreq-grid { grid-template-columns: 1fr; }
}

.sysreq-col {
  border: 1px solid #ddd;
  border-radius: var(--r-sm);
  overflow: hidden;
}

.sysreq-col-title {
  font-size: 13px;
  font-weight: 700;
  padding: 7px 12px;
  margin: 0;
  color: #fff;
  text-align: center;
}
.sysreq-col-title--min { background: #555; }
.sysreq-col-title--rec { background: #1a6624; }

.sysreq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.sysreq-table th {
  background: #f5f5f5;
  color: #555;
  font-weight: 700;
  text-align: left;
  padding: 5px 8px;
  width: 40%;
  border-bottom: 1px solid #e8e8e8;
  border-right: 1px solid #e8e8e8;
  white-space: nowrap;
}
.sysreq-table td {
  padding: 5px 8px;
  color: #333;
  border-bottom: 1px solid #efefef;
  font-size: 11px;
  word-break: break-word;
}
.sysreq-table tr:last-child th,
.sysreq-table tr:last-child td { border-bottom: none; }

/* ================================================================
   13. DOWNLOAD VERSIONS
   ================================================================ */
.versions-section { margin-bottom: 20px; }

.version-fs {
  border: 1px solid #ddd;
  border-radius: var(--r-sm);
  margin-bottom: 10px;
  overflow: hidden;
}

.version-legend {
  background: linear-gradient(135deg, #333, #555);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  user-select: none;
  transition: background var(--tr-fast);
}
.version-legend:hover { background: linear-gradient(135deg, #444, #666); }

.legend-arrow {
  font-size: 12px;
  transition: transform var(--tr-fast);
}

.version-fs.fs-collapsed .version-body { display: none; }
.version-fs.fs-collapsed .legend-arrow { transform: rotate(-90deg); }
.version-fs:not(.fs-collapsed) .legend-arrow { transform: rotate(90deg); }

.version-body {
  padding: 14px;
  background: #fafafa;
}

.version-includes {
  margin-bottom: 12px;
  font-size: 13px;
  color: #555;
}
.version-includes strong { color: #333; }
.version-includes ul {
  margin: 6px 0 0 16px;
  list-style: disc;
}
.version-includes li { margin-bottom: 3px; }

/* Download link buttons */
.version-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.download-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--clr-primary-dk), var(--clr-primary));
  color: #e2edf3;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--r-md);
  text-decoration: none;
  border: 1px solid var(--clr-primary-dk);
  transition: background var(--tr-fast), transform var(--tr-fast);
  box-shadow: 0 2px 8px rgba(200,0,30,0.2);
}
.download-link-btn:hover {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-lt));
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(200,0,30,0.35);
}

.dl-icon   { font-size: 16px; }
.dl-label  { font-weight: 700; }
.dl-size   { font-size: 11px; color: rgba(255,255,255,0.7); }
.dl-host   { font-size: 11px; color: rgba(255,255,255,0.6); border-left: 1px solid rgba(255,255,255,0.25); padding-left: 6px; }

/* ================================================================
   14. INFO FIELDSET (author/steam link)
   ================================================================ */
.info-fieldset {
  border: 1px solid #ddd;
  border-radius: var(--r-sm);
  padding: 10px 14px;
  margin: 16px 0;
}
.info-fieldset legend {
  font-size: 12px;
  font-weight: 700;
  color: #777;
  padding: 0 6px;
}
.btn-steam {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--clr-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--tr-fast);
}
.btn-steam:hover { color: var(--clr-primary-lt); }

/* ================================================================
   15. TAXONOMY BADGES
   ================================================================ */
.entry-taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.tax-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  text-decoration: none;
  transition: background var(--tr-fast), color var(--tr-fast);
}
.tax-cat {
  background: rgba(200,0,30,0.08);
  color: var(--clr-primary);
  border: 1px solid rgba(200,0,30,0.2);
}
.tax-cat:hover {
  background: var(--clr-primary);
  color: #fff;
}
.tax-tag {
  background: #f0f0f0;
  color: #555;
  border: 1px solid #ddd;
}
.tax-tag:hover { background: #e0e0e0; color: #333; }

/* ================================================================
   16. RELATED POSTS
   ================================================================ */
.related-posts { margin-top: 20px; }

.related-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #333, #555);
  padding: 7px 14px;
  border-radius: var(--r-sm);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

@media (max-width: 700px) {
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}

.related-item {}

.related-link {
  display: block;
  text-decoration: none;
}

.related-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-sm);
  border: 1px solid #ddd;
  margin-bottom: 5px;
}

.related-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform var(--tr-mid), filter var(--tr-mid);
}

.related-hover {
  position: absolute;
  inset: 0;
  background: rgba(200,0,30,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--tr-mid);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.related-link:hover .related-img  { transform: scale(1.05); filter: brightness(0.85); }
.related-link:hover .related-hover { opacity: 1; }

.related-title-text {
  font-size: 12px;
  color: #333;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
