/* HC Galeri · Header menü sıkılık, mega filtre ve çözünürlük sayıları v1 */

@media (min-width: 1051px) {
    body[data-site-ui="1"] .site-header .header-inner {
        gap: 12px;
    }

    .site-header .brand {
        gap: 8px;
    }

    .site-header .desktop-nav {
        min-width: 0;
        gap: 1px;
    }

    .site-header .desktop-nav .nav-link,
    .site-header .header-color-similarity-trigger {
        gap: 5px;
        padding: 8px 8px;
        font-size: 12.25px;
        line-height: 1;
        white-space: nowrap;
    }

    .site-header .desktop-nav .nav-link > .icon:first-child,
    .site-header .header-color-similarity-trigger > svg:first-child {
        width: 16px;
        height: 16px;
    }

    .site-header .desktop-nav .mega-chevron,
    .site-header .header-color-similarity-trigger .mega-chevron {
        width: 12px;
        height: 12px;
    }

    .site-header .header-actions {
        gap: 6px;
    }

    .site-header .header-color-similarity-menu {
        align-self: auto;
    }

    .site-header .header-color-similarity-trigger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        height: auto;
        border-color: transparent;
        border-radius: 11px;
    }
}

@media (min-width: 1051px) and (max-width: 1240px) {
    .site-header .desktop-nav .nav-link,
    .site-header .header-color-similarity-trigger {
        gap: 4px;
        padding-inline: 6px;
        font-size: 11.5px;
    }
}

.mega-menu-head > .header-mega-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

.header-mega-search {
    display: grid;
    grid-template-columns: 15px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    width: 180px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--muted);
    background: var(--surface);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.header-mega-search:focus-within {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
    background: var(--surface-2);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 13%, transparent);
}

.header-mega-search .icon {
    width: 15px;
    height: 15px;
}

.header-mega-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font: inherit;
    font-size: 11px;
}

.header-mega-search input::placeholder {
    color: var(--muted);
}

.mega-menu-head .mega-menu-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.mega-menu-head .mega-menu-all-link .icon {
    width: 15px;
    height: 15px;
}

.header-mega-filter-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 96px;
    margin: 10px 14px 16px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    color: var(--muted);
    background: var(--surface-2);
}

.header-mega-filter-empty[hidden],
[data-header-category-group][hidden],
[data-header-category-child][hidden],
[data-header-tag-filter-item][hidden] {
    display: none !important;
}

.resolution-original-count-note {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 600;
    line-height: 1.2;
}

.resolution-mega-item-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    min-width: 0;
    width: 100%;
}

.resolution-mega-item-copy > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resolution-mega-item-copy > small,
.mobile-resolution-original-count {
    flex: 0 0 auto;
    padding: 3px 5px;
    border-radius: 999px;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary-soft) 66%, var(--surface));
    font-size: 7px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.mobile-resolution-child > span:nth-child(2) {
    min-width: 0;
    flex: 1 1 auto;
}

.mobile-resolution-original-count {
    margin-left: auto;
    font-size: 9px;
}

.user-menu > summary {
    gap: 3px;
}

@media (max-width: 760px) {
    .header-mega-search {
        width: 100%;
    }
}

.header-tag-search-status {
    display: none;
    margin: 10px 14px 0;
    color: var(--muted);
    font-size: 10px;
    text-align: right;
}

.header-tag-search-status.is-visible {
    display: block;
}

[data-header-tag-filter-list][aria-busy="true"] {
    opacity: .55;
    pointer-events: none;
}
