/* Pump & Dump Page Specific Styles - Matching market-overview.css styling */

/* Use existing market-table-wrapper styles from market-overview.css */
/* We'll override specific styles for pump-dump table */

/* Override table header color for pump table */
.pump-table-wrapper {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 0;
    overflow-x: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pump-table {
    margin: 0;
    border: none;
    width: 100%;
    border-collapse: collapse;
}

.pump-table th {
    background: #0073aa;
    color: #fff;
    font-weight: 600;
    padding: 12px 15px;
    border: none;
    white-space: nowrap;
    text-align: left;
}

.pump-table th:first-child {
    border-top-left-radius: 8px;
}

.pump-table th:last-child {
    border-top-right-radius: 8px;
}

.pump-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e1e1e1;
    vertical-align: middle;
}

.pump-table tbody tr {
    transition: background-color 0.2s ease;
}

.pump-table tbody tr:hover {
    background: #f9f9f9;
}

.pump-table tbody tr:last-child td {
    border-bottom: none;
}

/* Filter row - matching market-overview.css */
.pump-filter-row {
    background-color: #f9f9f9;
}

.pump-filter-row th {
    background: #f5f5f5 !important;
    border-top: 1px solid #e1e1e1;
    border-radius: 0 !important;
    font-weight: normal !important;
    padding: 8px 15px !important;
}

.pump-filter-input {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
}

.pump-filter-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

/* Column specific styling */
.pump-col-number {
    width: 50px;
    text-align: center;
}

.pump-col-name {
    min-width: 200px;
}

.pump-col-change {
    width: 80px;
    text-align: center;
    font-weight: 600;
}

.pump-col-start,
.pump-col-end {
    width: 150px;
}

.pump-col-created {
    width: 160px;
}

/* Asset link styling - matching market-overview.css */
.pump-asset-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #0073aa;
    transition: color 0.2s;
    word-break: keep-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.pump-asset-link:hover {
    text-decoration: underline;
}

.pump-asset-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.pump-asset-name {
    font-weight: 500;
}

.pump-asset-symbol {
    color: #999;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.9em;
}

/* Change percentage styling - matching market-overview.css change-value style */
.pump-change-normal {
    color: #0da059;
    background: rgba(13, 160, 89, 0.1);
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.pump-change-high {
    color: #0da059;
    background: rgba(13, 160, 89, 0.1);
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

/* Time labels */
.pump-time-label {
    display: block;
    font-size: 0.85em;
    color: #6c757d;
    margin-top: 2px;
}

/* Mobile Responsive Styles - matching market-overview.css patterns */
@media (max-width: 767px) {
    .pump-table-wrapper {
        font-size: 12px;
        border-radius: 0;
        overflow-x: visible;
    }
    
    .pump-table {
        table-layout: fixed;
        width: 100%;
    }
    
    .pump-table th, 
    .pump-table td {
        padding: 8px 4px;
    }
    
    /* Hide filter row on mobile */
    .pump-filter-row {
        display: none;
    }
    
    /* Hide # column on mobile */
    .pump-col-number {
        display: none;
    }
    
    /* Adjust column widths for mobile */
    .pump-col-name {
        width: 30%;
        min-width: auto;
    }
    
    .pump-col-change {
        width: 12%;
        font-size: 11px;
        padding: 6px 2px;
    }
    
    .pump-col-start,
    .pump-col-end {
        width: 20%;
        font-size: 11px;
        white-space: normal;
        word-break: break-all; /* Allow breaking long prices */
        line-height: 1.3;
    }
    
    .pump-col-created {
        width: 18%;
        font-size: 10px;
        line-height: 1.2;
    }
    
    /* Asset styling on mobile */
    .pump-asset-link {
        white-space: normal;
        flex-wrap: wrap;
        line-height: 1.3;
        gap: 4px;
    }
    
    .pump-asset-link span {
        font-size: 12px;
    }
    
    .pump-asset-symbol {
        font-size: 10px;
        color: #666;
    }
    
    .pump-asset-icon {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }
    
    /* Time labels on new line */
    .pump-time-label {
        font-size: 10px;
    }
    
    /* Smaller headers on mobile */
    .pump-table th {
        font-size: 11px;
        padding: 6px 4px;
    }
    
    /* Pagination adjustments */
    .pagination a, .pagination span {
        padding: 6px 8px;
        font-size: 14px;
        min-width: 30px;
    }
    
    .pagination .prev, .pagination .next {
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .pump-table th,
    .pump-table td {
        font-size: 11px;
        padding: 6px 2px;
    }
    
    .pump-col-created {
        font-size: 9px;
    }
    
    .pump-time-label {
        font-size: 9px;
    }
}