/* Investor Directory - StartupIceland.com Theme v1.0 */

.iid-directory-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
}

/* Header / Controls */
.iid-controls {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
}

.iid-search-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.iid-search-wrapper {
    flex: 2;
    min-width: 250px;
}

#iid-search {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
}

#iid-search:focus {
    outline: none;
    border-color: #32373c;
}

#iid-search::placeholder {
    color: #999;
}

.iid-filter-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.iid-filter-wrapper {
    min-width: 150px;
    flex: 1;
}

.iid-filter-wrapper select {
    width: 100%;
    padding: 10px 36px 10px 12px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
    font-family: inherit;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.iid-filter-wrapper select:focus {
    outline: none;
    border-color: #32373c;
}

/* Stats Bar */
.iid-stats-bar {
    display: flex;
    gap: 24px;
    padding: 16px 20px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-top: none;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.iid-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.iid-stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #32373c;
}

.iid-stat-label {
    font-size: 0.875rem;
    color: #666;
}

.iid-showing-text {
    margin-left: auto;
    font-size: 0.875rem;
    color: #666;
}

.iid-showing-text strong {
    color: #32373c;
}

/* Investor Grid */
.iid-investor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

/* Investor Card */
.iid-investor-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 24px;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.iid-investor-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.iid-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.iid-investor-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000;
    margin: 0;
    line-height: 1.3;
}

/* Type Badges */
.iid-type-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.iid-type-vc {
    background: #e3f2fd;
    color: #1565c0;
}

.iid-type-angel {
    background: #fce4ec;
    color: #c2185b;
}

.iid-type-government {
    background: #e8f5e9;
    color: #2e7d32;
}

.iid-type-accelerator {
    background: #fff3e0;
    color: #e65100;
}

.iid-type-corporate {
    background: #f3e5f5;
    color: #7b1fa2;
}

.iid-type-family-office {
    background: #efebe9;
    color: #5d4037;
}

/* Focus Areas */
.iid-focus-areas {
    font-size: 0.8rem;
    color: #0693e3;
    font-weight: 500;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Description */
.iid-description {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Stage Tags */
.iid-stages {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.iid-stage-tag {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 4px 10px;
    background: #f5f5f5;
    color: #666;
    border-radius: 4px;
}

/* Details */
.iid-details {
    margin-bottom: 12px;
}

.iid-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.iid-detail-row:last-child {
    border-bottom: none;
}

.iid-label {
    color: #888;
}

.iid-value {
    color: #333;
    font-weight: 500;
}

/* Portfolio */
.iid-portfolio {
    font-size: 0.8rem;
    color: #555;
    padding: 10px;
    background: #fafafa;
    margin-bottom: 16px;
    line-height: 1.5;
}

.iid-portfolio strong {
    color: #333;
}

/* Card Footer */
.iid-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.iid-founded {
    font-size: 0.8rem;
    color: #999;
}

.iid-website-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #32373c;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #32373c;
    border-radius: 9999px;
    transition: all 0.2s;
}

.iid-website-link:hover {
    background: #32373c;
    color: #fff;
}

/* No Results */
.iid-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1rem;
}

/* Call to Action Box */
.iid-cta-box {
    margin-top: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #ddd;
    padding: 40px;
    text-align: center;
}

.iid-cta-content h3 {
    font-size: 1.5rem;
    color: #32373c;
    margin: 0 0 16px 0;
    font-weight: 600;
}

.iid-cta-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 24px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.iid-cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: #32373c;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: background 0.2s, transform 0.1s;
}

.iid-cta-button:hover {
    background: #000;
    transform: translateY(-2px);
    color: #fff !important;
}

.iid-cta-note {
    font-size: 0.8rem !important;
    color: #888 !important;
    font-style: italic;
    margin-top: 20px !important;
    margin-bottom: 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .iid-directory-container {
        padding: 12px;
    }

    .iid-search-row {
        flex-direction: column;
    }

    .iid-search-wrapper {
        min-width: 100%;
    }

    .iid-filter-row {
        flex-direction: column;
    }

    .iid-filter-wrapper {
        min-width: 100%;
    }

    .iid-stats-bar {
        flex-direction: column;
        gap: 12px;
    }

    .iid-showing-text {
        margin-left: 0;
    }

    .iid-investor-grid {
        grid-template-columns: 1fr;
    }

    .iid-cta-box {
        padding: 30px 20px;
        margin-top: 30px;
    }

    .iid-cta-content h3 {
        font-size: 1.25rem;
    }

    .iid-cta-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .iid-controls {
        padding: 16px;
    }

    .iid-investor-card {
        padding: 16px;
    }

    .iid-card-header {
        flex-direction: column;
        gap: 8px;
    }
}
