/*
 Theme Name: Trendomat
 Description: Minimalna vlastna tema pre magazin Trendomat
 Author: Radoslav
 Version: 2.8
*/


/* =========================================
(1) ZÁKLAD STRÁNKY
========================================= */
body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  background:#ffffff;
  color:#111;
}



/* =========================================
(2) SITE WRAPPER – BEZ TIEŇA
========================================= */
.site-wrapper{
  max-width:1400px;
  margin:0 auto;
  background:none;
  border-radius:0;
  box-shadow:none;
}



/* =========================================
(3) TM-CONTAINER — VNÚTORNÝ BLOK S TIEŇOM
========================================= */
.tm-container{
  max-width:1200px;
  margin:0 auto;
  padding:0;
  background:none;
  border-radius:0;
  box-shadow:none;
}

.tm-container .tm-container{
  margin:35px auto 45px auto;
  padding:25px 30px;
  background:#ffffff;
  border-radius:14px;
  box-shadow:0 18px 45px rgba(0,0,0,.08);
}



/* =========================================
(4) MOBIL CONTAINER
========================================= */
@media (max-width:900px){
  .tm-container .tm-container{
    margin:0;
    border-radius:0;
    box-shadow:none;
    padding:18px;
  }
}



/* =========================================
(5) HLAVIČKA
========================================= */
.tm-header{
  text-align:center;
  padding:25px 0 0 0;
  position:relative;
  background:none;
}

.tm-header>ul{display:none!important;}



/* =========================================
(6) BANNER POD LOGOM
========================================= */
.tm-header-banner{
  width:100%;
  max-width:320px;
  margin:10px auto 18px auto;
  display:flex;
  justify-content:center;
}

.tm-header-banner img{
  width:100%;
  max-width:320px;
  height:auto;
  object-fit:contain;
  border-radius:6px;
}



/* =========================================
(7) HLAVNÉ MENU – DESKTOP
========================================= */
.tm-menu-list{
  list-style:none;
  padding:0;
  margin:6px auto 28px auto;
  display:flex;
  justify-content:center;
  gap:35px;
}

.tm-menu a{
  text-decoration:none;
  color:#222;
  font-weight:600;
  font-size:15px;
}

.tm-menu a:hover{
  text-decoration:underline;
}



/* =========================================
(8) GRID 3 STĹPCE
========================================= */
.tm-grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:32px;
  grid-auto-rows:1fr;
}



/* =========================================
(9) KARTA ČLÁNKU
========================================= */
.tm-post-link{
  display:block;
  text-decoration:none;
  color:inherit;
}

.tm-post-card{
  border:1px solid #e4e4e4;
  padding:18px;
  border-radius:10px;
  background:#fff;
  display:flex;
  flex-direction:column;
  height:430px;
  transition:.22s;
}

.tm-post-card:hover{
  transform:translateY(-6px);
  box-shadow:0 22px 45px rgba(0,0,0,.16);
  border-color:#d6d6d6;
}

.tm-thumb-wrap{
  width:100%;
  height:230px;
  border-radius:10px;
  overflow:hidden;
  margin-bottom:14px;
  background:#f3f3f3;
  border:1px solid #e6e6e6;
}

.tm-thumb{
  width:100%;
  height:100%;
  object-fit:cover;
}

.tm-post-title{
  margin:0 0 10px 0;
  font-size:19px;
  font-weight:800;
}

.tm-post-meta{
  font-size:13px;
  color:#777;
  margin-bottom:6px;
}

.tm-post-excerpt{
  font-size:15px;
  line-height:1.6;
  color:#444;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}



/* =========================================
(10) MOBILNÉ MENU
========================================= */
.tm-mobile-btn{
  display:none;
  position:absolute;
  right:18px;
  top:25px;
  font-size:26px;
  font-weight:900;
  background:none;
  border:none;
  cursor:pointer;
}

.tm-mobile-overlay{
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,.45);
  z-index:9000;
}

.tm-mobile-overlay.show{display:block;}

.tm-mobile-menu{
  position:fixed;
  top:0;
  right:-280px;
  width:240px;
  height:100vh;
  background:#ffffff;
  border-left:1px solid #ddd;
  padding:22px;
  z-index:9999;
  transition:right .28s ease;
}

.tm-mobile-menu.open{right:0;}

.tm-mobile-list{
  list-style:none;
  padding:0;
  margin:25px 0 0 0;
  display:grid;
  gap:10px;
}

.tm-mobile-list li a{
  display:block;
  padding:10px 14px;
  background:#ffffff;
  color:#000 !important;
  text-decoration:none !important;
  font-weight:600;
  font-size:15px;
  border:1px solid #e5e5e5;
  border-radius:8px;
}

.tm-mobile-list li a:hover{
  background:#f4f4f4;
}



/* =========================================
(11) TYPOGRAFIA ČLÁNKU
========================================= */

.single-post h2 {
  font-size:22px;
  font-weight:600;
  line-height:1.3;
  margin-top:28px;
  margin-bottom:10px;
}


/* ===== OBYČAJNÝ TEXT ČLÁNKU ===== */

.single-post p{
  line-height:1.10;
  font-size:18px;
  font-weight:500;
  margin-bottom:14px;

text-align:justify;        /* zarovnanie do bloku */
  hyphens:auto;              /* automatické delenie slov */
  -webkit-hyphens:auto;
  -ms-hyphens:auto;
  overflow-wrap:break-word;  /* fallback */

}

.single-post li{
  line-height:1.10;
  font-size:18px;
  font-weight:500;
  margin-bottom:6px;
}


/* =========================================
(12) ⭐⭐⭐ MOBIL – ZVÄČŠENÉ PÍSMO ČLÁNKU ⭐⭐⭐
IBA TEXT — BEZ NADPISOV
========================================= */

@media (max-width:640px){

  .single-post p,
  .single-post li{
    font-size:21px;      /* <<< TU JE ZVÄČŠENIE */
    line-height:1.25;
  }

}



/* =========================================
(13) MOBIL GRID
========================================= */
@media (max-width:900px){

  .tm-menu{display:none;}
  .tm-mobile-btn{display:block;}

  .tm-grid-3{
    grid-template-columns:1fr;
  }

  .tm-thumb-wrap{
    height:200px;
  }
}



/* =========================================
(14) PAGINÁCIA
========================================= */

.tm-pagination-wrap{
  margin:30px 0 10px 0;
  text-align:center;
}

.tm-pagination{
  display:inline-flex;
  gap:5px;
  padding:0;
  margin:0;
  list-style:none;
}

.tm-pagination li a,
.tm-pagination li span{
  display:inline-block;
  min-width:20px;
  padding:10px 14px;
  border-radius:12px;
  font-weight:600;
  text-decoration:none;
  border:1px solid #e3e3e3;
  background:#ffffff;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
  transition:.25s;
}

.tm-pagination li a:hover{
  background:#111;
  color:#fff;
  transform:translateY(-2px);
}

.tm-pagination li .current{
  background:#111;
  color:#fff;
  border-color:#111;
  box-shadow:0 14px 30px rgba(0,0,0,.18);
}



/* =========================================
(15) INFO BAR (ODSTRÁNENÉ <style> TAGY)
========================================= */

.tm-info-bar{
  max-width:1200px;
  margin:35px auto 10px;
  padding:16px 20px;
  border-radius:14px;
  background:#e9e9e9;
  text-align:center;
}

.tm-info-links{
  display:flex;
  justify-content:center;
  gap:20px;
  list-style:none;
  padding:0;
  margin:0;
}

.tm-info-links a{
  color:#000;
  text-decoration:none;
  opacity:.85;
  font-size:14px;
}

.tm-info-links a:hover{
  opacity:1;
}

.trendomat-footer-note{
  margin-top:8px;
  margin-bottom:18px;
  text-align:center;
  font-size:12px;
  color:#444;
  opacity:.9;
}

@media(max-width: 640px){
  .trendomat-footer-note{
    margin-bottom:24px;
  }
}



/* =========================================
(16) MOBIL PAGINÁCIA KOMPAKT
========================================= */

@media (max-width: 640px){

  .tm-pagination-wrap{
    overflow-x: hidden;
  }

  .tm-pagination{
    flex-wrap: nowrap;
    gap: 2px;
  }

  .tm-pagination li a,
  .tm-pagination li span{
    min-width: 0;
    padding: 5px 6px;
    font-size: 12px;
    border-radius: 8px;
  }
}



/* =========================================
(17) OBRÁZKY V ČLÁNKU
========================================= */

.wp-block-image.tr {
  display: flex;
  justify-content: center;
  margin: 26px 0;
}

.wp-block-image.tr img {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  box-shadow: 0 10px 18px rgba(0,0,0,0.35);
  transition: transform .18s ease, box-shadow .18s ease;
}

@media (hover:hover) {
  .wp-block-image.tr img:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 22px rgba(0,0,0,0.45);
  }
}

.wp-block-image.tr img:active {
  transform: translateY(-3px);
  box-shadow: 0 16px 24px rgba(0,0,0,0.48);
}



/* =========================================
(18) GALÉRIA V ČLÁNKU
========================================= */

.single-post .wp-block-gallery {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.single-post .wp-block-gallery img {
  width: 100%;
  height: auto;
}



/* =========================================
(19) LIGHTBOX
========================================= */

.tr-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.tr-lightbox-overlay.active {
  display: flex;
}

.tr-lightbox-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 12px;
}

.tr-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 38px;
  font-weight: 900;
  color: #ffffff;
  cursor: pointer;
  background: rgba(0,0,0,0.5);
  padding: 6px 14px;
  border-radius: 10px;
}
