/*
Theme Name: PWasil
Author: Jakub
*/

:root {
    --primary-color: #35A592;
    --white-100: rgba(255, 255, 255, 1);
    --white-40: rgba(255, 255, 255, 0.4);
    --white-10: rgba(255, 255, 255, 0.1);
    --background-color: #24252C;
    --dark-gray: #323232;
}

body {
    background-color: var(--background-color);
    color: var(--white-100);
    font-family: 'Poppins', sans-serif;
}

.link-primary {
    color: var(--primary-color) !important;
    text-decoration: underline;
    transition: color 0.3s ease;
}
.text-muted {
    color: var(--white-40);
}

.site {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-flex;
    gap:1rem;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    border: 1px solid;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-100);
    border-color: var(--primary-color)
}
.btn-primary:hover {
    background-color: var(--white-100);
    color: var(--primary-color);
    border-color: var(--white-100)
}
.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white-100);
    border-color: var(--primary-color);
}


/* Header styles */

.site-header {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

@media screen and (min-width: 768px) {
    .site-header {
        position: relative;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
        padding: 2rem 0;
    }
    .menu-toggle {
        display: none;
    }

}

.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap:0.5rem;
}
.main-menu-link {
    display: block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: var(--white-100);
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--white-10);
    border-radius: .25rem;
    cursor: pointer;
}

.main-menu-link:hover {
    background: transparent;
    color: var(--primary-color);
}

.submenu {
    list-style: none;
    margin: 0;
    padding: 3rem 1.5rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background-color);
    border-color: var(--primary-color);
    border-style: solid;
    border-width: 5px 0 5px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.has-submenu.active .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu-link {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--white-100);
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.submenu-link:hover {
    color: var(--primary-color);
}

.post-count {
    color: var(--white-40);
    font-size: .75rem;
    font-weight: normal;
}

.submenu-item.current-cat > .submenu-link {
    color: var(--primary-color);
}

.menu-item.current-cat > .main-menu-link {
    background-color: var(--primary-color);
    color: var(--white-100);
}

@media (max-width: 768px) {
    .site-branding {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .main-menu {
        flex-direction: column;
    }

    .main-navigation {
        display: none;
    }

    .submenu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
    }

    .has-submenu.active .submenu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem .65rem;
    }
    .submenu-link {
        font-size: 1rem;
    }

    .hamburger-inner, .hamburger-inner:after, .hamburger-inner:before,
    .hamburger.is-active .hamburger-inner, .hamburger.is-active .hamburger-inner:after, .hamburger.is-active .hamburger-inner:before {
        background-color: var(--white-100);
    }
}

/* Entry styles */
.entry-header {
    background-color: var(--dark-gray);
    color: var(--white-100);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap:0;
    margin-bottom: 2rem;
}
.entry-details-holder {
    flex-direction: column-reverse;
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    justify-content: space-between;
}
.entry-header h1 {
    font-size: 3rem;
    font-weight: 400;
    margin: 0;
    color: var(--white-100);
}
.entry-details {
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
    color: var(--white-40);
}

@media screen and (min-width: 768px) {
    .entry-header {
        padding: 3rem;
    }
    .entry-details-holder {
        flex-direction: row;
        align-items: flex-start;
    }
    .entry-header h1 {
        font-size: 4rem;
    }

}



/* Entry thumb */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
}
@media screen and (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (min-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white-100);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.post-item {
    border-radius: 0.25rem;
    overflow: hidden;
}

.post-thumbnail:hover img {
    transform: scale(1.05);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.post-thumbnail {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 12/8;
    border-radius: 0.25rem;
}
.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
    transition: all 0.3s ease;

}
.post-info-holder {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
}
.post-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}
.post-category {
    font-size: 0.875rem;
    color: var(--white-40);
}
.post-title {
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--white-100);
    margin: 0;
}
.post-title a {
    text-decoration: none;
    color: inherit;
}


/* gallery thumbs styles */

.blocks-gallery-item {
    position: relative;
    cursor: pointer;
    aspect-ratio: 12/8;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, .01), rgba(255, 255, 255, .10));
}

.filebird-block-filebird-gallery:not(.is-cropped) li.blocks-gallery-item img,
.filebird-block-filebird-gallery:not(.is-cropped) li.blocks-gallery-item img {
    object-fit: contain !important;
}

ul.filebird-block-filebird-gallery.layout-grid li img {
    border: none;
    box-shadow: none;
}

/* footer */

footer.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    border-top: 5px solid var(--primary-color);
    margin-top: 4rem;
}

ul.menu {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 0.5rem 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

ul.menu li a {
    color: var(--white-100);
    text-decoration: none;
}

ul.menu li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

@media screen and (min-width: 768px) {
    footer.site-footer {
        flex-direction: row;
        justify-content: space-between;
        padding: 2rem 0rem 3rem;
    }

}

/* slider */

.slide {
    display: flex;
}

.slide figure {
    margin: 0;
    width: calc(66.66% + 2rem);
    flex-shrink: 0;
    border-radius: 0.25rem 0 0 0.25rem;
    overflow: hidden;
}

.slide-info {
    background-color: var(--dark-gray);
    padding: 7rem 3rem 4rem 3rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.slide-actions {
    margin-top: auto;
}

.slide-info h2 {
    font-size: 4rem;
    font-weight: 400;
    margin: 0;
}
.slide-info .text-muted p {
    line-height: 1.5;
}

.slide img {
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100%;
    aspect-ratio: 12/8;
}

@media screen and (max-width: 768px) {
    .slide {
        flex-direction: column;
    }
    .slide figure {
        width: 100%;
        border-radius: 0.25rem 0.25rem 0 0;
    }
    .slide-info {
        padding: 1rem;
    }
    .slide-info h2 {
        font-size: 2rem;
    }
    .slide-info h2+div {
        height: 120px;
        position: relative;
        overflow: hidden;
        margin-bottom: 1rem;
    }

    .slide-info h2+div:after {
        content: "";
        display: block;
        width: 100%;
        height: 30px;
        background-image: linear-gradient(to bottom, transparent, var(--dark-gray) 80%);
        position: absolute;
        bottom: 0;
        left: 0;
        z-index: 10;
    }

}

.glide__arrow {
    width: 3rem;
    height: 3rem;
    border-radius: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--white-10);
    color: var(--white-100);
    background-color: transparent;
    cursor: pointer;
}
.glide__arrow:hover {
    background-color: var(--white-40);
    color: var(--white-100);
}

@media screen and (min-width: 768px) {
    .glide__arrows {
        position: absolute;
        top: 2rem;
        right: 3rem;
    }

}

@media screen and (max-width: 768px) {
    .glide__arrows {
        justify-content: center;
        display: flex;
        gap: 1rem;
        margin-top: 0.5rem;
    }

}

@media screen and (min-resolution: 1.25dppx) and (min-width: 1200px) {
    html {
        font-size: 14px;
    }
}

@media screen and (min-resolution: 1.5dppx) and (min-width: 1200px) {
    html {
        font-size: 12px;
    }
}

/* alt */

.alt-popover {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 12px;
            font-size: 0.75rem;
            font-style: italic;
            text-align: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .alt-popover.show {
            opacity: 1;
        }