/* Compact SomGeek header and search panel */

/* Najvýraznejšie názvy kategórií iba v hornom hlavnom menu. Vyššia
 * špecificita zabezpečí hrúbku 900 aj voči dynamickému nastaveniu menu. */
.sg-header.sg-header .sg-nav > ul > li > a,
.sg-header.sg-header .sg-nav > .sg-menu > li > a,
.sg-header.sg-header .sg-more-toggle {
    font-weight: 900 !important;
}

.sg-search-panel {
    padding: 6px 0 !important;
    background:
        linear-gradient(90deg, rgba(16, 23, 30, 0.96), rgba(8, 12, 16, 0.98)) !important;
    border-top: 1px solid var(--sg-border) !important;
    border-bottom: 1px solid var(--sg-gold-dark) !important;
    box-shadow: inset 0 8px 20px rgba(0, 0, 0, 0.2);
}

.sg-search-panel .sg-shell {
    display: flex;
    justify-content: flex-end;
}

.sg-search-panel .search-form,
.sg-search-panel form {
    width: min(100%, 760px) !important;
    max-width: 760px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 0;
    margin: 0 !important;
}

.sg-search-panel .search-form label,
.sg-search-panel form label {
    display: block;
    min-width: 0;
    margin: 0 !important;
}

.sg-search-panel input[type="search"],
.sg-search-panel .search-field {
    width: 100% !important;
    height: 34px !important;
    padding: 0 13px !important;
    margin: 0 !important;
    background: #080c10 !important;
    color: #f4f5f6 !important;
    border: 1px solid #38424d !important;
    border-right: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 0.84rem !important;
    line-height: 34px !important;
    outline: none;
}

.sg-search-panel input[type="search"]::placeholder,
.sg-search-panel .search-field::placeholder {
    color: #7f8994 !important;
    opacity: 1;
}

.sg-search-panel input[type="search"]:focus,
.sg-search-panel .search-field:focus {
    border-color: var(--sg-gold) !important;
    box-shadow: inset 0 0 0 1px var(--sg-gold) !important;
}

.sg-search-panel input[type="submit"],
.sg-search-panel .search-submit {
    width: 150px !important;
    min-width: 150px !important;
    height: 34px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    background: var(--sg-gold) !important;
    color: #080a0d !important;
    border: 1px solid var(--sg-gold) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif !important;
    font-size: 0.8rem !important;
    font-weight: 900 !important;
    line-height: 34px !important;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.sg-search-panel input[type="submit"]:hover,
.sg-search-panel input[type="submit"]:focus,
.sg-search-panel .search-submit:hover,
.sg-search-panel .search-submit:focus {
    background: var(--sg-gold-bright) !important;
    border-color: var(--sg-gold-bright) !important;
}

@media (min-width: 1025px) {
    .sg-header__inner {
        min-height: 60px;
        grid-template-columns: 185px minmax(0, 1fr) auto;
        gap: 10px;
    }

    .sg-brand.sg-brand--picture {
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        overflow: visible;
        transform: translateX(10px);
    }

    .sg-brand-picture--header {
        width: 100%;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        overflow: visible;
    }

    .sg-brand-picture--header img {
        display: block;
        width: auto !important;
        max-width: none !important;
        height: calc(100% - 2px) !important;
        max-height: calc(100% - 2px) !important;
        margin: 0;
        object-fit: contain;
        object-position: left center;
        transform: translateY(1px);
    }

    .sg-brand__custom-logo img {
        width: auto;
        height: calc(100% - 2px);
        max-height: calc(100% - 2px);
    }

    .sg-nav {
        width: 100%;
    }

    .sg-nav > .sg-menu {
        width: 100%;
        justify-content: space-between;
    }

    .sg-menu > li > a,
    .sg-nav ul > li > a {
        min-height: 60px;
        padding: 0 8px;
        font-size: 0.88rem;
    }

    .sg-menu > li > a::after,
    .sg-nav ul > li > a::after {
        right: 8px;
        left: 8px;
        height: 3px;
    }

    .sg-more-toggle {
        min-height: 60px;
        padding: 0 10px;
        font-size: 0.88rem;
    }

    .sg-more-toggle::after {
        right: 10px;
        left: 10px;
        height: 3px;
    }

    .sg-header-actions {
        gap: 8px;
    }

    .sg-icon-button {
        width: 34px;
        height: 34px;
        font-size: 1.35rem;
    }

    .sg-login-link {
        gap: 5px;
        font-size: 0.8rem;
    }
}

@media (max-width: 760px) {
    .sg-search-panel {
        padding: 5px 0 !important;
    }

    .sg-search-panel .search-form,
    .sg-search-panel form {
        width: 100% !important;
        max-width: none !important;
        grid-template-columns: minmax(0, 1fr) 108px;
    }

    .sg-search-panel input[type="search"],
    .sg-search-panel .search-field,
    .sg-search-panel input[type="submit"],
    .sg-search-panel .search-submit {
        height: 32px !important;
        line-height: 32px !important;
    }

    .sg-search-panel input[type="submit"],
    .sg-search-panel .search-submit {
        width: 108px !important;
        min-width: 108px !important;
        padding-inline: 10px !important;
        font-size: 0.74rem !important;
    }
}
