/* Prop Firms Table View Styles */

.pfst-wrapper {
    width: 100%;
    margin: 20px 0;
}

/* ==================== TABLE VIEW ==================== */

.pfst-table-container {
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.pfst-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.pfst-table thead {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.pfst-table th {
    padding: 14px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.pfst-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.pfst-table tbody tr:hover {
    background-color: #fafafa;
}

.pfst-table tbody tr:last-child {
    border-bottom: none;
}

.pfst-table td {
    padding: 12px 10px;
    vertical-align: middle;
    font-size: 14px;
}

/* Column Specific Styles */

.pfst-col-logo {
    width: 60px;
    text-align: center;
}

.pfst-col-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
}

.pfst-logo-placeholder {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #a855f7, #9333ea);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: bold;
    font-size: 18px;
}

.pfst-col-name {
    min-width: 150px;
}

.pfst-firm-name {
    color: #1a1a1a;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s;
}

.pfst-firm-name:hover {
    color: #a855f7;
}

.pfst-col-rating {
    min-width: 140px;
}

.pfst-rating-number {
    font-size: 20px;
    font-weight: 700;
    color: #a855f7;
    display: inline-block;
    margin-right: 8px;
}

.pfst-rating-stars {
    display: inline-block;
    font-size: 14px;
}

.pfst-star {
    color: #ddd;
}

.pfst-star-full {
    color: #fbbf24;
}

.pfst-star-half {
    color: #fbbf24;
    opacity: 0.5;
}

.pfst-col-challenges {
    text-align: center;
    font-weight: 600;
    color: #4b5563;
}

.pfst-col-platforms,
.pfst-col-payment {
    min-width: 120px;
}

.pfst-icons {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.pfst-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 16px;
    transition: transform 0.2s;
}

.pfst-icon:hover {
    transform: scale(1.1);
}

.pfst-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.pfst-icon-small {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 4px;
}

.pfst-more {
    font-size: 11px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.pfst-more-text {
    font-size: 12px;
    color: #6b7280;
    margin-left: 4px;
}

.pfst-col-broker {
    min-width: 100px;
    font-size: 14px;
    color: #4b5563;
}

.pfst-col-country {
    text-align: center;
    font-weight: 600;
    color: #6b7280;
}

.pfst-na {
    color: #9ca3af;
    font-style: italic;
}

.pfst-col-cta {
    min-width: 160px;
    text-align: right;
    padding-right: 16px !important;
}

.pfst-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: flex-end;
    align-items: stretch;
}

.pfst-btn-primary,
.pfst-btn-secondary,
.pfst-btn-details {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    border: none;
}

.pfst-btn-primary {
    background: linear-gradient(135deg, #a855f7, #9333ea);
    color: white;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

.pfst-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.5);
    background: linear-gradient(135deg, #c084fc, #a855f7);
}

.pfst-btn-code {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-family: monospace;
    letter-spacing: 1px;
}

.pfst-btn-details {
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.pfst-btn-details:hover {
    background: #f9fafb;
    border-color: #a855f7;
    color: #a855f7;
}

.pfst-btn-secondary {
    background: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.pfst-btn-secondary:hover {
    background: #f9fafb;
    border-color: #a855f7;
    color: #a855f7;
}

/* ==================== COMPACT CARD VIEW ==================== */

.pfst-compact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pfst-compact-card {
    background: #0a0a0a;
    border: 2px solid #2d2d2d;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.pfst-compact-card:hover {
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3);
    border-color: #a855f7;
    background: #151515;
    transform: translateY(-2px);
}

.pfst-compact-left {
    display: flex;
    gap: 16px;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.pfst-compact-logo {
    flex-shrink: 0;
}

.pfst-compact-logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 10px;
    background: #1a1a1a;
    padding: 8px;
    border: 1px solid #333;
}

.pfst-compact-info {
    flex: 1;
    min-width: 0;
}

.pfst-compact-name {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
}

.pfst-compact-name a {
    color: #f5f5f5;
    text-decoration: none;
    transition: color 0.2s;
}

.pfst-compact-name a:hover {
    color: #c084fc;
}

.pfst-compact-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.pfst-meta-item {
    font-size: 14px;
    color: #b8b8b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pfst-meta-item::before {
    content: '•';
    color: #666;
}

.pfst-meta-item:first-child::before {
    display: none;
}

.pfst-compact-platforms {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pfst-platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #f0f0f0;
    transition: all 0.2s;
}

.pfst-platform-badge:hover {
    border-color: #a855f7;
    background: #252525;
}

.pfst-platform-badge img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.pfst-compact-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.pfst-compact-rating {
    text-align: center;
    min-width: 80px;
}

.pfst-compact-rating .pfst-rating-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 4px;
    color: #ffffff;
}

.pfst-compact-rating .pfst-rating-stars {
    display: block;
    font-size: 12px;
}

.pfst-offer-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.pfst-compact-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pfst-compact-actions .pfst-btn-primary,
.pfst-compact-actions .pfst-btn-secondary,
.pfst-compact-actions .pfst-btn-details {
    min-width: 120px;
    text-align: center;
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 1024px) {
    .pfst-compact-card {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }
    
    .pfst-compact-left {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pfst-compact-right {
        justify-content: space-between;
        width: 100%;
        padding-top: 16px;
        border-top: 1px solid #2d2d2d;
    }
    
    .pfst-compact-actions {
        flex-direction: row;
        width: 100%;
    }
    
    .pfst-compact-actions .pfst-btn-primary,
    .pfst-compact-actions .pfst-btn-details {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .pfst-table {
        font-size: 12px;
        min-width: 700px;
    }
    
    .pfst-table th,
    .pfst-table td {
        padding: 10px 8px;
    }
    
    .pfst-btn-primary,
    .pfst-btn-details {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .pfst-actions {
        gap: 5px;
    }
    
    .pfst-compact-logo img {
        width: 50px;
        height: 50px;
    }
    
    .pfst-compact-name {
        font-size: 16px;
    }
    
    .pfst-compact-right {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .pfst-col-logo img {
        width: 32px;
        height: 32px;
    }
    
    .pfst-logo-placeholder {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .pfst-rating-number {
        font-size: 16px;
    }
    
    .pfst-btn-primary,
    .pfst-btn-secondary {
        padding: 6px 12px;
        font-size: 12px;
    }
}