/*
Theme Name: PDFNeo Dark
Theme URI: https://pdfneo.net
Description: Dark theme for PDFNeo - same layout as light version with imgneo dark colors
Version: 2.0
Author: PDFNeo
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pdfneo-dark
*/

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #0a0a0a;
  color: #d4d4d4;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #93bbfd;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   Container
   ======================================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Header & Navigation
   ======================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #1e1e1e;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: 1;
}

.nav-logo img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.nav-logo .logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1;
}

#nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

#nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #999;
  transition: color 0.2s ease;
}

#nav-links a:hover {
  color: #ffffff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #999;
  border-radius: 2px;
}

#nav-links a.active {
  color: #ffffff;
}

#nav-links a.lang {
  color: #666;
  font-size: 13px;
}

#nav-links a.lang:hover {
  color: #60a5fa;
}

/* ========================================
   Content + Sidebar Layout
   ======================================== */
.content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  gap: 40px;
}

.content-with-sidebar {
  flex: 1;
  min-width: 0;
}

.sidebar {
  width: 280px;
  flex-shrink: 0;
}

/* ========================================
   Page / Archive Titles
   ======================================== */
.page-title,
.archive-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}

.archive-title span {
  color: #60a5fa;
}

/* ========================================
   Post Card (List)
   ======================================== */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.post-card {
  background-color: #111111;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.post-card:hover {
  border-color: #2a2a2a;
}

.post-card-thumb {
  display: block;
  overflow: hidden;
}

.post-card-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.03);
}

.post-card-body {
  padding: 24px;
}

.post-card-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
}

.post-card-title a {
  color: #ffffff;
}

.post-card-title a:hover {
  color: #60a5fa;
}

.post-card-meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.post-card-meta .sep {
  color: #333;
}

.post-card-meta a {
  color: #666;
}

.post-card-meta a:hover {
  color: #60a5fa;
}

.post-card-excerpt {
  font-size: 14px;
  color: #888;
  line-height: 1.7;
}

/* ========================================
   Single Post
   ======================================== */
.single-post-header {
  margin-bottom: 32px;
}

.single-post-title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.single-post-meta {
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.single-post-meta .sep {
  color: #333;
}

.single-post-meta a {
  color: #666;
}

.single-post-meta a:hover {
  color: #60a5fa;
}

.single-post-featured {
  margin-bottom: 32px;
  border-radius: 12px;
  overflow: hidden;
}

.single-post-featured img {
  width: 100%;
  display: block;
}

.single-post-divider {
  border: none;
  border-top: 1px solid #1e1e1e;
  margin-bottom: 32px;
}

.post-content {
  font-size: 16px;
  line-height: 1.8;
  color: #d4d4d4;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: #ffffff;
  margin-top: 2em;
  margin-bottom: 0.8em;
  line-height: 1.3;
}

.post-content h2 { font-size: 24px; }
.post-content h3 { font-size: 20px; }

.post-content p {
  margin-bottom: 1.2em;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.2em;
  padding-left: 1.5em;
}

.post-content li {
  margin-bottom: 0.4em;
}

.post-content blockquote {
  border-left: 3px solid #3b82f6;
  padding: 12px 20px;
  margin: 1.5em 0;
  background-color: #111;
  color: #aaa;
  border-radius: 0 8px 8px 0;
}

.post-content code {
  background-color: #1a1a1a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  color: #e0e0e0;
}

.post-content pre {
  background-color: #111;
  border: 1px solid #1e1e1e;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.5em;
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-content img {
  border-radius: 8px;
}

.post-content a {
  color: #60a5fa;
  text-decoration: underline;
  text-decoration-color: rgba(96, 165, 250, 0.3);
  text-underline-offset: 2px;
}

.post-content a:hover {
  text-decoration-color: #60a5fa;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
}

.post-content th,
.post-content td {
  padding: 10px 14px;
  border: 1px solid #1e1e1e;
  text-align: left;
}

.post-content th {
  background-color: #111;
  font-weight: 600;
  color: #ffffff;
}

/* Page links (multi-page posts) */
.page-links {
  margin: 1.5em 0;
  color: #666;
}

.page-links a {
  color: #60a5fa;
}

/* ========================================
   Post Tags
   ======================================== */
.post-tags {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #1e1e1e;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.post-tags-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.post-tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: #1a1a1a;
  border: 1px solid #222;
  border-radius: 6px;
  font-size: 13px;
  color: #999;
  transition: all 0.2s ease;
}

.post-tag:hover {
  background-color: #222;
  color: #60a5fa;
  border-color: #3b82f6;
}

/* ========================================
   Post Navigation
   ======================================== */
.post-nav {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #1e1e1e;
}

.post-nav-item {
  flex: 1;
  padding: 16px;
  background-color: #111;
  border: 1px solid #1e1e1e;
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.post-nav-item:hover {
  border-color: #2a2a2a;
}

.post-nav-label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-nav-title {
  display: block;
  font-size: 14px;
  color: #d4d4d4;
  font-weight: 500;
}

.post-nav-item:hover .post-nav-title {
  color: #60a5fa;
}

/* ========================================
   Sidebar Widgets
   ======================================== */
.sidebar .widget {
  background-color: #111;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar .widget-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar .widget ul {
  list-style: none;
}

.sidebar .widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid #1a1a1a;
  font-size: 14px;
}

.sidebar .widget ul li:last-child {
  border-bottom: none;
}

.sidebar .widget ul li a {
  color: #999;
}

.sidebar .widget ul li a:hover {
  color: #60a5fa;
}

.sidebar .widget p {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
}

/* Search widget */
.sidebar .widget_search .search-form {
  display: flex;
}

.sidebar .widget_search .search-field {
  flex: 1;
  padding: 8px 12px;
  background-color: #1a1a1a;
  border: 1px solid #222;
  border-radius: 6px 0 0 6px;
  color: #d4d4d4;
  font-size: 14px;
  outline: none;
}

.sidebar .widget_search .search-field:focus {
  border-color: #3b82f6;
}

.sidebar .widget_search .search-submit {
  padding: 8px 16px;
  background-color: #3b82f6;
  border: none;
  border-radius: 0 6px 6px 0;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
}

.sidebar .widget_search .search-submit:hover {
  background-color: #2563eb;
}

/* Recent posts widget */
.sidebar .widget_recent_entries ul li {
  padding: 10px 0;
}

.sidebar .widget_recent_entries .post-date {
  display: block;
  font-size: 12px;
  color: #555;
  margin-top: 4px;
}

/* Categories widget */
.sidebar .widget_categories ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar .widget_categories .count {
  font-size: 12px;
  color: #555;
  background: #1a1a1a;
  padding: 2px 8px;
  border-radius: 10px;
}

/* Tag cloud widget */
.sidebar .widget_tag_cloud .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sidebar .widget_tag_cloud .tagcloud a {
  display: inline-block;
  padding: 4px 10px;
  background-color: #1a1a1a;
  border: 1px solid #222;
  border-radius: 6px;
  font-size: 12px !important;
  color: #999;
  transition: all 0.2s ease;
}

.sidebar .widget_tag_cloud .tagcloud a:hover {
  background-color: #222;
  color: #60a5fa;
  border-color: #3b82f6;
}

/* ========================================
   Pagination
   ======================================== */
.pagination.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background-color: #111;
  border: 1px solid #1e1e1e;
  border-radius: 8px;
  font-size: 14px;
  color: #999;
  transition: all 0.2s ease;
}

.pagination.nav-links .page-numbers:hover {
  border-color: #3b82f6;
  color: #60a5fa;
}

.pagination.nav-links .page-numbers.current {
  background-color: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
  font-weight: 600;
}

.pagination.nav-links .page-numbers.dots {
  background: none;
  border: none;
  color: #555;
}

/* ========================================
   404 Page
   ======================================== */
.error-404 {
  text-align: center;
  padding: 80px 20px;
}

.error-404 h1 {
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 12px;
}

.error-404 p {
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
}

.error-404 .btn-refresh {
  display: inline-block;
  padding: 12px 32px;
  background-color: #1e1e1e;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: #d4d4d4;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.error-404 .btn-refresh:hover {
  background-color: #2a2a2a;
  border-color: #3b82f6;
  color: #60a5fa;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  border-top: 1px solid #1e1e1e;
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: #444;
}

.site-footer a {
  color: #666;
}

.site-footer a:hover {
  color: #60a5fa;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
    gap: 32px;
  }

  .sidebar {
    width: 100%;
  }

  .header-inner {
    padding: 12px 16px;
  }

  #nav-links {
    gap: 16px;
  }

  .single-post-title {
    font-size: 24px;
  }

  .post-nav {
    flex-direction: column;
  }
}
