/* Shared Investor Styles - Used by both home page and dashboard */

/* Pagination styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

/* Smooth transitions for investor content */
#investors-container {
    transition: opacity 0.2s ease-in-out;
}

#investors-container.loading {
    opacity: 0.7;
}

.pagination-container button {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.pagination-container button:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.pagination-container button.btn-primary {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

.pagination-container button.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.pagination-container span {
    padding: 0.5rem 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Investor section styles */
.investor-section {
    padding: 120px 0;
    background: #fafafa;
}

.investor-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.investor-intro p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filter container and styling */
.filters-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: visible;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    background: #fafafa;
}

.filters-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.clear-filters-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.clear-filters-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.filters-content {
    padding: 1.5rem;
    position: relative;
    overflow: visible;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.filters-row:last-of-type {
    margin-bottom: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    overflow: visible;
}

.filters-actions {
    display: flex;
    justify-content: center;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
    margin-top: 1.5rem;
}

.apply-filters-btn {
    height: 44px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e91e63, #ad1457);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 140px;
    box-shadow: 0 2px 4px rgba(233, 30, 99, 0.2);
}

.apply-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.filter-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    display: block;
}

.filter-select {
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    color: #374151;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

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

.filter-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-secondary {
    background: white;
    color: #6b7280;
    border: 1px solid #d1d5db;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* Investors grid and container */
.investors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.grid-4x5-investors {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

/* Investor card styles */
.investor-card {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    min-width: 320px;
    max-width: 100%;
    position: relative;
    box-sizing: border-box;
}

.investor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.investor-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
}

.investor-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.investor-info {
    flex: 1;
}

.investor-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.investor-location {
    font-size: 0.8rem;
    color: #777;
    display: flex;
    align-items: center;
    line-height: 1.2;
    min-width: 0;
    flex: 1;
}

.investor-location span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.investor-description {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.investor-meta {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.investor-meta div {
    margin-bottom: 0.5rem;
}

/* Website link container - fixed position above tags */
.investor-website-container {
    margin-bottom: 0.75rem;
    min-height: 1.2rem;
}

.investor-apply-section {
    margin-top: auto;
    text-align: center;
}

.investor-website {
    color: #555;
    text-decoration: none;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.investor-website:hover {
    text-decoration: underline;
}

/* Footer container for tags and apply button */
.investor-footer-tags-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    width: 100%;
}

/* Investor Type Tags */
.investor-type-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.type-tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: default;
    user-select: none;
    white-space: nowrap;
}

/* Button styles */
.btn-pink {
    background: linear-gradient(135deg, #e91e63, #ad1457);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-pink:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.btn-warning {
    background-color: #f59e0b;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-warning:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-success {
    background-color: #10b981;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Loading state */
.loading-state {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1rem;
}

/* Multi-select dropdown styles */
.multi-select-dropdown {
    position: relative;
    width: 100%;
}

/* Ensure all dropdowns start closed */
.multi-select-dropdown:not(.open) .multi-select-options {
    display: none !important;
    opacity: 0;
    visibility: hidden;
}

/* Force hide all multi-select options by default */
.multi-select-options {
    display: none !important;
}

/* Only show when explicitly opened */
.multi-select-dropdown.open .multi-select-options {
    display: block !important;
}

.multi-select-input {
    cursor: pointer;
    background: white;
}

.multi-select-input:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

/* Hide the dropdown arrow */
.multi-select-dropdown .dropdown-arrow {
    display: none;
}

.multi-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #1a1a1a;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
    display: none !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.multi-select-dropdown.open .multi-select-options {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

.multi-option {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
    min-height: 20px;
}

.multi-option:last-child {
    border-bottom: none;
}

.multi-option:hover {
    background-color: #f9fafb;
}

.multi-option.selected {
    background-color: #e5e7eb;
}

.multi-checkbox {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #1a1a1a;
}

.multi-option span {
    font-size: 0.875rem;
    color: #374151;
    flex: 1;
}

/* Selected items display */
.selected-items {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.selected-item {
    background: #1a1a1a;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.selected-item .remove-item {
    cursor: pointer;
    font-weight: bold;
    font-size: 0.875rem;
}

.selected-item .remove-item:hover {
    opacity: 0.8;
}

/* Responsive design */
@media (max-width: 1200px) {
    .investors-grid,
    .grid-4x5-investors {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .filters-row {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 900px) {
    .investors-grid,
    .grid-4x5-investors {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filters-row {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .filters-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .filters-header {
        padding: 1rem 1rem 0.75rem 1rem;
    }
    
    .filters-content {
        padding: 1rem;
    }
    
    .apply-filters-btn {
        min-width: 140px;
    }
}

@media (max-width: 600px) {
    .investors-grid,
    .grid-4x5-investors {
        grid-template-columns: 1fr;
    }
    
    .filters-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filters-header {
        padding: 1rem;
    }
    
    .filters-content {
        padding: 1rem;
    }
} 