/* Restored premium glassmorphism styling for frontend search */
:root {
    --bec-primary: #3b82f6;
    --bec-primary-hover: #2563eb;
    --bec-primary-light: #eff6ff;
    --bec-bg-card: rgba(255, 255, 255, 0.85);
    --bec-text-dark: #0f172a;
    --bec-text-muted: #64748b;
    --bec-border: #e2e8f0;
    --bec-active: #10b981;
    --bec-inactive: #ef4444;
    --bec-radius: 16px;
    --bec-font: 'Outfit', sans-serif;
}

.bec-search-container {
    font-family: var(--bec-font);
    max-width: 650px;
    margin: 40px auto;
    padding: 35px;
    background: #ffffff;
    border-radius: var(--bec-radius);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.05), 0 8px 16px -6px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--bec-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bec-search-container:hover {
    box-shadow: 0 20px 35px -5px rgba(59, 130, 246, 0.08), 0 12px 20px -6px rgba(0, 0, 0, 0.04);
}

.bec-search-header {
    text-align: center;
    margin-bottom: 30px;
}

.bec-search-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--bec-text-dark);
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
}

.bec-search-header p {
    color: var(--bec-text-muted);
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

/* Horizontal Search Input Wrapper & Button */
.bec-search-form {
    margin-bottom: 0;
}

.bec-search-input-wrapper {
    position: relative;
    display: flex;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid var(--bec-border);
    padding: 8px;
    border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bec-search-input-wrapper:focus-within {
    border-color: var(--bec-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    background: #ffffff;
}

.bec-search-input-wrapper input[type="text"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--bec-text-dark);
    outline: none;
    box-shadow: none;
    width: 100%;
}

.bec-search-input-wrapper input[type="text"]::placeholder {
    color: #94a3b8;
}

.bec-search-input-wrapper button[type="submit"] {
    background: var(--bec-primary);
    color: #ffffff;
    border: none;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    outline: none;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.bec-search-input-wrapper button[type="submit"]:hover {
    background: var(--bec-primary-hover);
}

.bec-search-input-wrapper button[type="submit"]:active {
    transform: scale(0.98);
}

/* Spinner styling */
.bec-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s ease-in-out infinite;
}

/* Results container */
.bec-results-area {
    margin-top: 35px;
}

/* Alerts */
.bec-alert {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    font-size: 14px;
}

.bec-alert-error {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #991b1b;
}

.bec-alert-icon {
    font-size: 24px;
    line-height: 1;
}

.bec-alert-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #ef4444;
}

.bec-alert-content h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
}

.bec-alert-content p {
    margin: 0;
    line-height: 1.5;
}

/* Premium Card Layout */
.bec-result-card {
    position: relative;
    background: var(--bec-bg-card);
    border: 1px solid var(--bec-border);
    border-radius: var(--bec-radius);
    padding: 30px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.02), 0 4px 6px -2px rgba(0, 0, 0, 0.01);
}

.bec-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.bec-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--bec-border);
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.bec-member-avatar {
    background: var(--bec-primary-light);
    color: var(--bec-primary);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bec-member-avatar .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.bec-member-title {
    flex: 1;
}

.bec-member-title h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--bec-text-dark);
    margin: 0 0 4px 0;
}

.bec-member-title .membership-id {
    font-size: 14px;
    color: var(--bec-text-muted);
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Badges for active/inactive */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-active .status-dot {
    background: var(--bec-active);
    box-shadow: 0 0 8px var(--bec-active);
}

.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.status-inactive .status-dot {
    background: var(--bec-inactive);
    box-shadow: 0 0 8px var(--bec-inactive);
}

.status-neutral {
    background: #f1f5f9;
    color: #475569;
}

.status-neutral .status-dot {
    background: #64748b;
}

/* Info Grid Layout */
.bec-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.bec-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    color: var(--bec-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 15px;
    color: var(--bec-text-dark);
    font-weight: 500;
}

/* Card Footer with Secure message */
.bec-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--bec-border);
    padding-top: 20px;
    margin-top: 25px;
    font-size: 12px;
    color: var(--bec-text-muted);
    font-weight: 500;
}

.bec-card-footer .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #10b981;
}

/* Micro-animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive grid adjustments */
@media (max-width: 550px) {
    .bec-search-input-wrapper {
        flex-direction: column;
        padding: 10px;
    }
    
    .bec-search-input-wrapper button[type="submit"] {
        padding: 12px;
        width: 100%;
    }
    
    .bec-card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .status-badge {
        margin-top: 5px;
    }
    
    .bec-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
