/* ═══════════════════════════════════════════
   BetPilot Casino — Casino Comparison Table
   ═══════════════════════════════════════════ */

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

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

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

.bpcasino-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;
}

.bpcasino-filters-title svg {
    color: #8b5cf6;
}

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

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

.bpcasino-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;
}

.bpcasino-filter-group select:hover,
.bpcasino-filter-group select:focus {
    border-color: #8b5cf6;
    outline: none;
}

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

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

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

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

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

/* ── Casino Row ── */
.bpcasino-casino-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;
}

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

.bpcasino-row-featured {
    border-color: rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, #111827 0%, #130f28 100%);
}

.bpcasino-row-featured:hover {
    border-color: rgba(139, 92, 246, 0.5);
}

.bpcasino-casino-row > div {
    flex: 1;
    min-width: 0;
}

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

.bpcasino-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;
}

.bpcasino-rank-top {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-color: #8b5cf6;
    color: #ffffff;
}

/* ── Casino Info Column ── */
.bpcasino-row-casino {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bpcasino-casino-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;
}

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

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

.bpcasino-casino-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

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

/* ── Safety Badge ── */
.bpcasino-safety-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    width: fit-content;
}

.bpcasino-safety-high {
    background: rgba(5, 150, 105, 0.15);
    color: #10b981;
    border: 1px solid rgba(5, 150, 105, 0.3);
}

.bpcasino-safety-medium {
    background: rgba(217, 119, 6, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(217, 119, 6, 0.3);
}

.bpcasino-safety-low {
    background: rgba(220, 38, 38, 0.15);
    color: #ef4444;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

/* ── Trust Score ── */
.bpcasino-trust-score {
    font-size: 11px;
    color: #9ca3af;
}

.bpcasino-trust-score strong {
    color: #d1d5db;
}

/* ── No Deposit Badge ── */
.bpcasino-no-deposit-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    width: fit-content;
}

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

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

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

.bpcasino-free-spins {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #a78bfa;
}

.bpcasino-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;
}

.bpcasino-wagering {
    font-size: 11px;
    color: #9ca3af;
}

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

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

.bpcasino-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;
}

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

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

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

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

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

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

.bpcasino-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;
}

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

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

.bpcasino-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    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;
}

.bpcasino-cta-btn:hover {
    background: linear-gradient(135deg, #6d28d9, #7c3aed);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
    color: #ffffff;
    text-decoration: none;
}

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

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

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

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

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

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

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

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

/* ═══════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════ */

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

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

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

.bpcasino-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;
}

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

.bpcasino-page-btn.bpcasino-page-active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
    cursor: default;
    font-weight: 600;
}

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

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

.bpcasino-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;
}

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

    .bpcasino-casino-row {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px 18px;
    }

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

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

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

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

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

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

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

    .bpcasino-filters {
        padding: 16px;
    }

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

    .bpcasino-casino-row {
        flex-wrap: wrap;
        gap: 10px;
        padding: 16px;
    }

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

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

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

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

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

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

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

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

    .bpcasino-casino-logo {
        width: 60px;
        height: 40px;
    }

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

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

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