/* ═══════════════════════════════════════════
   BetPilot24 — Comparison Table Styles
   Designed to match OddsChecker / GoBet / BetSeeker
   ═══════════════════════════════════════════ */

/* ── Reset & Wrapper ── */
.betpilot-comparison-wrapper {
    margin: 0 auto;
    padding: 20px;
}

.betpilot-comparison-wrapper * {
    box-sizing: border-box;
}

/* ── Filters ── */
.betpilot-filters {
    margin-bottom: 20px;
    padding: 20px 24px;
    background: #111827;
    border-radius: 12px;
    border: 1px solid #1f2937;
}

.betpilot-filters-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.betpilot-filters-title svg {
    color: #f59e0b;
}

.betpilot-filters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.betpilot-filter-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.betpilot-filter-group select {
    width: 100%;
    padding: 10px 32px 10px 12px;
    border: 1px solid #374151;
    border-radius: 8px;
    background: #1f2937;
    color: #e5e7eb;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.betpilot-filter-group select:hover,
.betpilot-filter-group select:focus {
    border-color: #f59e0b;
    outline: none;
}

/* ── Sort Bar / Found Count ── */
.betpilot-table-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
}

.betpilot-found-count {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.betpilot-found-number {
    font-weight: 700;
    color: #e5e7eb;
}

/* ── Table Body ── */
.betpilot-table-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: opacity 0.3s ease;
}

.betpilot-loading {
    opacity: 0.4;
    pointer-events: none;
}

/* ── Bookmaker Row ── */
.betpilot-bookmaker-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 12px;
    transition: all 0.25s ease;
    position: relative;
}

.betpilot-bookmaker-row:hover {
    border-color: #374151;
    background: #1a2233;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.betpilot-row-featured {
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, #111827 0%, #1a1a0e 100%);
}

.betpilot-row-featured:hover {
    border-color: rgba(245, 158, 11, 0.5);
}

/* ── Row children — even spacing ── */
.betpilot-bookmaker-row > div {
    flex: 1;
    min-width: 0;
}

/* ── Rank Number ── */
.betpilot-row-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 50px !important;
    max-width: 50px;
}

.betpilot-rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1f2937;
    border: 2px solid #374151;
    font-size: 15px;
    font-weight: 800;
    color: #9ca3af;
}

.betpilot-rank-top {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: #f59e0b;
    color: #111827;
}

/* ── Bookmaker Info ── */
.betpilot-row-bookmaker {
    display: flex;
    align-items: center;
    gap: 14px;
}

.betpilot-bookmaker-logo {
    flex-shrink: 0;
    width: 80px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 8px;
    padding: 6px;
    overflow: hidden;
}

.betpilot-bookmaker-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.betpilot-logo-placeholder {
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    text-align: center;
}

.betpilot-bookmaker-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.betpilot-bookmaker-name {
    font-size: 15px;
    font-weight: 700;
    color: #f3f4f6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.betpilot-star-icons {
    display: flex;
    gap: 1px;
}

.betpilot-star {
    font-size: 14px;
    line-height: 1;
}

.betpilot-star-full {
    color: #f59e0b;
}

.betpilot-star-half {
    color: #f59e0b;
    opacity: 0.5;
}

.betpilot-star-empty {
    color: #374151;
}

.betpilot-key-feature {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #22c55e;
    line-height: 1.3;
    margin-top: 2px;
}

.betpilot-key-feature svg {
    flex-shrink: 0;
}

/* ── Bonus Column ── */
.betpilot-row-bonus {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.betpilot-bonus-label {
    font-size: 10px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.betpilot-bonus-value {
    font-size: 14px;
    font-weight: 700;
    color: #fbbf24;
    line-height: 1.3;
}

.betpilot-bonus-code {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px dashed rgba(245, 158, 11, 0.4);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #f59e0b;
    font-family: 'SF Mono', 'Consolas', monospace;
    width: fit-content;
}

.betpilot-min-deposit {
    font-size: 11px;
    color: #6b7280;
}

/* ── Rating Badge ── */
.betpilot-row-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.betpilot-rating-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}

.betpilot-rating-excellent {
    background: linear-gradient(135deg, #059669, #10b981);
}

.betpilot-rating-good {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
}

.betpilot-rating-medium {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.betpilot-rating-low {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.betpilot-rating-label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-align: center;
}

/* ── Payment Methods ── */
.betpilot-row-payments {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.betpilot-payment-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
    color: #d1d5db;
    white-space: nowrap;
}

.betpilot-payment-more {
    background: #374151;
    color: #9ca3af;
    font-weight: 700;
}

/* ── CTA Column ── */
.betpilot-row-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.betpilot-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.betpilot-cta-btn:hover {
    background: linear-gradient(135deg, #15803d, #16a34a);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.betpilot-cta-btn svg {
    transition: transform 0.2s;
}

.betpilot-cta-btn:hover svg {
    transform: translateX(3px);
}

.betpilot-cta-disabled {
    background: #1f2937;
    color: #4b5563;
    cursor: not-allowed;
    border: 1px solid #374151;
}

.betpilot-cta-disabled:hover {
    background: #1f2937;
    transform: none;
    box-shadow: none;
    color: #4b5563;
}

/* .betpilot-review-link {
    font-size: 12px;
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.betpilot-review-link:hover {
    color: #93bbfd;
    text-decoration: underline;
} */

.betpilot-editors-pick {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #f59e0b;
}

/* ── No Results ── */
.betpilot-no-results {
    padding: 48px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 15px;
    background: #111827;
    border-radius: 12px;
    border: 1px dashed #374151;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Tablet
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .betpilot-filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .betpilot-bookmaker-row {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px 18px;
    }

    .betpilot-row-rank {
        flex: 0 0 40px !important;
        max-width: 40px;
    }

    .betpilot-row-bookmaker {
        flex: 1 1 calc(100% - 56px) !important;
    }

    .betpilot-row-bonus,
    .betpilot-row-rating {
        flex: 1 1 45% !important;
    }

    .betpilot-row-payments,
    .betpilot-row-cta {
        flex: 1 1 100% !important;
    }

    .betpilot-row-cta {
        flex-direction: row;
        gap: 12px;
    }

    .betpilot-cta-btn {
        flex: 1;
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Mobile
   ═══════════════════════════════════════════ */
@media (max-width: 640px) {
    .betpilot-comparison-wrapper {
        padding: 10px;
    }

    .betpilot-filters {
        padding: 16px;
    }

    .betpilot-filters-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .betpilot-bookmaker-row {
        flex-wrap: wrap;
        gap: 10px;
        padding: 16px;
    }

    .betpilot-row-rank {
        flex: 0 0 36px !important;
        max-width: 36px;
    }

    .betpilot-rank-number {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .betpilot-row-bookmaker {
        flex: 1 1 calc(100% - 52px) !important;
    }

    .betpilot-row-bonus,
    .betpilot-row-rating,
    .betpilot-row-payments,
    .betpilot-row-cta {
        flex: 1 1 100% !important;
    }

    .betpilot-row-rating {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
    }

    .betpilot-rating-badge {
        width: 44px;
        height: 44px;
        font-size: 17px;
    }

    .betpilot-row-cta {
        flex-direction: column;
    }

    .betpilot-cta-btn {
        padding: 14px 16px;
        font-size: 15px;
    }

    .betpilot-bookmaker-logo {
        width: 60px;
        height: 40px;
    }

    .betpilot-page-nav {
        flex-wrap: wrap;
        gap: 6px;
    }

    .betpilot-page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 10px;
    }

    .betpilot-page-prev,
    .betpilot-page-next {
        padding: 0 12px;
    }

    .betpilot-page-numbers {
        gap: 4px;
    }
}

/* ═══════════════════════════════════════════
   Pagination
   ═══════════════════════════════════════════ */

.betpilot-pagination {
    margin-top: 24px;
}

.betpilot-page-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.betpilot-page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.betpilot-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.betpilot-page-btn:hover:not([disabled]):not(.betpilot-page-active) {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}

.betpilot-page-btn.betpilot-page-active {
    background: #111827;
    border-color: #111827;
    color: #fff;
    cursor: default;
    font-weight: 600;
}

.betpilot-page-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.betpilot-page-prev,
.betpilot-page-next {
    font-weight: 600;
    padding: 0 16px;
}

.betpilot-page-prev svg,
.betpilot-page-next svg {
    flex-shrink: 0;
}

.betpilot-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 40px;
    color: #9ca3af;
    font-size: 14px;
    letter-spacing: 2px;
    user-select: none;
}