/*
Theme Name: Minimal Theme
Author: Scriptos Karol Drąg
Description: Minimalistyczny szablon
Version: 1.0
*/

/* Ustaw box-sizing: border-box na wszystkie elementy i ich pseudo-elementy */entry-content h1
/**, *::before, *::after {
    box-sizing: border-box;
}*/

h1 { font-size: 3.6rem }
h2 { font-size: 2.6rem }
h3 { font-size: 2.1rem }
h4 { font-size: 1.8rem }
h5 { font-size: 1.5rem }
h6 { font-size: 1.2rem }

header nav.navigation {
    display: block;
    unicode-bidi: isolate;
}

.navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.navigation ul li {
    margin: 0;
    padding: 0;
}

.entry-content a {
    text-decoration: underline;
}

a img,
article img {
    transition: opacity 0.3s ease-in-out;
}

a:hover img,
article:hover img {
    opacity: .85;
}

img.custom-logo {
    width: auto;
    height: 60px;
}

p:last-child,
ol:last-child,
ul:last-child {
    margin-bottom: 0;
}

header {
    border-bottom: 1px solid var(--color-quaternary);
}

body.dark-theme header {
    border-bottom: 1px solid var(--color-initial);
}

.theme-toggle svg g g {
    fill: var(--color-primary);
}

.container-home-page-first > .row {
    gap: 20px 0;
}

.chpf__left {

}

.chpf__right {
    gap: 20px;
}

.chpf__left article,
.chpf__right article {
    position: relative;
}

.chpf__img {
    position: relative;
    display: block;
    z-index: 1;
}

.chpf__date {
    position: absolute;
    top: 15px;
    left: 15px;
    display: block;
    z-index: 2;
}

.chpf__info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: block;
    z-index: 2;
    background: linear-gradient(180deg,rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
}

.shadow {
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.13);
    /*border: 1px solid #373737;*/
}

/* =============================================
   Widget Kategorie - stylowanie
   ============================================= */

/* Naglowek widgetu kategorii */
.widget h3 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin: 0 0 14px 0;
    padding: 0 0 10px 0;
    position: relative;
}

.widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 2px;
    background-color: var(--color-primary);
}

/* Lista kategorii - reset */
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Element listy */
.widget ul li.cat-item {
    margin: 0;
    padding: 0;
    font-size: 0;
    line-height: 0;
}

/* Link kategorii */
.widget .cat-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 7px;
    background: var(--color-tertiary);
    color: var(--color-primary);
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    border-left: 3px solid transparent;
}

/* Ikonka strzalki przed nazwa */
.widget .cat-item a::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--color-primary);
    border-top: 2px solid var(--color-primary);
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: border-color 0.2s ease;
}

/* Hover */
.widget .cat-item a:hover {
    background: var(--color-primary);
    color: var(--color-initial);
    border-left-color: #e06b44;
    padding-left: 16px;
}

.widget .cat-item a:hover::before {
    border-color: var(--color-initial);
}

/* Aktywna kategoria */
.widget .cat-item.current-cat a,
.widget .cat-item.current-cat-parent a {
    background: var(--color-primary);
    color: var(--color-initial);
    border-left-color: #e06b44;
}

.widget .cat-item.current-cat a::before,
.widget .cat-item.current-cat-parent a::before {
    border-color: var(--color-initial);
}

/* Dark theme */
body.dark-theme .widget h3 {
    color: rgba(255,255,255,0.6);
}

body.dark-theme .widget h3::after {
    background-color: #e06b44;
}

body.dark-theme .widget .cat-item a {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
}

body.dark-theme .widget .cat-item a::before {
    border-color: rgba(255,255,255,0.85);
}

body.dark-theme .widget .cat-item a:hover {
    background: #e06b44;
    color: #fff;
    border-left-color: var(--color-primary);
}

body.dark-theme .widget .cat-item a:hover::before {
    border-color: #fff;
}

/* Stylowanie nagłówków h3 w sekcjach Proponowane wpisy i Najnowsze wpisy */
.related-posts h3 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin: 0 0 14px 0;
    padding: 0 0 10px 0;
    position: relative;
}

.related-posts h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 2px;
    background-color: var(--color-primary);
}

body.dark-theme .related-posts h3 {
    color: rgba(255,255,255,0.6);
}

body.dark-theme .related-posts h3::after {
    background-color: #e06b44;
}

/* Stylowanie nagłówków h1 w entry-content */
.entry-content h1 {
    position: relative;
    padding-bottom: 12px;
}

.entry-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 2px;
    background-color: var(--color-primary);
}

/* Stylowanie nagłówków h2-h6 w entry-content */
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    position: relative;
    padding-bottom: 12px;
}

.entry-content h2::after,
.entry-content h3::after,
.entry-content h4::after,
.entry-content h5::after,
.entry-content h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 2px;
    background-color: var(--color-primary);
}

body.dark-theme .entry-content h1::after,
body.dark-theme .entry-content h2::after,
body.dark-theme .entry-content h3::after,
body.dark-theme .entry-content h4::after,
body.dark-theme .entry-content h5::after,
body.dark-theme .entry-content h6::after {
    background-color: #e06b44;
}

/* Stylowanie h1 w content single-post */
.content.single-post h1 {
    position: relative;
    padding-bottom: 12px;
}

.content.single-post h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 2px;
    background-color: var(--color-primary);
}

body.dark-theme .content.single-post h1::after {
    background-color: #e06b44;
}

/* Stylowanie nagwkw na stronie gwnej - Wyrnione wpisy i Pozostae wpisy */
.container h2.fs-24,
.container h1.fs-24 {
	    position: relative;
	    padding-bottom: 12px;
	    /*text-transform: uppercase;
	    letter-spacing: 0.14em;
	    font-size: 15px !important;*/
}

.container h2.fs-24::after,
.container h1.fs-24::after {
	    content: '';
	    position: absolute;
	    bottom: 0;
	    left: 0;
	    width: 70px;
	    height: 2px;
	    background-color: var(--color-primary);
}

body.dark-theme .container h2.fs-24::after,
body.dark-theme .container h1.fs-24::after {
	    background-color: #e06b44;
}
}
}
}