/*
Theme Name: ctdb
Theme URI: https://thectdb.com
Author: Marko
Author URI: https://thectdb.com
Description: Minimal conspiracy theory voting theme. Turbo fast, mobile sticky, AJAX voting, grid-based.
Version: 1.0
License: MIT
Tags: minimal, voting, conspiracy theory database, ajax
Text Domain: ctdb
*/

body {
  background: #fff;
  color: #111;
  margin: 0;
  font-family: "Special Elite", system-ui;
  font-weight: 400;
  font-style: normal;
}

a { color: #111; text-decoration: none; }
a:hover { text-decoration: underline; }

.header {
  position: sticky;
  top: 0;
  width: 100%;
  background: #fff;
  border-bottom: 2px dashed #111;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  box-sizing: border-box;
}

.logo {
  font-family: "Special Elite", system-ui;
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 1px;
  flex: 1;
  text-align: center;
}
.header-logo {
  height: 28px;
  vertical-align: middle;
}
.header-title {
  margin-left: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  vertical-align: middle;
  display: inline;
}
@media (max-width: 768px) {
  .logo .header-title { display: none !important; }
}

.menu-btn, .search-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #111;
  flex-shrink: 0;
  margin: 0 8px;
}

h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a, .widget-title {
  font-weight: 900!important;;
  line-height:125%!important;
  font-style: bold;
  color: #000000!important;
}

.main-menu { display: flex; gap: 18px; align-items: center; }
.main-menu a { font-size: 1rem; font-weight: 500; }

@media (max-width: 768px) {
  .main-menu { display: none; }
  .header { padding: 0 12px; }
}

/* ----- MAIN GRID: Responsive Sidebar below ----- */
.main-grid {
  display: flex;
  max-width: 1200px;
  margin: 64px auto 0 auto;
  padding: 0 0 40px 0;
  gap: 32px;
  align-items: flex-start;
}

.main-content {
  flex: 1;
  min-width: 0;
  padding: 24px 0;
  max-width: 800px;
  margin: 0;
}

.sidebar {
  width: 320px;
  padding: 24px 0 0 36px;
  position: sticky;
  top: 80px;
  align-self: flex-start;
  height: fit-content;
  box-sizing: border-box;
}

/* --- Responsive: Sidebar is BELOW content on mobile/tablet --- */
@media (max-width: 900px) {
  .main-grid {
    flex-direction: column;
    gap: 0;
  }
  .sidebar {
    width: 100%;
    max-width: 98vw;
    position: static;
    padding: 18px 0 0 0;
    margin-top: 18px;
    box-sizing: border-box;
    align-self: stretch;
  }
}

@media (max-width: 600px) {
  .main-content {
    padding-left: 7vw !important;
    padding-right: 7vw !important;
    max-width: 98vw !important;
  }
  .posts-list {
    padding-left: 4vw !important;
    padding-right: 4vw !important;
  }
  .sidebar {
    padding-left: 5vw !important;
    padding-right: 5vw !important;
    max-width: 100vw !important;
    padding-top: 10px !important;
    margin-top: 12px !important;
  }
}

.posts-list { flex: 1; padding: 32px 0; }
.post-row {
  display: flex; align-items: center; border-bottom: 2px dashed #111; padding: 18px 0;
}
.vote-box {
  width: 36px; display: flex; flex-direction: column; align-items: center; margin-right: 18px;
}
.vote-btn {
  border: none; background: none; cursor: pointer; font-size: 1.25rem; color: #888; transition: color 0.2s;
}
.vote-btn.active { color: #2196f3; }
.vote-score { font-weight: bold; margin: 3px 0; }
.post-title { font-size: 1.1rem; font-weight: 600; flex: 1; }

.sidebar-section { margin-bottom: 32px; }
.sidebar-section h3 { font-size: 1.1rem; margin-bottom: 14px; font-weight: 700; text-transform: uppercase; border-bottom: 2px dashed #111;
  padding-bottom: 5px;
  display: inline-block; }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { margin-bottom: 8px; }
.sidebar-list a { font-size: 1rem; color: #111; }

/* NE skrivaj sidebar na mobile! */
/* @media (max-width: 768px) {
  .sidebar { display: none; }
  .posts-list { padding: 16px 0; }
} */
@media (max-width: 768px) {
  .posts-list { padding: 16px 0; }
}

/* ===== Overlay Hamburger Menu: fresh, modern, user-friendly ===== */
.hamburger-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(252,252,250,0.97);
  z-index: 4000;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  overscroll-behavior: contain;
  animation: fadeInMenu 0.18s;
}
.hamburger-menu.open { display: flex; }
@keyframes fadeInMenu {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
/* Actual menu list styling */
.hamburger-menu > ul, .hamburger-menu .menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 36px;
  width: 100%;
  max-width: 670px;
  background: #fff;
  margin: 58px auto 0 auto;
  padding: 20px 26px 26px 26px;
  border-radius: 18px;
  box-shadow: 0 6px 32px #0002;
  font-size: 1.07rem;
  list-style: none;
}
.hamburger-menu ul li { margin-bottom: 10px; }
.hamburger-menu ul li.menu-item-has-children > a,
.hamburger-menu ul .menu-parent {
  font-size: 1.11rem;
  font-weight: 900;
  color: #111;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
  padding-left: 0;
  display: flex;
  align-items: center;
}
.hamburger-menu ul ul {
  margin: 5px 0 3px 0;
  padding-left: 16px;
  font-weight: 500;
  font-size: 0.99rem;
  border-left: 2px dashed #ececec;
}
.hamburger-menu ul ul li {
  margin-bottom: 4px;
}
.hamburger-menu ul li a {
  color: #232323;
  transition: color 0.17s, background 0.14s;
  padding: 2px 2px 2px 0;
  border-radius: 3px;
  display: block;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
}
.hamburger-menu ul li a:hover {
  background: #e8fcff;
  color: #04aaff;
}
.hamburger-menu ul > li > a {
  font-size: 1.09rem;
  font-weight: 800;
  color: #000;
  display: block;
  margin-bottom: 2px;
  border-radius: 4px;
  padding: 4px 2px 3px 0;
}
.hamburger-menu ul > li > a:hover {
  color: #04aaff;
  background: #e8fcff;
}
.hamburger-menu ul > li > a::before,
.hamburger-menu ul > li > span.menu-parent::before {
  content: "⊕";
  margin-right: 7px;
  font-size: 1.02em;
  color: #04aaff;
  opacity: 0.8;
}
/* X Close Button */
.hamburger-menu .close-menu {
  position: absolute;
  right: 22px; top: 22px;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: #111;
  cursor: pointer;
  z-index: 4010;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}
.hamburger-menu .close-menu:hover { color: #04aaff; }
/* Responsive: single column on mobile */
@media (max-width: 800px) {
  .hamburger-menu > ul, .hamburger-menu .menu {
    grid-template-columns: 1fr;
    max-width: 97vw;
    padding: 12px 5vw 16px 5vw;
    font-size: 1.07rem;
    border-radius: 0 0 16px 16px;
    margin-top: 38px;
  }
  .hamburger-menu .close-menu {
    right: 5vw; top: 14px; font-size: 2rem;
  }
}
.hamburger-menu::-webkit-scrollbar { width: 0 !important; display: none; }
.hamburger-menu { -ms-overflow-style: none; scrollbar-width: none; }

.search-modal {
  display: none; position: fixed; top: 0; left: 0; right: 0; background: #fff; z-index: 3000; padding: 28px 18px 12px 18px; box-shadow: 0 6px 24px #1112;
}
.search-modal.open { display: block; }
.search-modal input[type="search"] { width: 100%; padding: 12px; font-size: 1rem; border: 1px solid #eee; }

.post-row .post-title a {
  text-decoration: none;
}
.post-row .post-title a:hover {
  text-decoration: underline;
  color: #04aaff;
}

.post-row.post-biggest .post-title a { font-size: 2rem; font-weight: 900; letter-spacing: 0.04em; }
.post-row.post-bigger  .post-title a { font-size: 1.9rem; font-weight: 800; }
.post-row.post-big     .post-title a { font-size: 1.8rem; font-weight: 700; }
.post-row.post-medium  .post-title a { font-size: 1.7rem; font-weight: 600; }
.post-row.post-small   .post-title a { font-size: 1.6rem; font-weight: 600; }
.post-row.post-normal  .post-title a { font-size: 1.5rem; font-weight: 500; }

.post-row { transition: box-shadow 0.18s cubic-bezier(.59,1.54,.74,.19); }
.post-row:hover {
  background: #eee;
}

.post-row .post-title a:hover {
  text-decoration: underline;
  color: #000;
}

.vote-box { margin-top: 6px; }

@media (max-width: 600px) {
  .post-row.post-biggest .post-title a { font-size: 1.4rem; }
  .post-row.post-bigger .post-title a { font-size: 1.3rem; }
  .post-row.post-big .post-title a { font-size: 1.12rem; }
  .post-row.post-medium .post-title a { font-size: 1rem; }
  .post-row.post-small .post-title a { font-size: 0.96rem; }
}

.search-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98);
  z-index: 3000;
  justify-content: center;
  align-items: center;
}
.search-modal.open {
  display: flex;
}
.search-form-box {
  background: #fff;
  padding: 32px 24px 24px 24px;
  border-radius: 18px;
  box-shadow: 0 8px 32px #0002;
  display: flex;
  gap: 0;
  align-items: center;
  min-width: 300px;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}
.search-form-box input[type="search"] {
  flex: 1;
  font-size: 1.15rem;
  border: 1px solid #eee;
  padding: 10px 16px;
  border-radius: 8px 0 0 8px;
  outline: none;
  transition: border 0.18s;
}
.search-form-box input[type="search"]:focus {
  border: 1.5px solid #04aaff;
}
.search-form-box button[type="submit"] {
  background: #04aaff;
  color: #fff;
  border: none;
  font-size: 1.3rem;
  padding: 0 18px;
  height: 44px;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  transition: background 0.2s;
}
.search-form-box button[type="submit"]:hover {
  background: #028ac9;
}
.close-search {
  position: absolute;
  top: 10px; right: 18px;
  background: none; border: none;
  font-size: 2.1rem;
  color: #aaa;
  cursor: pointer;
  z-index: 3010;
}
@media (max-width: 600px) {
  .search-form-box {
    min-width: 0; max-width: 95vw; padding: 18px 8px 14px 8px;
  }
}

body, 
body *:not(i):not(svg):not([class*="dashicons"]):not([class*="fa-"]) {
  font-family: "Special Elite", system-ui !important;
  font-weight: 400 !important;
  font-style: normal !important;
}

p {
   line-height:133%!important;
}

li {
    line-height:125%!important;
}

h1 {
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 1.13;
  margin: 36px 0 22px 0;
  color: #000;
  letter-spacing: 0.02em;
}
h2 {
  font-size: 2.1rem;
  font-weight: 850;
  line-height: 1.16;
  margin: 28px 0 16px 0;
  color: #111;
  letter-spacing: 0.01em;
}
h3 {
  font-size: 1.48rem;
  font-weight: 800;
  line-height: 1.19;
  margin: 23px 0 12px 0;
  color: #181818;
}
h4 {
  font-size: 1.16rem;
  font-weight: 750;
  line-height: 1.24;
  margin: 16px 0 10px 0;
  color: #212121;
}
h5 {
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.28;
  margin: 12px 0 8px 0;
  color: #2c2c2c;
}
h6 {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.28;
  margin: 8px 0 6px 0;
  color: #444;
}

/* Optional: Make links in headings stand out */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1.5px dotted #aaa;
  transition: border 0.2s;
}
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
  color: #04aaff;
  border-bottom: 2px solid #04aaff;
}

/* Responsive adjustments for headings */
@media (max-width: 600px) {
  h1 { font-size: 1.7rem; margin: 24px 0 14px 0; }
  h2 { font-size: 1.28rem; margin: 18px 0 10px 0; }
  h3 { font-size: 1.06rem; margin: 13px 0 8px 0; }
  h4 { font-size: 0.99rem; margin: 10px 0 6px 0; }
  h5 { font-size: 0.93rem; margin: 8px 0 5px 0; }
  h6 { font-size: 0.86rem; margin: 6px 0 4px 0; }
}

.adslot_1 {
  width: 320px; /* Default for small screens */
  height: 320px;
}

@media (min-width: 500px) {
  .adslot_1 {
    width: 250px; /* Larger ad for tablets */
    height: 250px;
  }
}

@media (min-width: 800px) {
  .adslot_1 {
    width: 320px; /* Even larger ad for desktops */
    height: 320px;
  }
}

.category-title {
  font-size: 2.25rem;
  font-family: "Special Elite", system-ui;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-align: left;
  margin: 0 0 24px 0;
  padding: 0 0 10px 0;
  border-bottom: 2px dashed #111;
}

.single-title-row .vote-box {
  width: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 10px;
  margin-top: 0;
}
.single-title-row .vote-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.18rem;
  color: #888;
  transition: color 0.2s;
}
.single-title-row .vote-btn.active { color: #2196f3; }
.single-title-row .vote-score { font-weight: bold; margin: 3px 0; }
@media (max-width: 600px) {
  .single-title-row { flex-direction: column; align-items: flex-start; gap:8px;}
  .single-title-row .vote-box { margin-left:0; }
}

.support-btc-box {
  text-align: center;
  margin: 32px auto;
  max-width: 340px;
}
.support-btc-box small {
  display: block;
  font-size: 0.98rem;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  color: #444;
}
.support-btc-box .btc-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 24px #0002;
  display: block;
  margin: 0 auto;
}
/* Extra: Make it fit better on mobile */
@media (max-width: 600px) {
  .support-btc-box {
    max-width: 98vw;
    margin: 20px auto;
  }
  .support-btc-box .btc-img {
    max-width: 98vw;
    border-radius: 9px;
  }
}