
/* Transactions Shortcode Styles */

.transactions-shortcode-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #FFFFFF;
    color: #333333;
}

/* Filter Section */
.transactions-filter-section {
    margin-bottom: 40px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e1e1e1;
}

.filter-header h2 {
    margin: 0 0 20px 0;
    font-size: 32px;
    font-weight: 700;
    color: #1a1b1d;
    text-align: center;
}

.filter-controls {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.filter-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #595A5E;
    font-size: 14px;
}

.filter-select {
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 14px;
    background: #FFFFFF;
    color: #333;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #1C447E;
    box-shadow: 0 0 0 3px rgba(28, 68, 126, 0.1);
}

.reset-button {
    background: #1C447E;
    color: #FFFFFF;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-end;
}

.reset-button:hover {
    background: #153a5f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(28, 68, 126, 0.3);
}

/* Transactions Grid */
.transactions-grid-container {
    position: relative;
}

.transactions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.transaction-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 25px;
    border: 2px solid #e1e1e1;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.transaction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1C447E, #2c5aa0);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.transaction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-color: #1C447E;
}

.transaction-card:hover::before {
    transform: scaleX(1);
}

.transaction-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.company-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e1e1e1;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-logo.no-logo {
    color: #595A5E;
    font-size: 32px;
}

.company-logo.no-logo .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.transaction-info {
    flex: 1;
    min-width: 0;
}

.deal-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1b1d;
    line-height: 1.3;
}

.transaction-date {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #595A5E;
    font-size: 14px;
}

.transaction-date .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.transaction-sectors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sector-tag {
    background: rgba(28, 68, 126, 0.1);
    color: #1C447E;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(28, 68, 126, 0.2);
}

/* Investors Section */
/* .transaction-investors {
    border-top: 1px solid #e1e1e1;
    padding-top: 20px;
} */

.results-count {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.transaction-investors h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1b1d;
}

.investors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.investor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 10px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e1e1e1;
    transition: all 0.3s ease;
}

.investor-item:hover {
    background: #FFFFFF;
    border-color: #1C447E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(28, 68, 126, 0.15);
}

.investor-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e1e1e1;
    margin-bottom: 10px;
    background: #FFFFFF;
}

.investor-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.investor-logo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border: 2px solid #e1e1e1;
    color: #595A5E;
}

.investor-logo-placeholder .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.investor-name {
    font-size: 12px;
    font-weight: 600;
    color: #1a1b1d;
    line-height: 1.3;
}

/* No Results / No Transactions */
.no-transactions, .no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #e1e1e1;
    color: #595A5E;
    font-size: 18px;
    margin: 40px 0;
}

.no-transactions p, .no-results p {
    margin: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.transaction-card {
    animation: fadeInUp 0.6s ease forwards;
}

.transaction-card:nth-child(1) { animation-delay: 0.1s; }
.transaction-card:nth-child(2) { animation-delay: 0.2s; }
.transaction-card:nth-child(3) { animation-delay: 0.3s; }
.transaction-card:nth-child(4) { animation-delay: 0.4s; }
.transaction-card:nth-child(5) { animation-delay: 0.5s; }
.transaction-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 768px) {
    .transactions-shortcode-container {
        padding: 15px;
    }
    
    .filter-header h2 {
        font-size: 24px;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .reset-button {
        align-self: center;
        margin-top: 10px;
    }
    
    .transactions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .transaction-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .company-logo {
        width: 60px;
        height: 60px;
    }
    
    .deal-title {
        font-size: 18px;
    }
    
    .investors-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .investor-logo,
    .investor-logo-placeholder {
        width: 40px;
        height: 40px;
    }
    
    .investor-logo-placeholder .dashicons {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }
    
    .investor-name {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .transactions-filter-section {
        padding: 20px 15px;
    }
    
    .transaction-card {
        padding: 20px;
    }
    
    .investors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .company-logo {
        width: 50px;
        height: 50px;
    }
}
