/**
 * Trade Tracker Styles
 */
.trade-tracker-container {
    margin-bottom: 40px;
    overflow-x: auto;
}

.trade-tracker-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin-bottom: 20px;
    font-size: 14px;
}

.trade-tracker-table th,
.trade-tracker-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

.trade-tracker-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #333;
    position: sticky;
    top: 0;
}

.trade-tracker-table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.trade-tracker-table tbody tr:hover {
    background-color: #f0f0f0;
}

.trader-link {
    position: relative;
    z-index: 2;
}

.arrow-cell {
    width: 40px;
    text-align: center;
    opacity: 0.7;
}

.trade-tracker-table tbody tr:hover .arrow-cell {
    opacity: 1;
}

/* Hide the column header text but keep it accessible for screen readers */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.trade-tracker-table .action-column {
    font-weight: bold;
}

.trade-tracker-table .trade-buy .action-column {
    color: #28a745;
}

.trade-tracker-table .trade-sell .action-column {
    color: #dc3545;
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 10px;
    margin-left: 8px;
}

.badge-premium {
    background-color: #ffc107;
    color: #212529;
}

.badge-free {
    background-color: #17a2b8;
    color: #fff;
}

/* Single Trade Styles */
.trade-single-header {
    margin-bottom: 20px;
}

.trade-portfolios {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
}

.trade-portfolios a {
    text-decoration: none;
}

.trade-portfolios a:hover {
    text-decoration: underline;
}

.trade-details-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.trade-details-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.trade-details-row:last-child {
    margin-bottom: 0;
}

.trade-detail {
    flex: 1;
    min-width: 120px;
}

.detail-label {
    display: block;
    font-size: 0.85em;
    font-weight: bold;
    color: #666;
    margin-bottom: 5px;
}

.detail-value {
    display: block;
    font-size: 1.2em;
    font-weight: 500;
}

.trade-buy {
    color: #28a745;
}

.trade-sell {
    color: #dc3545;
}

.trade-content {
    line-height: 1.6;
    margin-top: 30px;
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.trade-description {
    margin-bottom: 0;
    white-space: pre-line;
    color: #444;
}

/* Portfolio Filter Styles */
.portfolio-filter, 
.news-category-filter {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 5px;
}

.filter-label {
    font-weight: bold;
    margin-right: 10px;
}

.portfolio-filter-link,
.cat-filter-link {
    display: inline-block;
    padding: 6px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.portfolio-filter-link:hover,
.cat-filter-link:hover {
    background-color: #d5d5d5;
    color: #000;
}
.portfolio-filter-link.active,
.cat-filter-link.active {
    background-color: #fff;
    color: #000;
}

/* Taxonomy Description */
.taxonomy-description {
    margin: 0 0 30px;
    text-align: left;
    font-style: italic;
    color: #666;
    line-height: 1.6;
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

@media (max-width: 768px) {
    .trade-tracker-table {
        min-width: 650px;
    }
    
    .trade-tracker-table th,
    .trade-tracker-table td {
        padding: 10px;
        font-size: 13px;
    }
    
    .trade-details-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .portfolio-filter,
    .news-category-filter {
        padding: 10px;
    }
    
    .portfolio-filter-link,
    .cat-filter-link {
        font-size: 0.8em;
        padding: 5px 10px;
        margin-bottom: 5px;
    }
}