/*
Theme Name: Lovecraft Lite
Theme URI: https://example.com/lovecraft-lite
Author: Tvoje Meno
Author URI: https://example.com
Description: Jednoduchá minimalistická téma podobná Lovecraft, bez WooCommerce a komentárov.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lovecraft-lite
*/

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: #fffcf4;
  color: #222;
  font-size: 18px;
  line-height: 1.5;
}

body.home .container {
  margin-top: 80px;
}

.deka{font-size:10px;}
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

a {
  color: #0b5ed7;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

header {
  background-color: #A90000;
  padding: 15px 30px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header a {
  color: #fff;
  font-weight: 600;
  font-size: 20px;
  text-transform: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 15px;
  background: white;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  max-width: 1000px;
  margin: 10px auto 30px;
  box-sizing: border-box;
}

nav img {
  height: 40px;
  display: block;
}

nav ul.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  flex-grow: 1;
}

nav ul.nav-menu li a {
  font-weight: 600;
  color: #a90000;
  padding: 5px 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

nav ul.nav-menu li a:hover,
nav ul.nav-menu li.current-menu-item a {
  background-color: #a90000;
  color: white;
}

.container {
  max-width: 900px;
  margin: 40px auto 40px;
  padding: 0 20px;
  box-sizing: border-box;
}

h1, h2 {
  color: #111;
  margin-top: 0;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 60px;
}

.post-box {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.post-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
  flex-shrink: 0;
}

.post-box h2 {
  font-size: 20px;
  margin: 15px 15px 10px;
  color: #a90000;
  line-height: 1.2;
}

.post-box p {
  flex-grow: 1;
  margin: 0 15px 15px;
  font-size: 15px;
  color: #555;
  line-height: 1.4;
}

footer {
  background: #222;
  color: #eee;
  text-align: center;
  padding: 20px 10px;
  margin-top: auto;
  font-size: 14px;
}

@media (max-width: 768px) {
  main {
    padding: 15px 10px;
  }
  nav {
    flex-direction: column;
    gap: 10px;
  }
  nav ul.nav-menu {
    justify-content: center;
  }
  .post-box img {
    height: 140px;
  }
  .post-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.header-banner {
  width: 100vw; /* full width viewport */
  max-height: 300px;
  overflow: hidden;
  margin: 0; /* bez okrajov */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.header-banner img {
  width: 100%;
  height: 300px;
  object-fit: cover; /* zachová pomer a vyplní */
  display: block;
}

.banner-wrapper {
  margin-bottom: 40px;
  max-height: 300px;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 10px; /* voliteľne, ak chceš zaoblené rohy */
}

.fullwidth-banner {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.fullwidth-banner img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 300px;
}

@media (max-width: 768px) {
  .fullwidth-banner img {
    max-height: 180px; /* menšia výška pre mobily */
  }
}

@media (max-width: 480px) {
  .fullwidth-banner img {
    max-height: 140px; /* ešte menšia výška pre malé mobily */
  }
}

.horizontal-banner {
  display: flex;
  justify-content: center;  /* centrovanie horizontálne */
  align-items: center;      /* centrovanie vertikálne (ak by bolo potrebné) */
  margin: 40px auto;        /* 40px medzera nad a pod, automatické centrovanie v rámci šírky */
  padding: 10px 0;          /* voliteľné: zvislé vnútorné odsadenie */
  width: 100%;              /* banner môže zaberať celú šírku rodiča */
  box-sizing: border-box;   /* aby padding neovplyvnil šírku */
}
.horizontal-banner img {
  width: 100%;
  max-width: 970px; /* max veľkosť obrázka, napr. 970x90 */
  height: auto;
  display: block;
  border-radius: 6px; /* voliteľné: zaoblené rohy */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* voliteľný tieň */
}

palettes = {
    "style-palette1.css": {
        "primary": "#0b3c49",
        "secondary": "#68b684",
        "highlight": "#d6d6c2",
        "accent": "#ffe6a7",
        "text": "#222"
    },
    "style-palette2.css": {
        "primary": "#004e64",
        "secondary": "#00a5cf",
        "highlight": "#9fffcb",
        "accent": "#e0f7fa",
        "text": "#222"
    },
    "style-palette3.css": {
        "primary": "#0b132b",
        "secondary": "#1c2541",
        "highlight": "#3a506b",
        "accent": "#5bc0be",
        "text": "#eeeeee"
    },
    "style-palette4.css": {
        "primary": "#0f4c75",
        "secondary": "#3282b8",
        "highlight": "#bbe1fa",
        "accent": "#1b262c",
        "text": "#ffffff"
    },
    "style-palette5.css": {
        "primary": "#a59d84",
        "secondary": "#c1baa1",
        "highlight": "#d7d3bf",
        "accent": "#ecebde",
        "text": "#2a2a2a"
    }
}

.custom-three-column {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin: 3rem 0;
  align-items: start;
}

.left-side h2 {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.left-side img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.text-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.text-columns .column p {
  font-size: 1.1rem;
  line-height: 1.4;
  color: #333;
}

/* Responzívne zobrazenie */
@media (max-width: 768px) {
  .custom-three-column {
    grid-template-columns: 1fr;
  }

  .text-columns {
    grid-template-columns: 1fr;
  }

  .left-side h2 {
    font-size: 1.3rem;
  }
}
