/* Prop Firms Table Block - Styles matching challenges table */
/* All classes prefixed with pft- */

.pft-header {
    background: #fff;
    padding: 40px 0;
    margin: 0 0 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pft-header-content {
    display: flex;
    flex-direction: column;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 30px;
}

.pft-header-title {
    font-size: 36px;
    font-weight: 700;
    color: #000;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.pft-header-disclaimer {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.pft-email-link {
    color: #2196F3;
    text-decoration: none;
    font-weight: 500;
}

.pft-email-link:hover {
    text-decoration: underline;
}

/* Hero Section Styles - transparent background, benefits grid */
.pft-hero-section {
    background: transparent;
    padding: 40px 0;
    margin: 0 0 20px 0;
    border-radius: 0;
    text-align: center;
}

.pft-hero-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 30px;
}

.pft-hero-title {
    font-size: 36px;
    font-weight: 700;
    color: #000;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.pft-hero-subtitle {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 30px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pft-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.pft-benefit-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.pft-benefit-card:hover {
    background: #fafafa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.pft-benefit-value {
    font-size: 42px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1;
}

.pft-benefit-label {
    font-size: 15px;
    color: #666;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .pft-hero-title {
        font-size: 32px;
    }
    
    .pft-hero-subtitle {
        font-size: 15px;
    }
    
    .pft-benefits-grid {
        gap: 15px;
    }
    
    .pft-benefit-value {
        font-size: 36px;
    }
    
    .pft-benefit-label {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .pft-hero-section {
        padding: 30px 0;
    }
    
    .pft-hero-content {
        padding: 0 20px;
    }
    
    .pft-hero-title {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .pft-hero-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .pft-benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .pft-benefit-card {
        padding: 15px 10px;
    }
    
    .pft-benefit-value {
        font-size: 24px;
    }
    
    .pft-benefit-label {
        font-size: 11px;
    }
}

.pft-wrapper {
    display: flex;
    min-height: 100vh;
    padding: 15px;
    align-items: flex-start;
    gap: 15px;
}

.pft-sidebar {
    width: 280px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 15px;
}

.pft-sidebar h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #000;
}

.pft-filter-section {
    margin-bottom: 20px;
}

.pft-filter-section:last-child {
    margin-bottom: 0;
}

.pft-filter-section h4 {
    font-size: 14px;
    color: #000;
    margin-bottom: 15px;
    font-weight: normal;
}

.pft-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pft-filter-btn {
    padding: 8px 16px;
    border: none;
    background: #F6F7F8;
    color: #000;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.pft-filter-btn.pft-active {
    background: #F4B63E;
    color: #000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pft-filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pft-filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.pft-filter-checkbox input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.pft-range-slider {
    height: 6px;
    margin: 15px 0;
}

.pft-range-slider .noUi-target {
    background: #d0d0d0;
    border: none;
    box-shadow: none;
    border-radius: 3px;
}

.pft-range-slider .noUi-connect {
    background: #F4B63E;
}

.pft-range-slider .noUi-handle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #F4B63E;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    cursor: pointer;
}

.pft-range-slider .noUi-handle:before,
.pft-range-slider .noUi-handle:after {
    display: none;
}

.pft-range-values {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #000;
    margin-top: 8px;
}

.pft-main-content {
    flex: 1;
    padding: 0;
}

.pft-mobile-filters-btn {
    display: none;
    width: calc(100% - 30px);
    padding: 12px;
    background: #000;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    margin: 10px 15px 15px; /* Reduced top margin from 20px to 10px */
}

.pft-mobile-filters-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.pft-mobile-filters-popup.pft-active {
    display: block;
}

.pft-mobile-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E0E0E0;
}

.pft-mobile-filters-header h3 {
    font-size: 20px;
    color: #000;
}

.pft-mobile-filters-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.pft-table-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.pft-table-container {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.pft-table-header {
    display: table-row;
    background: #fff;
}

.pft-table-header > div {
    display: table-cell;
    padding: 16px 8px;
    font-size: 13px;
    color: #000;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    line-height: 1.4;
    background: #fff;
}

.pft-table-header > div .pft-info-icon {
    display: block;
    margin: 4px auto 0;
}

.pft-table-header > div[data-sort] {
    cursor: pointer;
}

.pft-table-header > div[data-sort]:hover {
    background: #fafafa;
}

/* Column widths - like challenges table */
.pft-col-logo {
    width: 80px;
    text-align: center !important;
    position: sticky;
    left: 0;
    z-index: 20;
    background: #fff;
    padding-left: 15px !important; /* Increased left padding */
}

.pft-table-header .pft-col-logo {
    background: #fff;
    z-index: 30;
    cursor: default;
}

.pft-col-name {
    width: 160px; /* Reduced from 180px */
    text-align: left !important;
}

.pft-col-year { width: 90px; }
.pft-col-country { width: 140px; }

/* Asset Types column - hidden by default */
.pft-col-assets { 
    display: none !important; /* Force hide by default */
    width: 0 !important;
    padding: 0 !important;
}

.pft-col-assets.pft-show { 
    display: table-cell !important; /* Show when enabled */
    width: 150px !important; 
    padding: 15px 8px !important;
}

.pft-col-refund { width: 100px; }
.pft-col-copy { width: 90px; }
.pft-col-ea { width: 90px; }
.pft-col-platforms { width: 160px; }
.pft-col-actions {
    width: 120px;
    position: sticky;
    right: 0;
    z-index: 20;
    background: #fff;
}

.pft-table-header .pft-col-actions {
    background: #fff;
    z-index: 30;
    cursor: default;
}

.pft-sort-icon {
    display: inline-block;
    width: 0;
    height: 0;
    margin-right: 4px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 6px solid #999;
    opacity: 0.3;
    vertical-align: middle;
}

.pft-table-header > div[data-sort].pft-sort-asc .pft-sort-icon {
    border-bottom: 6px solid #F4B63E;
    border-top: none;
    opacity: 1;
}

.pft-table-header > div[data-sort].pft-sort-desc .pft-sort-icon {
    border-bottom: none;
    border-top: 6px solid #F4B63E;
    opacity: 1;
}

.pft-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: transparent;
    color: transparent;
    border: 1.5px solid #999;
    font-size: 10px;
    cursor: help;
    position: relative;
    flex-shrink: 0;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1;
}

.pft-info-icon::after {
    content: '?';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 10px;
}

.pft-info-icon:hover {
    background: #f0f0f0;
    border-color: #666;
}

.pft-info-icon:hover::after {
    color: #323233;
}

.pft-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #323233;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    width: 250px;
    max-width: calc(100vw - 40px);
    font-size: 13px;
    line-height: 1.5;
    z-index: 9999999 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    white-space: normal;
}

.pft-info-icon:hover .pft-tooltip {
    opacity: 1;
    pointer-events: auto;
}

.pft-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #fff;
}

.pft-tooltip a {
    color: #2196F3;
    text-decoration: none;
}

.pft-tooltip a:hover {
    text-decoration: underline;
}

.pft-table {
    display: table-row-group;
}

.pft-row {
    display: table-row;
    cursor: pointer;
    transition: background 0.2s;
}

.pft-row:hover > * {
    background: #fafafa;
}

.pft-row > div {
    display: table-cell;
    padding: 15px 8px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    text-align: center;
}

.pft-row .pft-col-name {
    text-align: left;
}

.pft-row .pft-col-logo {
    vertical-align: middle !important;
}

.pft-firm-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f0f0f0;
    overflow: visible;
    position: relative;
}

.pft-firm-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.pft-firm-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pft-firm-name {
    font-size: 13px;
    color: #000;
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
}

.pft-rating-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pft-rating-box {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border: 2px solid #F4B63E;
    border-radius: 20px;
    background: transparent;
}

.pft-rating-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: #F4B63E;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 600;
    cursor: help;
    position: relative;
    flex-shrink: 0;
    margin-left: 2px;
}

.pft-rating-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    transition: opacity 0.2s, visibility 0.2s;
}

.pft-rating-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

.pft-rating-tooltip a {
    color: #60a5fa;
    text-decoration: underline;
}

.pft-rating-tooltip a:hover {
    color: #93c5fd;
}

.pft-rating-info:hover .pft-rating-tooltip {
    visibility: visible;
    opacity: 1;
}

.pft-rating-score {
    font-size: 11px;
    font-weight: 600;
    color: #000;
}

.pft-rating-stars {
    display: flex;
    gap: 1px;
}

.pft-rating-star {
    font-size: 12px;
    color: #F4B63E;
}

.pft-rating-star.pft-empty {
    color: #ddd;
}

.pft-rating-reviews {
    font-size: 11px;
    color: #F4B63E;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.pft-rating-reviews .pft-info-icon {
    border-color: #F4B63E;
}

.pft-rating-reviews .pft-info-icon::after {
    color: #F4B63E;
}

.pft-country-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.pft-country-info .fi {
    width: 20px;
    height: 15px;
    border-radius: 2px;
}

.pft-country-info span {
    font-size: 13px;
    color: #000;
}

.pft-asset-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.pft-asset-chip {
    padding: 4px 10px;
    background: #F6F7F8;
    border-radius: 12px;
    font-size: 12px;
    color: #000;
    white-space: nowrap;
}

.pft-info-value {
    font-size: 14px;
    color: #000;
}

.pft-boolean-value {
    font-size: 18px;
    font-weight: 600;
}

.pft-boolean-value.pft-yes {
    color: #4CAF50;
}

.pft-boolean-value.pft-no {
    color: #ddd;
}

.pft-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.pft-btn-primary {
    background: #F4B63E;
    color: #000;
    font-weight: 600;
}

.pft-btn-primary:hover {
    background: #e5a830;
}

.pft-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
    flex-wrap: wrap;
}

.pft-pagination-btn {
    padding: 8px 16px;
    border: 1px solid #E0E0E0;
    background: #fff;
    color: #000;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
}

.pft-pagination-btn:hover {
    background: #F6F7F8;
    border-color: #F4B63E;
}

.pft-pagination-btn.pft-active {
    background: #F4B63E;
    border-color: #F4B63E;
    color: #000;
    font-weight: 600;
}

.pft-pagination-dots {
    padding: 8px;
    color: #666;
}

/* Hide asset types filters when not enabled */
.pft-filter-section.pft-asset-types-hidden {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .pft-wrapper {
        flex-direction: column;
    }

    .pft-sidebar {
        display: none;
    }

    .pft-mobile-filters-btn {
        display: block;
    }

    .pft-main-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .pft-header {
        margin: 0 0 10px 0; /* Reduced from 20px to 10px */
        padding: 30px 0; /* Reduced from 40px to 30px */
    }

    .pft-header-content {
        padding: 0 15px;
    }

    .pft-header-title {
        font-size: 28px;
    }

    .pft-header-disclaimer {
        font-size: 13px;
    }

    .pft-wrapper {
        padding: 0;
    }

    .pft-table-wrapper {
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 15px;
    }

    .pft-table-container {
        min-width: 800px;
    }

    .pft-col-logo {
        width: 80px;
    }

    .pft-col-name {
        width: 120px; /* Reduced from 150px to 120px */
    }

    .pft-table-header > div {
        padding: 12px 4px; /* Reduced from 6px to 4px */
        font-size: 12px;
    }

    .pft-row > div {
        padding: 12px 4px; /* Reduced from 6px to 4px */
    }

    .pft-firm-logo {
        width: 40px;
        height: 40px;
    }

    .pft-firm-name {
        font-size: 12px;
    }

    .pft-rating-score {
        font-size: 10px;
    }

    .pft-rating-stars {
        display: none; /* Hide all stars */
    }
    
    /* Show only first star on mobile */
    .pft-rating-box::after {
        content: '★';
        font-size: 10px;
        color: #F4B63E;
        margin-left: 2px;
    }

    .pft-rating-reviews {
        display: none; /* Hide reviews count on mobile */
    }

    .pft-info-value {
        font-size: 12px;
    }

    .pft-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}
