/* Deal Flow Specific Styles */

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: #374151;
}

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

.filter-btn {
    padding: 8px 20px;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9em;
    border-radius: 6px;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.filter-btn.active {
    background: #e5e7eb;
    border-color: #6b7280;
    color: #111827;
    font-weight: 600;
}

.filter-btn[data-filter="buyer"].active {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e3a8a;
}

.filter-btn[data-filter="seller"].active {
    background: #fee2e2;
    border-color: #ef4444;
    color: #7f1d1d;
}

.filter-btn[data-filter="other"].active {
    background: #f3e8ff;
    border-color: #a855f7;
    color: #581c87;
}

.results-count {
    margin-top: 15px;
    color: #6b7280;
    font-size: 0.9em;
}

/* Table Container */
.table-container {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
}

.scroll-hint {
    padding: 10px 20px;
    background: #f9fafb;
    color: #6b7280;
    font-size: 0.9em;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 10px 10px 0 0;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0 0 10px 10px;
}

.table-wrapper::-webkit-scrollbar {
    height: 10px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 0 10px 10px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
}

th {
    text-align: left;
    padding: 15px 12px;
    background: #f9fafb;
    color: #374151;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    white-space: nowrap;
}

th:last-child {
    border-right: none;
}

td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    vertical-align: middle;
}

td:last-child {
    border-right: none;
}

tr:hover {
    background: #f9fafb;
}

/* Type Badges */
.type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.type-buyer {
    background: #dbeafe;
    color: #1e40af;
}

.type-seller {
    background: #fee2e2;
    color: #b91c1c;
}

.type-other {
    background: #f3e8ff;
    color: #6b21a8;
}

/* Deal Code */
.deal-code {
    font-family: monospace;
    font-weight: 600;
    color: #1f2937;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    white-space: nowrap;
}

/* Price Value */
.price-value {
    font-weight: 600;
    color: #047857;
    background: #d1fae5;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    font-size: 0.9em;
    white-space: nowrap;
}

/* Contact Link */
.contact-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    padding: 4px 10px;
    background: #eff6ff;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid #bfdbfe;
    white-space: nowrap;
}

.contact-link:hover {
    background: #dbeafe;
}

/* Mobile Cards - Hidden on Desktop */
.mobile-cards {
    display: none;
}

/* Last Updated */
.last-updated {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    color: #4b5563;
    font-size: 0.9em;
    border: 1px solid #e5e7eb;
    margin-top: 20px;
}

.last-updated strong {
    color: #1f2937;
}

/* Hero paragraph override */
.hero-overlay p {
    color: white;
    opacity: 0.95;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .table-container {
        display: none;
    }
    
    .mobile-cards {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .deal-card {
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        padding: 16px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    
    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .card-row {
        display: flex;
        margin-bottom: 12px;
        border-bottom: 1px solid #f3f4f6;
        padding-bottom: 8px;
    }
    
    .card-row:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .card-label {
        width: 90px;
        color: #6b7280;
        font-weight: 500;
        font-size: 0.9em;
        flex-shrink: 0;
    }
    
    .card-value {
        flex: 1;
        color: #1f2937;
        font-weight: 500;
    }
    
    .card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 2px solid #f3f4f6;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .filter-btn {
        flex: 1 1 auto;
        text-align: center;
        padding: 10px 12px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .card-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .card-label {
        width: 100%;
    }
    
    .card-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-link {
        width: 100%;
        text-align: center;
    }
}