/*
Theme Name: ScriptHub
Description: Game cheats catalog theme.
Version: 2.0.0
Text Domain: scripthub
*/

:root {
  --bg: #0f1117;
  --bg-card: #1a1d26;
  --bg-hover: #22262f;
  --text: #e4e7ed;
  --text-muted: #8b93a7;
  --border: #2a2f3a;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --green: #22c55e;
  --yellow: #f59e0b;
  --red: #ef4444;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 14px;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  background: rgba(15, 17, 23, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header-inner {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-text {
  background: linear-gradient(90deg, #a855f7, #6366f1, #06b6d4, #a855f7);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: neon-gradient 4s ease infinite;
}

@keyframes neon-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--bg-card);
  padding: 4px;
  border: 2px solid var(--border);
}

.main-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.main-nav a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.15s;
}

.main-nav a:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.btn-add, .btn-admin {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 14px !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
}

.btn-add:hover, .btn-admin:hover {
  background: var(--accent-hover) !important;
  color: #fff !important;
}

.btn-add {
  background: var(--green) !important;
}

.btn-add:hover {
  background: #16a34a !important;
}

/* Social Links */
.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-muted);
  border-radius: 8px;
  transition: all 0.15s;
}

.social-link:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* Header Tools */
.header-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.tool-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.tool-btn:hover {
  color: var(--text);
  background: var(--bg-hover);
  border-color: var(--border-hover);
}

.tool-btn svg {
  width: 18px;
  height: 18px;
}

.tool-btn .icon-moon {
  display: none;
}

.light-theme .tool-btn .icon-sun {
  display: none;
}

.light-theme .tool-btn .icon-moon {
  display: block;
}

/* Search Modal */
.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}

.search-modal.active {
  display: flex;
}

.search-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.search-modal-content {
  position: relative;
  width: 100%;
  max-width: 600px;
  padding: 0 20px;
  z-index: 1;
}

.search-modal-content form {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.search-modal-content .search-icon {
  position: absolute;
  left: 20px;
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-modal-content input[type="search"] {
  flex: 1;
  padding: 20px 60px 20px 56px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 18px;
}

.search-modal-content input[type="search"]::placeholder {
  color: var(--text-muted);
}

.search-modal-content input[type="search"]:focus {
  outline: none;
}

.search-modal-content input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.search-close {
  position: absolute;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-hover);
  border: none;
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.search-close:hover {
  background: var(--border);
  color: var(--text);
}

.search-close svg {
  width: 18px;
  height: 18px;
}

/* Search Suggestions */
.search-suggestions {
  max-height: 400px;
  overflow-y: auto;
  margin-top: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.search-suggestions::-webkit-scrollbar {
  display: none;
}

.search-suggestions:empty {
  display: none;
}

.search-suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
  color: inherit;
}

.search-suggestion:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
}

.search-suggestion-thumb {
  width: 80px;
  height: 45px;
  border-radius: 8px;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.search-suggestion-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-suggestion-thumb svg {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
}

.search-suggestion-info {
  flex: 1;
  min-width: 0;
}

.search-suggestion-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestion-category {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.search-no-results {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* Language Dropdown */
.lang-wrapper {
  position: relative;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  z-index: 1000;
  min-width: 120px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.lang-dropdown.active {
  display: block;
}

.lang-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--text-muted);
  font-size: 13px;
  transition: all 0.15s;
}

.lang-dropdown a:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.lang-dropdown a.active {
  color: var(--accent);
  background: var(--bg-hover);
}

/* Light Theme */
.light-theme {
  --bg: #f5f5f5;
  --bg-card: #ffffff;
  --bg-hover: #f0f0f0;
  --text: #1a1a1a;
  --text-muted: #666666;
  --border: #e0e0e0;
  --border-hover: #cccccc;
}

/* Page layout */
.page-header {
  padding: 24px 0 16px;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

/* Page content styling */
.single-box h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.single-box h2:first-child {
  margin-top: 0;
}

.single-box h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 12px;
}

.single-box h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 10px;
}

.single-box p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.single-box ul,
.single-box ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.single-box li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.single-box li strong {
  color: var(--text);
}

.single-box em {
  color: var(--accent);
}

.single-box a {
  color: var(--accent);
  text-decoration: none;
}

.single-box a:hover {
  text-decoration: underline;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  padding: 24px 0 40px;
}

/* Main content area */
main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

/* Software grid */
.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s ease;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card:hover::before {
  background: linear-gradient(135deg, var(--accent), #a855f7);
  opacity: 1;
}

.card-link {
  display: block;
  text-decoration: none;
}

.card-stats {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.card-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.card-stat svg {
  opacity: 0.7;
}

.software-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: linear-gradient(135deg, #1e2030, #252836);
}

.card-body {
  padding: 12px;
}

.software-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.software-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-hover);
  flex-shrink: 0;
}

.software-info {
  flex: 1;
  min-width: 0;
}

.software-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.software-title a {
  color: inherit;
}

.software-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.software-cat {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-hover);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.status-badge.working {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

.status-badge.updating {
  background: rgba(245, 158, 11, 0.15);
  color: var(--yellow);
}

.status-badge.detected {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
}

.status-badge svg {
  width: 10px;
  height: 10px;
}

.software-excerpt {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sidebar */
.sidebar .widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.widget-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.widget-title svg {
  opacity: 0.6;
}

.widget ul {
  list-style: none;
}

.widget li + li {
  margin-top: 2px;
}

.widget li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  transition: all 0.15s;
}

.widget li a:hover, .widget li a.active {
  background: var(--bg-hover);
  color: var(--accent);
}

.widget li a .count {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Single page */
.single-software .layout {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.single-software .layout > main {
  min-width: 0;
}

.single-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.page-content {
  max-width: 800px;
  margin: 24px auto 40px;
  padding: 32px 40px;
}

.page-content .page-title {
  font-size: 28px;
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--accent);
}

.page-content .page-body {
  margin-top: 24px;
}

@media (max-width: 768px) {
  .page-content {
    margin: 16px;
    padding: 20px;
  }
  
  .page-content .page-title {
    font-size: 22px;
  }
}

.single-header {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.single-icon {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--bg-hover);
}

.single-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
}

.single-meta span,
.single-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-hover);
  padding: 4px 10px;
  border-radius: 5px;
  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.15s;
}

.single-meta a.meta-item:hover {
  background: var(--accent);
  color: #fff;
}

.single-meta svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.single-content {
  color: var(--text-muted);
  line-height: 1.7;
}

.single-content p + p {
  margin-top: 12px;
}

.single-content.content-block {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.single-content.content-block h2,
.single-content.content-block h3 {
  color: var(--text-primary);
  margin-bottom: 12px;
}

.single-content.content-block a {
  color: var(--accent);
  text-decoration: underline;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  margin-top: 20px;
  transition: all 0.15s;
}

.download-btn:hover {
  background: #16a34a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.download-btn svg {
  width: 18px;
  height: 18px;
}

/* Screenshots Gallery */
.screenshots-gallery {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  padding: 16px 0;
  margin-top: 16px;
  border-top: 1px solid var(--border);
}

.screenshots-gallery img {
  display: none;
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.screenshots-gallery img.is-active {
  display: block;
}

.screenshots-gallery img.is-active:hover {
  border-color: var(--accent);
}

.screenshot-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}

.screenshot-nav.prev {
  left: 12px;
}

.screenshot-nav.next {
  right: 12px;
}

.screenshot-nav:hover {
  background: rgba(0, 0, 0, 0.72);
  border-color: var(--accent);
}

.screenshot-nav svg {
  width: 18px;
  height: 18px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox-close svg {
  width: 24px;
  height: 24px;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev svg,
.lightbox-next svg {
  width: 28px;
  height: 28px;
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
}

/* Download box in sidebar */
.download-box {
  text-align: center;
  padding: 20px !important;
}

.download-box .download-btn {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 15px;
}

.download-size {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Features */
.features-section {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.features-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.features-title svg {
  width: 18px;
  height: 18px;
  color: var(--green);
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  padding: 8px 12px;
  background: var(--bg-card);
  border-radius: 6px;
}

.features-list li svg {
  width: 16px;
  height: 16px;
  color: var(--green);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .screenshots-gallery img {
    height: 220px;
  }

  .screenshot-nav {
    width: 34px;
    height: 34px;
  }

  .features-list {
    grid-template-columns: 1fr;
  }
}

/* Tags */
.tags-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.tags-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.tags-title svg {
  width: 16px;
  height: 16px;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.15s;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Category link */
.category-link {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}

.category-link:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* Sidebar Related */
.sidebar-related {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-related-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.15s;
}

.sidebar-related-item:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
}

.sidebar-related-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: var(--bg-hover);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-related-thumb svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.sidebar-related-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.screenshot-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.screenshot-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.screenshot-grid img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.screenshot-grid img:hover {
  transform: scale(1.02);
  border-color: var(--accent);
}

/* Sidebar box on single */
.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.sidebar-box-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.info-list {
  list-style: none;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list .label {
  color: var(--text-muted);
}

.info-list .value {
  font-weight: 500;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  margin-top: 40px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.site-footer-inner {
  padding: 32px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(90deg, #a855f7, #6366f1, #06b6d4, #a855f7);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: neon-gradient 4s ease infinite;
}

.footer-tagline {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-brand {
    align-items: center;
  }
  
  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

/* Pagination */
.pagination {
  display: flex;
  gap: 6px;
  margin-top: 20px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 13px;
  transition: all 0.15s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 14px;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 48px 20px 40px;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Features Section */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon.free {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

.feature-icon.safe {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent);
}

.feature-icon.updates {
  background: rgba(245, 158, 11, 0.15);
  color: var(--yellow);
}

.feature-text h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.feature-text p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Popular Games */
.popular-games {
  margin-bottom: 40px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.popular-games .section-header {
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: none;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.game-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  text-decoration: none;
  min-height: 140px;
}

.game-card:hover {
  border-color: var(--game-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.game-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
}

.game-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.game-count {
  font-size: 11px;
  color: var(--text-muted);
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.view-all {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.view-all:hover {
  color: var(--accent);
}

.view-all::after {
  content: '→';
}

/* Category List */
.category-list {
  list-style: none;
}

.category-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  transition: all 0.15s;
}

.category-list li a:hover {
  background: var(--bg-hover);
}

.category-list li a.active {
  background: var(--accent);
  color: #fff;
}

.category-list li a.active .cat-count {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.cat-count {
  background: var(--bg);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 10px;
}

.empty-message {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    order: -1;
  }
  .sidebar .widget {
    display: none;
  }
  .software-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .single-software .layout {
    grid-template-columns: 1fr;
  }
  .features {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .feature-card {
    padding: 14px;
  }
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .site-header-inner {
    height: 50px;
  }
  .logo {
    font-size: 18px;
  }
  .logo-img {
    width: 30px;
    height: 30px;
    padding: 3px;
  }
  .main-nav a {
    padding: 6px 8px;
    font-size: 12px;
  }
  .software-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .card-body {
    padding: 10px;
  }
  .software-icon {
    width: 32px;
    height: 32px;
  }
  .software-title {
    font-size: 13px;
  }
  .page-title {
    font-size: 20px;
  }
  .single-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .single-icon {
    width: 56px;
    height: 56px;
  }
  .single-title {
    font-size: 18px;
  }
  .screenshots-slider img {
    height: 180px;
  }
  .hero {
    padding: 32px 16px;
  }
  .hero h1 {
    font-size: 24px;
  }
  .hero p {
    font-size: 13px;
  }
  .section-header h2 {
    font-size: 14px;
  }
  .feature-icon {
    width: 40px;
    height: 40px;
  }
  .feature-icon svg {
    width: 20px;
    height: 20px;
  }
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .game-card {
    padding: 14px 10px;
    min-height: 110px;
  }
  .game-icon {
    width: 40px;
    height: 40px;
  }
  .game-name {
    font-size: 12px;
  }
}
/* Stats Section */
.stats-section {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 32px 24px;
  margin-bottom: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-item {
  text-align: center;
}

.stat-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 18px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* Tags Cloud */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: color-mix(in srgb, var(--tag-color) 15%, transparent);
  color: var(--tag-color);
  border: 1px solid color-mix(in srgb, var(--tag-color) 30%, transparent);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.tag-pill:hover {
  background: color-mix(in srgb, var(--tag-color) 25%, transparent);
  border-color: var(--tag-color);
  transform: translateY(-1px);
}

/* FAQ Section */
.faq-section {
  margin-top: 48px;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.faq-section .section-header {
  margin-bottom: 24px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--bg-hover);
}

.faq-question svg {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 20px 16px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .stats-section {
    flex-wrap: wrap;
    gap: 24px;
    padding: 24px 16px;
  }
  
  .stat-item {
    flex: 1;
    min-width: 80px;
  }
  
  .stat-value {
    font-size: 22px;
  }
  
  .stat-icon {
    width: 40px;
    height: 40px;
  }
  
  .faq-question {
    font-size: 14px;
    padding: 14px 16px;
  }
}

/* Cookie Consent Banner */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-consent.active {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-text {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.cookie-text svg {
  flex-shrink: 0;
  color: var(--accent);
}

.cookie-text p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--accent);
  text-decoration: none;
}

.cookie-text a:hover {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.cookie-decline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.cookie-decline:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.cookie-accept {
  background: var(--accent);
  color: white;
}

.cookie-accept:hover {
  background: var(--accent-hover);
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-text {
    flex-direction: column;
  }
  
  .cookie-actions {
    width: 100%;
  }
  
  .cookie-btn {
    flex: 1;
  }
}