/**
 * Theme Name:     GeneratePress Child
 * Author:         Tom Usborne
 * Template:       generatepress
 * Text Domain:	   generatepress-child
 * Description:    GeneratePress is a lightweight WordPress theme built with a focus on speed and usability. Performance is important to us, which is why a fresh GeneratePress install adds less than 10kb (gzipped) to your page size. We take full advantage of the block editor (Gutenberg), which gives you more control over creating your content. If you use page builders, GeneratePress is the right theme for you. It is completely compatible with all major page builders, including Beaver Builder and Elementor. Thanks to our emphasis on WordPress coding standards, we can boast full compatibility with all well-coded plugins, including WooCommerce. GeneratePress is fully responsive, uses valid HTML/CSS, and is translated into over 25 languages by our amazing community of users. A few of our many features include 60+ color controls, powerful dynamic typography, 5 navigation locations, 5 sidebar layouts, dropdown menus (click or hover), and 9 widget areas. Learn more and check out our powerful premium version at https://generatepress.com
 */

/* ======================================
   SITE TITLE + GLOBAL UI ELEMENTS
====================================== */

.site-description {
    margin-top: 1.2em;
    background-color: rgba(31, 32, 36, 0.4);
    padding: 14px;
    border: 1px solid var(--contrast-5);
}

.site {
    box-shadow: 0 0 20px -10px rgba(0, 0, 0, 0.3);
}

.button,
.submit {
    border-radius: 3px;
}

/* ======================================
   SIDEBAR STICKY (DESKTOP)
====================================== */

@media (min-width: 769px) {
    .sidebar.is-right-sidebar > .inside-right-sidebar {
        position: sticky;
        top: 54px;
    }
}

/* ======================================
   CATEGORY LABEL COLORS (UNIQUE)
====================================== */

/* Comedy – svijetlo narandžasta */
body:not(.single) .category-comedy span.loop-term {
    background-color: #ff9800;
}

/* Entertainment – breskva/roze-tople nijanse */
body:not(.single) .category-entertainment span.loop-term {
    background-color: #ff6f61;
}

/* Horror – tamno krv-crvena */
body:not(.single) .category-horror span.loop-term {
    background-color: #b71c1c;
}

/* Sci-Fi Horror Movies – ljubičasto-SF unikatna */
body:not(.single) .category-sci-fi-horror-movies-horror span.loop-term {
    background-color: #5f27cd;
}

/* Love & Romance – rosa ljubičasta */
body:not(.single) .category-love-romance span.loop-term {
    background-color: #d81b60;
}

/* Marvel – čista jarka crvena (Marvel brand) */
body:not(.single) .category-marvel span.loop-term {
    background-color: #e53935;
}

/* Movie Recommendations – tirkizno plava */
body:not(.single) .category-movie-recommendations span.loop-term {
    background-color: #00bcd4;
}

/* Upcoming Movies – žuto-zlatna */
body:not(.single) .category-upcoming-movies span.loop-term {
    background-color: #fcb900;
}

/* Watch Online – čista plava */
body:not(.single) .category-watch-online span.loop-term {
    background-color: #1e73be;
}

/* Global style for category badge */
span.loop-term {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}

/* ======================================
   CATEGORY ARCHIVE LAYOUT
====================================== */

.archive .site-main {
    padding: 30px;
    background-color: var(--base-2);
    border-radius: 10px;
}

.site-header,
.main-navigation {
    max-width: var(--gb-container-width);
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* ======================================
   LOOP CARDS (POST LIST)
====================================== */

.gb-loop-item.resize-featured-image.is-loop-template-item {
    aspect-ratio: 6 / 3;
    background-size: cover;
    background-position: center;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

/* Fallback for old browsers */
@supports not (aspect-ratio: 1 / 1) {
    .gb-loop-item.resize-featured-image.is-loop-template-item {
        position: relative;
        padding-top: 100%;
    }
    .gb-loop-item.resize-featured-image.is-loop-template-item > * {
        position: absolute;
        inset: 0;
    }
}

.archive .gb-loop-item {
    margin-bottom: 30px;
}

/* Grid layout ratio-third */
@media (min-width: 769px) {
    .archive .site-main .ratio-third {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .archive .site-main .ratio-third > .gb-loop-item:first-child {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }
}

/* ======================================
   SINGLE POST SPACING
====================================== */

body.single-post #site-navigation {
    margin-top: 80px;
}

body.single-post section[class*="gb-element-"] {
    margin-top: 0;
}
