/* =====================================================================
   PROVIDERS PAGES — Hub (listing) + Single provider
   Front prototype. Uses existing Bonusario design tokens (main.css :root).
   No new colors. Casino list = blocks.home_top-list, game cards =
   parts/slot-item, "how we rate" = parts/bonus-methodology (all reused).

   NOTE: .row is display:flex (gutter system) — every direct child of
   .row MUST be width:100% or it collapses into a narrow column.
   ===================================================================== */

/* =====================================================================
   SHARED
   ===================================================================== */

.prov-kicker {
    display: inline-block;
    font-family: var(--second-family);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--shades-white);
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 100px;
    margin-bottom: 18px;
    backdrop-filter: blur(6px);
}

/* Card base — matches .bonus-country-card idiom */
.prov-card,
.prov-specs,
.prov-about__card,
.prov-features {
    background: var(--shades-white);
    border: 1px solid var(--borders-main-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(14, 29, 58, 0.08);
}

/* Author byline: reuses global .rh-author. Center it in the centered
   hero (avatar stays at the byline's left so the badge lands right) and
   fill the avatar with a monogram until a real author photo is wired. */
/* Hub hero is centered -> center the byline (single hero reuses the
   left-aligned payment-method hero, so no centering there). */
.providers-hub-page .archive-header .rh-author {
    width: fit-content;
    margin-inline: auto;
    margin-top: 6px;
    text-align: left;
    gap: 14px;
}

.providers-hub-page .rh-author__avatar,
.providers-single-page .rh-author__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
    font-size: 22px;
    color: var(--shades-white);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark-blue));
}

/* =====================================================================
   HUB (LISTING)
   ===================================================================== */

/* Tighter vertical rhythm than the sitewide .section (86px) */
.providers-hub-page .section:not(.archive-header) { padding-top: 54px; padding-bottom: 54px; }

/* Pull directory grid up onto the dark hero (same trick as bonus hub) */
.providers-hub-page .archive-header.bg_header_box_top + section.prov-directory-section {
    margin-top: -170px;
    padding-top: 40px;
    background-color: transparent;
}

/* --- Filter tabs --- */
.prov-filter {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.prov-filter__tab {
    font-family: var(--second-family);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--shades-white);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 100px;
    padding: 9px 18px;
    cursor: pointer;
    transition: all .2s ease;
    backdrop-filter: blur(6px);
}

.prov-filter__tab:hover { background: rgba(255, 255, 255, 0.2); }

.prov-filter__tab.is-active {
    background: var(--shades-white);
    color: var(--primary-dark-blue);
    border-color: var(--shades-white);
}

/* --- Directory grid --- */
.prov-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.prov-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-primary);
    padding: 0;
    transition: border-color .2s ease;
}

.prov-card:hover { border-color: rgba(20, 128, 255, 0.45); }

/* Header band holding the logo */
.prov-card__head {
    position: relative;
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #001f5a 0%, #090d0f 100%);
}

/* Logo sits directly on the header band (no plate) */
.prov-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px 24px;
}

.prov-logo img { max-width: 100%; max-height: 56px; object-fit: contain; display: block; }

/* Hover arrow — same idiom as the minimum-deposit hub cards */
.prov-card__arrow {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--shades-white);
    background: rgba(255, 255, 255, 0.14);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .25s ease, transform .25s cubic-bezier(.4, 0, .2, 1);
}

.prov-card:hover .prov-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

.prov-card__body { padding: 16px 20px 18px; }

.prov-card__name {
    display: block;
    font-family: var(--font-family);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 9px;
    color: var(--text-primary);
    transition: color .2s ease;
}

.prov-card:hover .prov-card__name { color: var(--primary-blue); }

.prov-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

.prov-card__count { font-family: var(--second-family); font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.prov-card__count strong { color: var(--primary-blue); font-weight: 700; }

.prov-card__dot { color: var(--text-tertiary); }

.prov-tag {
    font-family: var(--second-family);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 9px;
    border-radius: 100px;
    background: rgba(20, 128, 255, 0.08);
    color: var(--primary-dark-blue);
}

.prov-tag--live { background: rgba(97, 244, 0, 0.15); color: var(--system-colors-success); }
.prov-tag--crash { background: rgba(173, 93, 248, 0.12); color: var(--tag-colors-exclusive); }

.prov-card.is-hidden { display: none; }

/* --- Categorized rails (speciality cards with ranked lists) --- */
.prov-rails {
    width: 100%;
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.prov-rail {
    background: var(--shades-white);
    border: 1px solid var(--borders-main-border);
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(14, 29, 58, 0.08);
    padding: 22px 22px 12px;
}

.prov-rail__head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 6px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--borders-main-border);
}

.prov-rail__icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(20, 128, 255, 0.08);
    color: var(--primary-blue);
}

.prov-rail__title {
    font-family: var(--font-family);
    font-size: 22px;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    margin: 0;
}

.prov-rail__list { display: flex; flex-direction: column; }

.prov-rail__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    text-decoration: none;
    border-bottom: 1px solid var(--shades-grey);
}

.prov-rail__item:last-child { border-bottom: none; }

.prov-rail__rank {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-family: var(--font-family);
    font-size: 14px;
    color: var(--primary-dark-blue);
    background: rgba(20, 128, 255, 0.08);
    transition: all .2s ease;
}

.prov-rail__name {
    font-family: var(--second-family);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color .2s ease;
}

.prov-rail__item:hover .prov-rail__name { color: var(--primary-blue); }

/* =====================================================================
   SINGLE PROVIDER
   ===================================================================== */

/* --- Hero: reuses payment-method-single hero verbatim (.review-hero /
   .rh-title / .rh-lead / .rh-actions / .review-hero__offer /
   .demo-game-specs). Only the provider-logo title icon is a monogram
   placeholder until a real logo is wired in. --- */
.prov-title-mono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-family: var(--font-family);
    font-size: 26px;
    letter-spacing: 0.02em;
    color: var(--shades-white);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark-blue));
}

/* Real provider logo sits on a frosted plate (same glass idiom as the
   hero chips) so light/white logos stay visible on the dark hero. */
.prov-logo-plate {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 0 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
}

.prov-logo-plate__img {
    display: block;
    width: auto;
    height: 56px;
    object-fit: contain;
}

/* Top-games cards (slot/crash) on the provider page: equal height with the
   action buttons pinned to the bottom so they line up across cards regardless
   of title/excerpt length. */
.providers-single-page .blog_list .slot__item {
    display: flex;
    flex-direction: column;
}
.providers-single-page .blog_list .slot__item .blog__item-content {
    display: flex;
    flex-direction: column;
}
.providers-single-page .blog_list .slot__item .slot__item-button,
.providers-single-page .blog_list .slot__item .crash__item-actions {
    margin-top: auto;
}

/* Smaller-than-default H1 + narrower column so the heading wraps sooner
   (desktop only — mobile keeps the project's responsive sizing). */
@media (min-width: 768px) {
    .providers-single-page .rh-title {
        font-size: 62px;
        max-width: 600px;
    }
}

/* --- Single provider: layout + section rhythm --- */
.providers-single-page .payment-method-hero.review-hero {
    margin-bottom: 0;
}

.providers-single-page section.blog-section.section,
.providers-single-page .prov-profile-section {
    background: transparent;
}

/* Casino block: same gray band + button as homepage */
.providers-single-page section.top-section.section {
    padding-top: 48px;
    padding-bottom: 56px;
    background: var(--background-secondary);
}

/* Content sections: even vertical padding */
.providers-single-page section.blog-section.section,
.providers-single-page .prov-profile-section,
.providers-single-page section.section:not(.top-section):not(.review-hero):not(.payment-method-hero):not(.seo-section) {
    padding-top: 64px;
    padding-bottom: 64px;
}

/* Tighter join when a light section follows the gray casino band */
.providers-single-page section.top-section.section + section {
    padding-top: 48px;
}

/* Section headers: title → descr → content */
.providers-single-page section:not(.top-section) .section-top {
    margin-bottom: 32px;
}

.providers-single-page .section-top .section-title {
    margin: 0;
}

.providers-single-page .section-top .section-descr {
    margin-top: 12px;
    margin-bottom: 0;
    max-width: 640px;
}

/* blog-section global rule puts 36px under the title, before the descr */
.providers-single-page .blog-section .section-title {
    margin-bottom: 0;
}

.providers-single-page .blog-section.section .blog_list {
    margin-top: 0;
}

/* --- Profile panel: about + features --- */
.prov-profile-section {
    padding-top: 64px;
    padding-bottom: 64px;
}

.prov-profile-panel {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
    gap: 0;
    background: var(--shades-white);
    border: 1px solid var(--borders-main-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(14, 29, 58, 0.08);
    overflow: hidden;
}

.prov-profile-panel__about {
    padding: 36px 40px 40px;
    border-right: 1px solid var(--borders-main-border);
}

.prov-profile-panel__features {
    padding: 36px 32px 32px;
    background: linear-gradient(180deg, rgba(20, 128, 255, 0.04) 0%, rgba(20, 128, 255, 0.01) 100%);
}

.prov-profile-panel__head {
    margin-bottom: 20px;
}

.prov-profile-panel__title {
    margin: 0;
    font-family: var(--font-family);
    font-size: clamp(28px, 3.2vw, 38px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    text-align: left;
}

.prov-profile-panel__lead {
    margin: 10px 0 0;
    font-family: var(--second-family);
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.prov-profile-panel__body {
    font-family: var(--second-family);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.prov-profile-panel__body p { margin: 0 0 14px; }
.prov-profile-panel__body p:last-child { margin-bottom: 0; }
.prov-profile-panel__body strong { color: var(--text-primary); font-weight: 600; }

.prov-profile-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.prov-profile-features__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--borders-main-border);
    font-family: var(--second-family);
}

.prov-profile-features__item:last-child { border-bottom: none; padding-bottom: 0; }
.prov-profile-features__item:first-child { padding-top: 0; }

.prov-profile-features__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
}

.prov-profile-features__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.prov-profile-features__item.is-yes .prov-profile-features__status { color: var(--system-colors-success); }
.prov-profile-features__item.is-no .prov-profile-features__status { color: var(--text-tertiary); }

@media (max-width: 900px) {
    .prov-profile-panel {
        grid-template-columns: 1fr;
    }

    .prov-profile-panel__about {
        border-right: none;
        border-bottom: 1px solid var(--borders-main-border);
        padding: 28px 24px 30px;
    }

    .prov-profile-panel__features {
        padding: 28px 24px 24px;
    }
}

@media (max-width: 600px) {
    .providers-single-page section.top-section.section {
        padding-top: 36px;
        padding-bottom: 44px;
    }

    .providers-single-page section.blog-section.section,
    .providers-single-page .prov-profile-section,
    .providers-single-page section.section:not(.top-section):not(.review-hero):not(.payment-method-hero):not(.seo-section) {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .providers-single-page section.top-section.section + section {
        padding-top: 36px;
    }

    .providers-single-page section:not(.top-section) .section-top {
        margin-bottom: 24px;
    }

    .providers-single-page .section-top .section-descr {
        margin-top: 10px;
        font-size: 15px;
    }

    .prov-profile-panel__about,
    .prov-profile-panel__features {
        padding-inline: 20px;
    }
}

/* --- About (legacy card — hub / other pages) --- */
.prov-about__card {
    width: 100%;
    padding: 28px 30px;
    font-family: var(--second-family);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.prov-about__card p { margin: 0 0 14px; }
.prov-about__card p:last-child { margin-bottom: 0; }
.prov-about__card strong { color: var(--text-primary); }

/* --- Features matrix (compact, 2 columns) --- */
.prov-features {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    padding: 8px 28px;
}

.prov-features__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid var(--borders-main-border);
    font-family: var(--second-family);
}

/* drop the trailing border on the last row of each column */
.prov-features__row:nth-last-child(-n+2) { border-bottom: none; }

@media (max-width: 700px) {
    .prov-features { grid-template-columns: 1fr; column-gap: 0; }
    .prov-features__row:nth-last-child(-n+2) { border-bottom: 1px solid var(--borders-main-border); }
    .prov-features__row:last-child { border-bottom: none; }
}

.prov-features__label { font-size: 14.5px; font-weight: 600; color: var(--text-primary); }

.prov-features__yes,
.prov-features__no { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }

.prov-features__yes { color: var(--system-colors-success); }
.prov-features__no { color: var(--text-tertiary); }


/* --- View all (link to the providers hub) --- */
.prov-viewall { width: 100%; display: flex; justify-content: center; margin-top: 30px; }
.providers-single-page .prov-viewall .more_button {
    background: var(--shades-white);
}
.providers-single-page .prov-viewall .more_button:hover {
    background: rgba(20, 128, 255, 0.06);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 600px) {
    .providers-hub-page .archive-header.bg_header_box_top + section.prov-directory-section {
        margin-top: -120px;
    }
    .prov-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
}
