/* Game Provider Listing – grid using casino-card styling.
   Reuses casino card aesthetics from Casino Toplist plugin & theme.
*/

.game-provider-listing {
    margin: 16px 0 24px;
    font-family: inherit;
}

/* Filters */
.gp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.gp-filter-button {
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.3;
    cursor: pointer;
    background: #ffffff;
    color: #0f172a;
    font-weight: 500;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.gp-filter-button:hover {
    background-color: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.5);
}

.gp-filter-button--active {
    background-color: var(--tj-color-primary, #2563eb);
    color: #ffffff;
    border-color: var(--tj-color-primary, #2563eb);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.03), 0 0 12px rgba(37, 99, 235, 0.4);
}

/* Grid */
.gp-grid {
    display: grid;
    gap: 16px;
}

.gp-columns-2 .gp-grid,
.game-provider-listing[data-gp-columns="2"] .gp-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.gp-columns-3 .gp-grid,
.game-provider-listing[data-gp-columns="3"] .gp-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gp-columns-4 .gp-grid,
.game-provider-listing[data-gp-columns="4"] .gp-grid,
.gp-columns-5 .gp-grid,
.gp-columns-6 .gp-grid,
.game-provider-listing[data-gp-columns="5"] .gp-grid,
.game-provider-listing[data-gp-columns="6"] .gp-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Card overrides – reuse .casino-card base but tweak internals */
.game-provider-card .casino-card-inner {
    padding: 16px 16px 14px;
}

.game-provider-card-main {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

/* Logo wrapper with SVG hover glow */
.game-provider-logo-wrap {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    background: var(--tj-color-surface, #ffffff);
    border: 1px solid rgba(148, 163, 184, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.game-provider-logo-wrap--placeholder {
    background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
}

.game-provider-logo {
    max-width: 80%;
    max-height: 80%;
    display: block;
    transition: transform 0.18s ease, filter 0.18s ease;
}

/* Hover glow (SVG / logo) */
.game-provider-card:hover .game-provider-logo-wrap {
    box-shadow: 0 0 16px rgba(249, 115, 22, 0.55);
    border-color: rgba(249, 115, 22, 0.9);
    transform: translateY(-1px);
}

.game-provider-card:hover .game-provider-logo {
    transform: scale(1.04);
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.8));
}

.game-provider-logo-placeholder {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    padding: 0 6px;
    color: #4b5563;
}

/* Text area */
.game-provider-header-text {
    flex: 1;
    min-width: 0;
}

.game-provider-title {
    margin: 0 0 2px;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
}

.game-provider-tagline {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

/* Body meta rows */
.game-provider-card-body {
    margin-top: 6px;
    font-size: 13px;
    color: #111827;
}

.game-provider-meta-row {
    margin: 0 0 4px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.gp-meta-label {
    font-weight: 600;
    color: #4b5563;
}

.gp-meta-value {
    color: #111827;
}

/* Footer CTA */
.game-provider-card-footer {
    margin-top: 10px;
    display: flex;
    justify-content: flex-start;
}

.game-provider-visit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    background: var(--tj-color-accent, #f97316);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.game-provider-visit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.45);
    background: #ea580c;
}

/* Responsive tweaks */
@media (max-width: 640px) {
    .game-provider-card-main {
        align-items: flex-start;
    }
}
