/*
Theme Name: SklavenKerker
Theme URI: https://sklavenkerker.com
Description: Dark premium theme for SklavenKerker – 3-column layout with left navigation sidebar, content area, and right widget zone.
Version: 1.0.0
Author: SklavenKerker Team
Author URI: https://sklavenkerker.com
Text Domain: sklavenkerker
*/

/* ───────────────────────── Design Tokens ───────────────────────── */
:root {
  --bg-body: #050304;
  --bg-surface: #050304;
  --bg-card: #000000;
  --bg-card-hover: #1a1a30;
  --bg-input: #10101e;
  --border: #252545;
  --border-light: #303060;
  --primary: #f59e0b;
  --primary-hover: #d97706;
  --primary-glow: rgba(245, 158, 11, .25);
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --success: #10b981;
  --danger: #ef4444;
  --text: #e8eaf0;
  --text-muted: #6b7294;
  --sidebar-w: 240px;
  --topbar-h: 64px;
  --radius: 12px;
  --radius-sm: 8px;
}

/* ───────────────────────── Reset / Base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-body);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  margin-top: 0;
}

p { color: var(--text); line-height: 1.7; }

/* ───────────────────────── SVG Icon Utilities ───────────────────────── */
.icon-inline {
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

.sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 .35rem;
}

/* ───────────────────────── Scrollbar ───────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ───────────────────────── Topbar (mobile) ───────────────────────── */
.topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  z-index: 1100;
  align-items: center;
  padding: 0 1rem;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-left: 2.5rem;
}

.topbar-brand img {
  height: 40px;
  width: auto;
  border-radius: var(--radius-sm);
}

#sidebarToggle {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 1200;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  width: 40px; height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

/* ───────────────────────── Left Sidebar ───────────────────────── */
#sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform .3s;
}

.sidebar-brand {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 0 1.5rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.sidebar-brand:hover { color: var(--text); }

.sidebar-brand img {
  height: 44px;
  width: auto;
  border-radius: var(--radius-sm);
}

.sidebar-brand .brand-icon {
  color: var(--primary);
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Navigation list */
.sidebar-nav {
  max-height: 100%;
  overflow: auto;
  list-style: none;
  padding: 1rem .75rem;
  margin: 0;
  flex: 1;
}

.sidebar-nav li { margin-bottom: .25rem; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1rem;
  color: var(--text-muted);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
  text-decoration: none;
}

.sidebar-nav a:hover {
  background: var(--bg-card);
  color: var(--text);
}

.sidebar-nav .current-menu-item > a,
.sidebar-nav .current_page_item > a,
.sidebar-nav .current-menu-ancestor > a {
  background: var(--primary);
  color: #000;
}

.sidebar-nav a .nav-icon {
  font-size: 1.15rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

/* Sidebar footer (removed – legal links moved to site footer) */

/* ───────────────────────── Layout: 3-Column ───────────────────────── */
.site-layout {
  display: flex;
  min-height: 100vh;
  margin-left: var(--sidebar-w);
}

.site-content {
  flex: 1;
  min-width: 0;
  padding: 2rem;
}

.site-widget-area {
  width: 300px;
  flex-shrink: 0;
  padding: 2rem 1.5rem;
  border-left: 1px solid var(--border);
}

/* ───────────────────────── Widget Styling ───────────────────────── */
.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.widget-title,
.widget h2 {
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  padding: .4rem 0;
  border-bottom: 1px solid var(--border);
}

.widget ul li:last-child { border-bottom: none; }

.widget ul li a {
  color: var(--text-muted);
  font-size: .9rem;
}

.widget ul li a:hover { color: var(--primary); }

/* ───────────────────────── Cards (posts etc.) ───────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: border-color .2s;
}

.card:hover { border-color: var(--border-light); }

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary); }

.card-meta {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.card-meta a { color: var(--text-muted); }
.card-meta a:hover { color: var(--primary); }

.card-excerpt { color: var(--text); line-height: 1.7; }

.card-thumbnail {
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  overflow: hidden;
}

.card-thumbnail img {
  width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

/* Read more link */
.read-more {
  display: inline-block;
  margin-top: .75rem;
  color: var(--primary);
  font-weight: 600;
  font-size: .9rem;
}

.read-more:hover { color: var(--accent-hover); }

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  display: inline-block;
  padding: .5rem 1.25rem;
  font-size: .9rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: .2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #000;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #000;
}

/* ───────────────────────── Forms ───────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
textarea,
select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: .6rem 1rem;
  width: 100%;
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ───────────────────────── Search form ───────────────────────── */
.search-form {
  display: flex;
  gap: .5rem;
}

.search-form .search-field {
  flex: 1;
}

.search-form .search-submit {
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  padding: .6rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
}

.search-form .search-submit:hover {
  background: var(--primary-hover);
}

/* ───────────────────────── Pagination ───────────────────────── */
.pagination {
  display: flex;
  gap: .5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-decoration: none;
}

.pagination .page-numbers:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
}

/* ───────────────────────── Comments ───────────────────────── */
.comments-area {
  margin-top: 2rem;
}

.comments-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.comment-author {
  font-weight: 600;
  color: var(--primary);
}

.comment-meta { font-size: .8rem; color: var(--text-muted); }

.comment-content { margin-top: .75rem; }

.comment-respond {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.comment-respond label {
  color: var(--text-muted);
  font-size: .85rem;
  display: block;
  margin-bottom: .25rem;
}

.comment-respond textarea,
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"] {
  margin-bottom: 1rem;
}

.comment-respond .submit {
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  padding: .6rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
}

.comment-respond .submit:hover {
  background: var(--primary-hover);
}

/* ───────────────────────── Sidebar overlay (mobile) ───────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 999;
}

.sidebar-overlay.active { display: block; }

/* ───────────────────────── Page header ───────────────────────── */
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
}

/* ───────────────────────── Single post ───────────────────────── */
.entry-header { margin-bottom: 1.5rem; }

.entry-title {
  display: none;
}

.entry-meta {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: .5rem;
}

.entry-content {
  line-height: 1.8;
  font-size: 1rem;
}

.entry-content h2 { margin-top: 2rem; font-size: 1.4rem; }
.entry-content h3 { margin-top: 1.5rem; font-size: 1.2rem; }
.entry-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-style: italic;
}

.entry-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  overflow-x: auto;
  font-size: .875rem;
}

.entry-content code {
  background: var(--bg-card);
  padding: .15rem .4rem;
  border-radius: 4px;
  font-size: .875rem;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.entry-content th,
.entry-content td {
  padding: .6rem .75rem;
  border: 1px solid var(--border);
  text-align: left;
}

.entry-content th {
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
}

/* ───────────────────────── Footer ───────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  font-size: .8rem;
  color: var(--text-muted);
}

.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--primary); }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 2rem;
}

.footer-inner p { margin: 0; }

.footer-legal ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
}

.footer-legal li { list-style: none; }

.footer-legal a {
  color: var(--text-muted);
  font-size: .8rem;
  text-decoration: none;
}

.footer-legal a:hover { color: var(--primary); }

/* ───────────────────────── 404 ───────────────────────── */
.error-404 {
  text-align: center;
  padding: 4rem 2rem;
}

.error-404 h1 {
  font-size: 4rem;
  color: var(--primary);
}

/* ───────────────────────── WP specific ───────────────────────── */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .8rem; color: var(--text-muted); text-align: center; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }

/* ───────────────────────── Guest (logged-out) Layout ───────────────────────── */
.guest-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  z-index: 1100;
  display: flex;
  align-items: center;
}

.guest-topbar-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.guest-topbar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.guest-topbar-brand:hover { color: var(--text); }

.guest-topbar-brand img {
  height: 44px;
  width: auto;
  border-radius: var(--radius-sm);
}

.guest-topbar-actions {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.guest-topbar-actions .btn {
  font-size: .85rem;
  padding: .4rem 1rem;
}

.guest-layout {
  padding-top: var(--topbar-h);
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.guest-content {
  width: 100%;
  max-width: 1000px;
  padding: 2rem 1.5rem;
}

@media (max-width: 575.98px) {
  .guest-topbar-actions .btn {
    font-size: .75rem;
    padding: .35rem .75rem;
  }
  .guest-topbar-brand {
    font-size: 1rem;
  }
  .guest-content {
    padding: 1rem;
  }
}

/* ───────────────────────── Landing Page Overrides ───────────────────────── */
.sidebar--landing .sidebar-brand {
  visibility: hidden;
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.topbar--landing .topbar-brand {
  visibility: hidden;
}

.guest-topbar--landing .guest-topbar-brand {
  display: none;
}

.guest-topbar--landing .guest-topbar-inner {
  justify-content: flex-end;
}

/* ───────────────────────── Auth Forms ───────────────────────── */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 60vh;
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.auth-logo-wrap {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-logo {
  max-height: 100px;
  width: auto;
  border-radius: var(--radius-sm);
}

.auth-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.auth-form label {
  display: block;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: .3rem;
}

.auth-field {
  margin-bottom: 1rem;
}

.auth-input-group {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .2s;
}

.auth-input-group:focus-within {
  border-color: var(--primary);
}

.auth-input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.auth-input-group input {
  flex: 1;
  background: transparent;
  border: none;
  padding: .65rem .75rem .65rem 0;
  color: var(--text);
  font-size: .95rem;
  outline: none;
}

.auth-field > input:not([type="checkbox"]) {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .65rem .75rem;
  color: var(--text);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}

.auth-field > input:focus {
  border-color: var(--primary);
}

.auth-row {
  display: flex;
  gap: .75rem;
}

.auth-half {
  flex: 1;
}

.auth-error {
  background: rgba(239, 68, 68, .15);
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: .6rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  margin-bottom: 1rem;
}

.auth-success {
  background: rgba(16, 185, 129, .15);
  border: 1px solid var(--success);
  color: var(--success);
  padding: .6rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  margin-bottom: 1rem;
}

.auth-info {
  background: rgba(245, 158, 11, .1);
  border: 1px solid rgba(245, 158, 11, .3);
  color: var(--text);
  padding: .6rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .83rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.auth-info--muted {
  background: rgba(107, 114, 148, .1);
  border-color: var(--border);
  color: var(--text-muted);
}

.btn-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  margin-bottom: .75rem;
}

.btn-grow {
  flex: 1;
}

.auth-btn-row {
  display: flex;
  gap: .75rem;
  margin-bottom: .75rem;
}

.auth-link {
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
  margin: .5rem 0 0;
}

.auth-link a {
  color: var(--primary);
}

.auth-link a:hover {
  color: var(--accent-hover);
}

.auth-forgot {
  text-align: right;
  margin: -.25rem 0 1rem;
  font-size: .8rem;
}
.auth-forgot a {
  color: var(--text-muted);
}
.auth-forgot a:hover {
  color: var(--primary);
}

.auth-subtitle {
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
  margin: -.5rem 0 1.25rem;
}

.auth-step-info {
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
}

.auth-progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.auth-progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width .3s ease;
}

@media (max-width: 575.98px) {
  .auth-card {
    padding: 1.25rem;
  }
  .auth-row {
    flex-direction: column;
    gap: 0;
  }
}

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 1199.98px) {
  .site-widget-area {
    width: 260px;
  }
}

@media (max-width: 991.98px) {
  #sidebar {
    transform: translateX(-100%);
  }
  #sidebar.open {
    transform: translateX(0);
    box-shadow: 10px 0 40px rgba(0,0,0,.5);
  }
  #sidebarToggle {
    display: flex;
  }
  .topbar {
    display: flex;
  }
  .site-layout {
    margin-left: 0;
    padding-top: var(--topbar-h);
    flex-direction: column;
  }
  .site-widget-area {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 575.98px) {
  .site-content {
    padding: 1rem;
  }
  .site-widget-area {
    padding: 1rem;
  }
}
