/* Networking Directory - Public Styles (Theme-Friendly) */
/* Minimal styling - inherits from active WordPress theme */

/* Essential Grid Layout Only */
.nd-delegates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Essential Flexbox Layouts */
.nd-directory-controls .nd-controls-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.nd-directory-controls .nd-filter-group {
    flex: 1;
    min-width: 200px;
}

/* Modal Overlay (needs specific positioning) */
.nd-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
}

.nd-modal.is-visible {
    display: block;
}

.nd-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.nd-modal-content {
    position: relative;
    max-width: 600px;
    margin: 50px auto;
    background: #fff;
    border-radius: 4px;
    padding: 30px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nd-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 5px 10px;
}

.nd-modal-close:hover {
    color: #333;
}

/* Delegate Card Hover Overlay (requires absolute positioning) */
.nd-delegate-card {
    position: relative;
    cursor: pointer;
    /* Essential visibility styling */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    min-height: 200px;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    opacity: 1 !important;
    visibility: visible !important;
}

.nd-delegate-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.nd-delegate-avatar {
    margin-bottom: 15px;
}

.nd-delegate-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.nd-delegate-name {
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0 5px 0;
}

.nd-delegate-title {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.nd-delegate-company {
    font-size: 13px;
    color: #999;
    margin: 5px 0;
}

.nd-industry-tag {
    display: inline-block;
    background: #e7f3ff;
    color: #0073aa;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    margin-top: 8px;
}

.nd-invitation-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.nd-badge-invited {
    display: inline-block;
    background: #d4edda;
    color: #155724;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.nd-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(34, 113, 177, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    pointer-events: none;
}

.nd-delegate-card:hover .nd-hover-overlay {
    opacity: 1;
}

/* Avatar circular shape - kept for potential future use */
.nd-delegate-avatar img {
    border-radius: 50%;
}

/* Hide elements */
.nd-delegate-card[style*="display: none"] {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .nd-delegates-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }

    .nd-directory-controls .nd-controls-row {
        flex-direction: column;
    }

    .nd-modal-content {
        margin: 20px;
        max-height: 90vh;
    }
}

/* Utility: Full Width Form Elements */
.nd-form-field,
.nd-multiselect,
.nd-sort-field,
.nd-form-control {
    width: 100%;
    box-sizing: border-box;
}

/* Notice Messages (minimal styling) */
.nd-notice,
.nd-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.nd-notice-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.nd-notice-success,
.nd-message-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.nd-notice-error,
.nd-message-error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

.nd-notice-info,
.nd-message-info {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
}

