/* "Wszystkie opinie" /opinie/ (docs/all-reviews.md): values of css/listing.css of the old theme, in its order.
   Old names: .hn-opinie-hero → .all-reviews__hero, .hn-opinie-stats → .all-reviews__stats, .hn-opinie-search → .reviews-search,
   .hn-opinie-suggest → .reviews-suggest, .hn-rev-card → .review-card, .hn-rev-* → .review-card__*, .hn-op-pagination → .all-reviews__pagination.
   --hn-radius-card was 10px (main.css). */

.all-reviews__hero {
    background: var(--ink);
    color: #fff;
}

.all-reviews__hero .container {
    padding-top: 76px;
    padding-bottom: 84px;
}

.all-reviews__hero-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.all-reviews__hero h1 {
    font-size: clamp(34px, 4vw, 47px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    text-wrap: balance;
}

.all-reviews__hero h1 em {
    font-style: normal;
    color: var(--red);
}

.all-reviews__hero .all-reviews__lead {
    display: block;
    border: 0;
    margin: 20px auto 0;
    max-width: 600px;
    font-size: 16.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
}

.all-reviews__stats {
    margin-top: 44px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.all-reviews__stat {
    width: 180px;
    padding: 4px 12px;
    text-align: center;
    position: relative;
}

.all-reviews__stat + .all-reviews__stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 38px;
    background: rgba(255, 255, 255, 0.16);
}

.all-reviews__number {
    display: block;
    font-weight: 700;
    font-size: 25px;
    letter-spacing: -0.01em;
    color: #fff;
}

.all-reviews__label {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.all-reviews__list {
    padding: 60px 0 92px;
}

.all-reviews__toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.reviews-search {
    position: relative;
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 2px);
    padding: 6px;
    width: 100%;
    max-width: 620px;
    box-shadow: var(--shadow-card);
}

.reviews-search__field {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    padding: 0 8px 0 14px;
    color: var(--muted);
}

.reviews-search input {
    flex: 1;
    border: 0;
    outline: none;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ink);
    background: transparent;
    min-width: 0;
}

.reviews-search input::placeholder {
    color: var(--muted-2);
    font-weight: 600;
}

.reviews-search__button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--red);
    color: #fff;
    border: 0;
    border-radius: var(--radius);
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 26px;
    height: 52px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.reviews-search__button:hover {
    background: var(--red-dark);
}

.reviews-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 30;
    display: none;
    padding: 6px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
}

.reviews-suggest.is-open {
    display: block;
}

.reviews-suggest__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius);
    color: var(--ink);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
}

.reviews-suggest__item:hover,
.reviews-suggest__item.is-active {
    background: var(--bg);
}

.reviews-suggest__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.all-reviews__results {
    margin: -8px 0 24px;
    text-align: center;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--muted);
}

.all-reviews__results b {
    color: var(--ink);
    font-weight: 800;
}

.all-reviews .all-reviews__clear {
    margin-left: 10px;
    color: var(--red);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.06em;
}

.all-reviews .all-reviews__clear:hover {
    text-decoration: underline;
}

.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 20px;
}

.review-card {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px 26px 22px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.review-card__top {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.review-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--muted);
    flex: none;
}

.review-card__id {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 2px;
    min-width: 0;
}

.review-card__name {
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1;
    color: var(--ink);
}

.review-card__stars {
    font-size: 13px;
    line-height: 1;
    letter-spacing: 2px;
    color: #e8a013;
}

/* The filled stars are spans: the global span colour made them black. Gold since the owner's decision of 2026-09-24. */
.review-card__stars span {
    color: inherit;
}

.review-card__stars .is-off {
    color: #d8d8d3;
}

.review-card__date {
    margin-left: auto;
    padding-top: 3px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    color: var(--muted-2);
    white-space: nowrap;
}

.review-card__subject {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 17px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--ink);
    transition: color 0.15s ease;
}

.review-card__subject:hover {
    color: var(--red);
}

.all-reviews .review-card__tag {
    flex: none;
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 8px 4px;
    border-radius: 4px;
}

.all-reviews .review-card__tag--developer {
    color: #fff;
    background: var(--ink);
}

.all-reviews .review-card__tag--investment {
    color: var(--ink);
    box-shadow: inset 0 0 0 1.5px var(--ink);
}

.review-card__text {
    margin: 12px 0 0;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ink-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.65em * 2);
}

.review-card__foot {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.review-card__helpful {
    position: relative;
    z-index: 2;
    border: 0;
    background: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.15s ease;
}

.review-card__helpful svg {
    width: 15px;
    height: 15px;
}

.review-card__helpful:hover {
    color: var(--ink);
}

.review-card__helpful.is-active {
    color: var(--red);
    cursor: default;
}

.review-card__more {
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    white-space: nowrap;
    transition: color 0.15s ease;
}

.review-card__more::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.review-card__more:hover {
    color: var(--red);
}

.all-reviews__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
}

.all-reviews__text {
    padding: 0 0 80px;
}

.all-reviews__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
}

.all-reviews__pagination .page-numbers {
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.all-reviews__pagination a.page-numbers:hover {
    border-color: var(--ink);
}

.all-reviews__pagination .page-numbers.current {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    cursor: default;
}

.all-reviews__pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

.all-reviews__pagination .prev,
.all-reviews__pagination .next {
    font-size: 20px;
    font-weight: 600;
}

@media (max-width: 760px) {
    .all-reviews__hero .container {
        padding-top: 52px;
        padding-bottom: 60px;
    }

    .all-reviews__stats {
        margin-top: 34px;
    }

    .all-reviews__stat {
        width: 33%;
        padding: 4px 6px;
    }

    .all-reviews__number {
        font-size: 22px;
    }

    .all-reviews__list {
        padding: 48px 0 64px;
    }

    .reviews-search {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .reviews-search__field {
        flex: none;
        border: 1.5px solid var(--line);
        border-radius: var(--radius);
        height: 50px;
    }

    .reviews-search__button {
        height: 50px;
        width: 100%;
        justify-content: center;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }
}

@media (pointer: coarse) {
    .reviews-search input {
        font-size: 16px;
    }
}

.all-reviews__toolbar {
    scroll-margin-top: 90px;
}

/* The page sits right on the footer (main.css: body.hn-opinie-page .site-footer). */
.page-all-reviews .site-footer {
    margin-top: 0;
}
